From 5b4df3f230b8b80649e731cbbf9f4da1346e9302 Mon Sep 17 00:00:00 2001 From: Pushpendra Kumar Date: Fri, 28 Jul 2023 23:31:23 +0530 Subject: [PATCH] added the fineract-client generated code as a package --- package-lock.json | 16 + package.json | 6 + packages/fineract-client/package.json | 4 + .../src/.openapi-generator/FILES | 1478 ++++++ .../src/.openapi-generator/VERSION | 1 + packages/fineract-client/src/api.module.ts | 30 + packages/fineract-client/src/configuration.ts | 186 + packages/fineract-client/src/encoder.ts | 20 + packages/fineract-client/src/index.ts | 6 + .../src/models/accountTransferData.ts | 43 + .../src/models/accountingRuleData.ts | 37 + .../src/models/accountingTagRuleData.ts | 21 + .../src/models/allowAttributeOverrides.ts | 24 + .../fineract-client/src/models/appUser.ts | 47 + .../src/models/appUserClientMapping.ts | 22 + .../fineract-client/src/models/appUserData.ts | 20 + .../src/models/batchRequest.ts | 23 + .../src/models/batchResponse.ts | 21 + .../fineract-client/src/models/bodyPart.ts | 29 + .../src/models/bodyPartHeaders.ts | 20 + .../models/bodyPartParameterizedHeaders.ts | 21 + .../src/models/businessDateRequest.ts | 23 + .../src/models/businessDateResponse.ts | 22 + .../src/models/businessStep.ts | 21 + .../src/models/calendarData.ts | 61 + .../fineract-client/src/models/cashierData.ts | 31 + .../src/models/cashierTransactionData.ts | 37 + .../src/models/cashierTxnType.ts | 18 + .../fineract-client/src/models/centerData.ts | 27 + .../src/models/changeInstanceModeRequest.ts | 23 + packages/fineract-client/src/models/charge.ts | 58 + .../fineract-client/src/models/chargeData.ts | 17 + .../src/models/chargeFeeOnMonthDay.ts | 37 + .../src/models/chargeToGLAccountMapper.ts | 20 + packages/fineract-client/src/models/client.ts | 85 + .../models/clientCollateralManagementData.ts | 23 + .../fineract-client/src/models/clientData.ts | 86 + .../src/models/clientFamilyMembersData.ts | 34 + .../src/models/clientSearchData.ts | 28 + .../src/models/clientTextSearch.ts | 17 + .../src/models/clientTimelineData.ts | 28 + packages/fineract-client/src/models/code.ts | 22 + .../fineract-client/src/models/codeValue.ts | 25 + .../src/models/codeValueData.ts | 22 + .../src/models/commandProcessingResult.ts | 35 + .../src/models/commandWrapper.ts | 58 + .../fineract-client/src/models/component.ts | 24 + .../src/models/componentData.ts | 21 + .../src/models/contentDisposition.ts | 23 + .../src/models/createStaffResponse.ts | 21 + .../fineract-client/src/models/creditDebit.ts | 18 + .../src/models/currencyData.ts | 23 + .../src/models/currencyItem.ts | 23 + .../src/models/datatableData.ts | 17 + .../deleteAccountNumberFormatsResponse.ts | 20 + .../models/deleteAccountingRulesResponse.ts | 20 + .../models/deleteCentersCenterIdResponse.ts | 21 + .../models/deleteChargesChargeIdResponse.ts | 20 + .../models/deleteClientCollateralResponse.ts | 20 + ...eClientsClientIdChargesChargeIdResponse.ts | 22 + ...ClientIdIdentifiersIdentifierIdResponse.ts | 22 + .../models/deleteClientsClientIdResponse.ts | 23 + .../src/models/deleteCodeValueDataResponse.ts | 20 + .../src/models/deleteCodesResponse.ts | 20 + .../models/deleteCollateralProductResponse.ts | 20 + ...sDatatableAppTableIdDatatableIdResponse.ts | 20 + ...teDataTablesDatatableAppTableIdResponse.ts | 20 + .../src/models/deleteDataTablesResponse.ts | 20 + .../models/deleteDelinquencyBucketResponse.ts | 20 + .../models/deleteDelinquencyRangeResponse.ts | 20 + ...teEntityDatatableChecksTemplateResponse.ts | 20 + ...leteEntityTypeEntityIdDocumentsResponse.ts | 22 + ...deleteFinancialActivityAccountsResponse.ts | 20 + ...teFixedDepositAccountsAccountIdResponse.ts | 22 + ...teFixedDepositProductsProductIdResponse.ts | 20 + .../src/models/deleteGLAccountsRequest.ts | 20 + .../src/models/deleteGlClosuresResponse.ts | 21 + .../src/models/deleteGroupsGroupIdResponse.ts | 22 + .../models/deleteHolidaysHolidayIdResponse.ts | 20 + .../src/models/deleteHookResponse.ts | 20 + ...restRateChartsChartIdChartSlabsResponse.ts | 20 + ...deleteInterestRateChartsChartIdResponse.ts | 20 + ...eleteLoansLoanIdChargesChargeIdResponse.ts | 24 + ...nsLoanIdCollateralsCollateralIdResponse.ts | 21 + .../src/models/deleteLoansLoanIdResponse.ts | 24 + ...deletePaymentTypesPaymentTypeIdResponse.ts | 20 + .../src/models/deletePostDatedCheck.ts | 21 + .../deleteProvisioningCriteriaResponse.ts | 20 + .../deleteRecurringDepositAccountsResponse.ts | 22 + ...curringDepositProductsProductIdResponse.ts | 20 + .../models/deleteReportMailingJobsResponse.ts | 20 + .../src/models/deleteReportsResponse.ts | 20 + ...sourceTypeResourceIdNotesNoteIdResponse.ts | 20 + .../src/models/deleteRolesRoleIdResponse.ts | 20 + .../deleteSavingsAccountsAccountIdResponse.ts | 22 + ...IdChargesSavingsAccountChargeIdResponse.ts | 23 + .../deleteSavingsProductsProductIdResponse.ts | 20 + ...lfBeneficiariesTPTBeneficiaryIdResponse.ts | 20 + ...ellersTellerIdCashiersCashierIdResponse.ts | 20 + .../deleteTemplatesTemplateIdResponse.ts | 20 + .../src/models/deleteUsersUserIdResponse.ts | 22 + .../src/models/delinquencyBucket.ts | 26 + .../src/models/delinquencyBucketData.ts | 20 + .../src/models/delinquencyRange.ts | 26 + .../src/models/delinquencyRangeData.ts | 20 + packages/fineract-client/src/models/entity.ts | 18 + .../src/models/enumOptionData.ts | 19 + .../src/models/enumOptionType.ts | 19 + packages/fineract-client/src/models/event.ts | 18 + .../src/models/executeJobRequest.ts | 21 + .../src/models/extensionData.ts | 18 + .../externalAssetOwnerTransferChangesData.ts | 23 + .../externalEventConfigurationItemData.ts | 18 + .../fineract-client/src/models/externalId.ts | 18 + .../models/externalOwnerJournalEntryData.ts | 20 + .../externalOwnerTransferJournalEntryData.ts | 20 + .../models/externalServicesPropertiesData.ts | 18 + .../src/models/externalTransferData.ts | 48 + .../src/models/externalTransferDataDetails.ts | 23 + .../src/models/externalTransferLoanData.ts | 18 + .../src/models/externalTransferOwnerData.ts | 17 + packages/fineract-client/src/models/field.ts | 21 + .../fineract-client/src/models/filters.ts | 46 + .../src/models/financialActivityData.ts | 30 + .../src/models/floatingRate.ts | 27 + .../src/models/floatingRateData.ts | 26 + .../src/models/floatingRatePeriod.ts | 28 + .../src/models/floatingRatePeriodData.ts | 26 + .../src/models/formDataBodyPart.ts | 36 + .../src/models/formDataContentDisposition.ts | 24 + .../fineract-client/src/models/fundData.ts | 18 + .../fineract-client/src/models/gLAccount.ts | 32 + .../src/models/gLAccountData.ts | 43 + .../src/models/gLAccountDataForLookup.ts | 19 + .../fineract-client/src/models/geoCodeData.ts | 18 + .../getAccountNumberFormatsIdResponse.ts | 23 + ...getAccountNumberFormatsResponseTemplate.ts | 22 + .../src/models/getAccountOptions.ts | 19 + .../src/models/getAccountRulesResponse.ts | 30 + .../models/getAccountRulesTemplateResponse.ts | 24 + .../getAccountTransferTemplateResponse.ts | 24 + .../getAccountTransfersFromAccountType.ts | 19 + ...tAccountTransfersFromAccountTypeOptions.ts | 19 + .../getAccountTransfersFromClientOptions.ts | 20 + .../models/getAccountTransfersFromOffice.ts | 22 + .../getAccountTransfersFromOfficeOptions.ts | 19 + .../models/getAccountTransfersPageItems.ts | 36 + .../getAccountTransfersPageItemsCurrency.ts | 22 + ...getAccountTransfersPageItemsFromAccount.ts | 18 + .../getAccountTransfersPageItemsFromOffice.ts | 18 + ...tAccountTransfersPageItemsToAccountType.ts | 19 + .../src/models/getAccountTransfersResponse.ts | 22 + .../src/models/getAccountTransfersStatus.ts | 19 + ...ansfersTemplateRefundByTransferCurrency.ts | 23 + ...fersTemplateRefundByTransferFromAccount.ts | 26 + ...plateRefundByTransferFromAccountOptions.ts | 25 + ...sfersTemplateRefundByTransferFromClient.ts | 33 + ...mplateRefundByTransferFromClientOptions.ts | 20 + ...sfersTemplateRefundByTransferFromOffice.ts | 22 + ...mplateRefundByTransferFromOfficeOptions.ts | 19 + ...ansfersTemplateRefundByTransferResponse.ts | 49 + ...nsfersTemplateRefundByTransferToAccount.ts | 25 + ...ansfersTemplateRefundByTransferToClient.ts | 20 + .../getAccountTransfersTemplateResponse.ts | 35 + .../src/models/getAccountTransfersTimeline.ts | 24 + ...getAccountTransfersToAccountTypeOptions.ts | 19 + .../getAccountTransfersToOfficeOptions.ts | 19 + .../getAccountsChargeCalculationType.ts | 19 + .../src/models/getAccountsChargeTimeType.ts | 19 + .../src/models/getAccountsCharges.ts | 35 + .../src/models/getAccountsChargesCurrency.ts | 22 + .../src/models/getAccountsCurrency.ts | 23 + .../getAccountsLinkedToPocketResponse.ts | 24 + .../models/getAccountsLockPeriodTypeEnum.ts | 19 + .../src/models/getAccountsPageItems.ts | 32 + .../src/models/getAccountsPurchasedShares.ts | 28 + .../getAccountsPurchasedSharesStatus.ts | 19 + .../models/getAccountsPurchasedSharesType.ts | 19 + .../src/models/getAccountsStatus.ts | 24 + .../src/models/getAccountsSummary.ts | 28 + .../src/models/getAccountsTimeline.ts | 25 + .../getAccountsTypeAccountIdResponse.ts | 47 + .../models/getAccountsTypeProductOptions.ts | 20 + .../models/getAccountsTypePurchasedShares.ts | 20 + .../src/models/getAccountsTypeResponse.ts | 22 + .../src/models/getAccountsTypeStatus.ts | 24 + .../src/models/getAccountsTypeSummary.ts | 18 + .../models/getAccountsTypeTemplateResponse.ts | 23 + .../src/models/getAccountsTypeTimeline.ts | 17 + .../src/models/getAssetType.ts | 19 + .../models/getBusinessJobConfigResponse.ts | 20 + .../models/getBusinessStepConfigResponse.ts | 22 + .../src/models/getCachesResponse.ts | 22 + .../src/models/getCentersAccountType.ts | 19 + .../getCentersCenterIdAccountsResponse.ts | 21 + .../src/models/getCentersCenterIdCurrency.ts | 23 + .../src/models/getCentersCenterIdResponse.ts | 27 + .../src/models/getCentersCenterIdStatus.ts | 28 + .../src/models/getCentersDepositType.ts | 19 + .../src/models/getCentersOfficeOptions.ts | 19 + .../src/models/getCentersPageItems.ts | 24 + .../src/models/getCentersResponse.ts | 22 + .../src/models/getCentersSavingsAccounts.ts | 30 + .../src/models/getCentersStaffOptions.ts | 18 + .../src/models/getCentersStatus.ts | 19 + .../src/models/getCentersTemplateResponse.ts | 26 + .../src/models/getCentersTimeline.ts | 20 + .../src/models/getChargeAppliesTo.ts | 19 + .../src/models/getChargeCalculationType.ts | 19 + .../src/models/getChargePaymentMode.ts | 19 + .../src/models/getChargeTimeType.ts | 19 + .../src/models/getChargesAppliesTo.ts | 19 + .../src/models/getChargesAppliesToResponse.ts | 19 + .../getChargesCalculationTypeResponse.ts | 19 + .../models/getChargesChargeCalculationType.ts | 19 + .../src/models/getChargesChargeTimeType.ts | 19 + .../src/models/getChargesCurrency.ts | 22 + .../src/models/getChargesCurrencyResponse.ts | 22 + .../models/getChargesPaymentModeResponse.ts | 19 + .../src/models/getChargesResponse.ts | 34 + .../getChargesTemplateFeeFrequencyOptions.ts | 19 + ...emplateLoanChargeCalculationTypeOptions.ts | 19 + ...hargesTemplateLoanChargeTimeTypeOptions.ts | 19 + .../src/models/getChargesTemplateResponse.ts | 39 + .../src/models/getChargesTimeTypeResponse.ts | 19 + .../models/getClientChargeCalculationType.ts | 19 + .../src/models/getClientChargeCurrency.ts | 22 + .../src/models/getClientChargeTimeType.ts | 19 + .../getClientClientIdAddressesResponse.ts | 38 + .../getClientIdProductIdAccountingMappings.ts | 24 + .../getClientIdProductIdChargeOptions.ts | 18 + ...oductIdLockinPeriodFrequencyTypeOptions.ts | 19 + ...MinimumActivePeriodFrequencyTypeOptions.ts | 19 + .../getClientIdProductIdProductOptions.ts | 50 + .../models/getClientObligeeDetailsResponse.ts | 21 + .../src/models/getClientStatus.ts | 19 + .../models/getClientTransactionsCurrency.ts | 22 + .../getClientTransferProposalDateResponse.ts | 20 + .../models/getClientsAllowedDocumentTypes.ts | 19 + .../src/models/getClientsChargesPageItems.ts | 36 + .../getClientsClientIdAccountsResponse.ts | 23 + .../getClientsClientIdChargesResponse.ts | 22 + .../getClientsClientIdIdentifiersResponse.ts | 25 + ...entsClientIdIdentifiersTemplateResponse.ts | 21 + .../src/models/getClientsClientIdResponse.ts | 38 + .../src/models/getClientsClientIdStatus.ts | 19 + .../getClientsClientIdTransactionsResponse.ts | 22 + ...ientIdTransactionsTransactionIdResponse.ts | 30 + .../getClientsClientIdTransactionsType.ts | 19 + .../src/models/getClientsColumnHeaderData.ts | 23 + .../src/models/getClientsDataTables.ts | 20 + .../src/models/getClientsDocumentType.ts | 18 + .../src/models/getClientsGroups.ts | 20 + .../src/models/getClientsLoanAccounts.ts | 26 + .../models/getClientsLoanAccountsStatus.ts | 27 + .../src/models/getClientsLoanAccountsType.ts | 19 + .../src/models/getClientsOfficeOptions.ts | 19 + .../src/models/getClientsPageItems.ts | 27 + .../src/models/getClientsPageItemsResponse.ts | 26 + .../src/models/getClientsResponse.ts | 22 + .../models/getClientsSavingProductOptions.ts | 20 + .../src/models/getClientsSavingsAccounts.ts | 27 + .../getClientsSavingsAccountsCurrency.ts | 22 + .../getClientsSavingsAccountsDepositType.ts | 19 + .../models/getClientsSavingsAccountsStatus.ts | 29 + .../src/models/getClientsStaffOptions.ts | 24 + .../src/models/getClientsTemplateResponse.ts | 29 + .../src/models/getClientsTimeline.ts | 24 + .../src/models/getCodeValuesDataResponse.ts | 23 + .../src/models/getCodesResponse.ts | 22 + .../models/getCollateralCurrencyResponse.ts | 17 + .../getCollateralManagementsResponse.ts | 26 + .../models/getCollateralProductTemplate.ts | 21 + .../src/models/getCollateralTypeResponse.ts | 18 + .../getCollateralsTemplateAllowedTypes.ts | 19 + .../src/models/getCurrenciesResponse.ts | 22 + .../src/models/getCurrencyData.ts | 23 + .../src/models/getDataTablesResponse.ts | 23 + .../models/getDelinquencyBucketsResponse.ts | 23 + .../models/getDelinquencyRangesResponse.ts | 23 + .../getDelinquencyTagHistoryResponse.ts | 25 + .../getEntityDatatableChecksResponse.ts | 28 + ...etEntityDatatableChecksTemplateResponse.ts | 29 + .../getEntityTypeEntityIdDocumentsResponse.ts | 29 + .../src/models/getEquityType.ts | 19 + .../getExternalEventConfigurationsResponse.ts | 21 + .../getFieldConfigurationEntityResponse.ts | 26 + .../getFinancialActivityAccountsResponse.ts | 24 + .../getFixedDepositAccountsAccountChart.ts | 24 + ...ixedDepositAccountsAccountChartCurrency.ts | 22 + ...etFixedDepositAccountsAccountIdCurrency.ts | 23 + ...etFixedDepositAccountsAccountIdResponse.ts | 59 + ...getFixedDepositAccountsAccountIdSummary.ts | 19 + .../getFixedDepositAccountsChartSlabs.ts | 24 + .../models/getFixedDepositAccountsCurrency.ts | 23 + ...edDepositAccountsDepositPeriodFrequency.ts | 19 + ...countsInterestCalculationDaysInYearType.ts | 19 + ...dDepositAccountsInterestCalculationType.ts | 19 + ...itAccountsInterestCompoundingPeriodType.ts | 19 + ...epositAccountsInterestPostingPeriodType.ts | 19 + ...tFixedDepositAccountsMaxDepositTermType.ts | 19 + ...tFixedDepositAccountsMinDepositTermType.ts | 19 + .../getFixedDepositAccountsPeriodType.ts | 19 + .../getFixedDepositAccountsPeriodTypes.ts | 19 + .../getFixedDepositAccountsProductOptions.ts | 18 + .../models/getFixedDepositAccountsResponse.ts | 56 + .../models/getFixedDepositAccountsStatus.ts | 28 + .../models/getFixedDepositAccountsSummary.ts | 19 + ...getFixedDepositAccountsTemplateResponse.ts | 23 + .../models/getFixedDepositAccountsTimeline.ts | 20 + .../getFixedDepositProductsAccountingRule.ts | 19 + .../models/getFixedDepositProductsCurrency.ts | 23 + ...oductsInterestCalculationDaysInYearType.ts | 19 + ...dDepositProductsInterestCalculationType.ts | 19 + ...itProductsInterestCompoundingPeriodType.ts | 19 + ...epositProductsInterestPostingPeriodType.ts | 19 + ...tFixedDepositProductsMaxDepositTermType.ts | 19 + ...tFixedDepositProductsMinDepositTermType.ts | 19 + ...ositProductsProductIdAccountingMappings.ts | 28 + ...ixedDepositProductsProductIdActiveChart.ts | 24 + ...FixedDepositProductsProductIdChartSlabs.ts | 25 + ...etFixedDepositProductsProductIdCurrency.ts | 22 + ...uctsProductIdFeeToIncomeAccountMappings.ts | 20 + ...oductIdFeeToIncomeAccountMappingsCharge.ts | 20 + ...FeeToIncomeAccountMappingsIncomeAccount.ts | 19 + ...itProductsProductIdIncomeFromFeeAccount.ts | 19 + ...oductsProductIdIncomeFromPenaltyAccount.ts | 19 + ...sProductIdInterestCompoundingPeriodType.ts | 19 + ...oductsProductIdInterestOnSavingsAccount.ts | 19 + ...ositProductsProductIdMaxDepositTermType.ts | 19 + ...ositProductsProductIdMinDepositTermType.ts | 19 + ...ProductIdPenaltyToIncomeAccountMappings.ts | 20 + ...tIdPenaltyToIncomeAccountMappingsCharge.ts | 20 + ...FixedDepositProductsProductIdPeriodType.ts | 19 + ...sProductIdPreClosurePenalInterestOnType.ts | 19 + ...etFixedDepositProductsProductIdResponse.ts | 51 + ...tProductsProductIdSavingsControlAccount.ts | 19 + ...roductsProductIdSavingsReferenceAccount.ts | 19 + ...uctsProductIdTransfersInSuspenseAccount.ts | 19 + .../models/getFixedDepositProductsResponse.ts | 43 + .../getFloatingRatesFloatingRateIdResponse.ts | 29 + .../src/models/getFloatingRatesRatePeriods.ts | 25 + .../src/models/getFloatingRatesResponse.ts | 27 + .../src/models/getFromAccountOptions.ts | 24 + ...etFromAccountStandingInstructionSwagger.ts | 20 + ...tionsResponseStandingInstructionSwagger.ts | 19 + ...tTypeResponseStandingInstructionSwagger.ts | 19 + ...omAccountTypeStandingInstructionSwagger.ts | 19 + ...tionsResponseStandingInstructionSwagger.ts | 20 + ...getFromClientStandingInstructionSwagger.ts | 20 + ...tionsResponseStandingInstructionSwagger.ts | 19 + ...fficeResponseStandingInstructionSwagger.ts | 22 + ...getFromOfficeStandingInstructionSwagger.ts | 18 + .../src/models/getFundsResponse.ts | 21 + .../src/models/getGLAccountsResponse.ts | 33 + .../models/getGLAccountsTemplateResponse.ts | 37 + .../src/models/getGlAccountMapping.ts | 19 + .../src/models/getGlClosureResponse.ts | 31 + .../models/getGlobalConfigurationsResponse.ts | 21 + .../getGroupsGroupIdAccountsLoanAccounts.ts | 24 + .../getGroupsGroupIdAccountsLoanType.ts | 19 + ...GroupsGroupIdAccountsMemberLoanAccounts.ts | 24 + ...etGroupsGroupIdAccountsMemberLoanStatus.ts | 27 + .../getGroupsGroupIdAccountsMemberLoanType.ts | 19 + ...upsGroupIdAccountsMemberSavingsAccounts.ts | 26 + .../getGroupsGroupIdAccountsResponse.ts | 27 + ...tGroupsGroupIdAccountsSavingAccountType.ts | 19 + .../getGroupsGroupIdAccountsSavingAccounts.ts | 26 + .../getGroupsGroupIdAccountsSavingCurrency.ts | 22 + .../getGroupsGroupIdAccountsSavingStatus.ts | 25 + .../models/getGroupsGroupIdAccountsStatus.ts | 27 + .../src/models/getGroupsGroupIdResponse.ts | 27 + .../src/models/getGroupsGroupIdTimeline.ts | 20 + .../src/models/getGroupsPageItems.ts | 24 + .../src/models/getGroupsResponse.ts | 22 + .../src/models/getGroupsStatus.ts | 19 + .../models/getGroupsTemplateClientOptions.ts | 20 + .../getGroupsTemplateColumnHeaderData.ts | 23 + .../src/models/getGroupsTemplateDatatables.ts | 20 + .../models/getGroupsTemplateOfficeOptions.ts | 19 + .../src/models/getGroupsTemplateResponse.ts | 28 + .../models/getGroupsTemplateStaffOptions.ts | 18 + .../src/models/getHolidaysResponse.ts | 27 + .../src/models/getHookResponse.ts | 31 + .../src/models/getHookTemplateResponse.ts | 23 + .../src/models/getIncomeFromFeeAccountId.ts | 19 + .../src/models/getIncomeType.ts | 19 + ...tionsResponseStandingInstructionSwagger.ts | 19 + ...structionTypeStandingInstructionSwagger.ts | 19 + ...ateChartsChartIdChartSlabsAttributeName.ts | 19 + ...ateChartsChartIdChartSlabsConditionType.ts | 19 + ...stRateChartsChartIdChartSlabsEntityType.ts | 19 + ...ateChartsChartIdChartSlabsIncentiveType.ts | 19 + ...stRateChartsChartIdChartSlabsIncentives.ts | 28 + ...restRateChartsChartIdChartSlabsResponse.ts | 30 + .../models/getInterestRateChartsChartSlabs.ts | 23 + .../models/getInterestRateChartsCurrency.ts | 22 + .../models/getInterestRateChartsResponse.ts | 25 + ...etInterestRateChartsTemplatePeriodTypes.ts | 19 + .../getInterestRateChartsTemplateResponse.ts | 21 + .../getJobsJobIDJobRunHistoryResponse.ts | 22 + .../src/models/getJobsResponse.ts | 28 + .../getJournalEntriesTransactionIdResponse.ts | 22 + .../src/models/getLoanAccountLockResponse.ts | 23 + .../src/models/getLoanAccountingMappings.ts | 29 + .../src/models/getLoanCharge.ts | 20 + .../models/getLoanChargeCalculationType.ts | 19 + .../src/models/getLoanChargeCurrency.ts | 22 + .../getLoanChargeTemplateChargeAppliesTo.ts | 19 + .../getLoanChargeTemplateChargeOptions.ts | 29 + .../getLoanChargeTemplateChargeTimeType.ts | 19 + .../src/models/getLoanChargeTimeType.ts | 19 + .../getLoanCollateralManagementTemplate.ts | 24 + .../src/models/getLoanCurrency.ts | 22 + .../getLoanFeeToIncomeAccountMappings.ts | 22 + ...tLoanPaymentChannelToFundSourceMappings.ts | 18 + ...getLoanProductsAccountingMappingOptions.ts | 24 + .../models/getLoanProductsAccountingRule.ts | 19 + .../models/getLoanProductsAmortizationType.ts | 19 + .../getLoanProductsAssetAccountOptions.ts | 29 + .../models/getLoanProductsChargeAppliesTo.ts | 19 + .../models/getLoanProductsChargeOptions.ts | 31 + .../src/models/getLoanProductsCurrency.ts | 23 + .../models/getLoanProductsCurrencyOptions.ts | 22 + .../getLoanProductsDaysInYearTemplateType.ts | 19 + .../getLoanProductsExpenseAccountOptions.ts | 29 + .../src/models/getLoanProductsExpenseType.ts | 19 + .../getLoanProductsIncomeAccountOptions.ts | 29 + .../src/models/getLoanProductsIncomeType.ts | 19 + ...etLoanProductsInterestRateFrequencyType.ts | 19 + ...oductsInterestRateTemplateFrequencyType.ts | 19 + ...stRecalculationCompoundingFrequencyType.ts | 19 + ...ctsInterestRecalculationCompoundingType.ts | 19 + ...etLoanProductsInterestRecalculationData.ts | 31 + ...oductsInterestRecalculationTemplateData.ts | 22 + .../getLoanProductsInterestTemplateType.ts | 19 + .../src/models/getLoanProductsInterestType.ts | 19 + .../getLoanProductsLiabilityAccountOptions.ts | 29 + .../models/getLoanProductsLiabilityTagId.ts | 17 + .../models/getLoanProductsLiabilityType.ts | 19 + .../models/getLoanProductsLiabilityUsage.ts | 19 + .../src/models/getLoanProductsParamType.ts | 19 + .../getLoanProductsPaymentTypeOptions.ts | 19 + ...tsPreClosureInterestCalculationStrategy.ts | 19 + ...uctsPrincipalVariationsForBorrowerCycle.ts | 25 + .../getLoanProductsProductIdResponse.ts | 71 + .../getLoanProductsRepaymentFrequencyType.ts | 19 + ...nProductsRepaymentTemplateFrequencyType.ts | 19 + .../getLoanProductsRescheduleStrategyType.ts | 19 + .../src/models/getLoanProductsResponse.ts | 64 + .../models/getLoanProductsTemplateCurrency.ts | 23 + .../models/getLoanProductsTemplateResponse.ts | 73 + ...ctsTransactionProcessingStrategyOptions.ts | 19 + .../getLoanProductsValueConditionType.ts | 19 + ...etLoanProductsValueConditionTypeOptions.ts | 19 + .../getLoanRescheduleRequestResponse.ts | 36 + .../models/getLoanRescheduleRequestStatus.ts | 22 + .../src/models/getLoanTransactionRelation.ts | 22 + .../getLoansApprovalTemplateResponse.ts | 22 + .../src/models/getLoansChargePaymentMode.ts | 19 + .../src/models/getLoansCurrency.ts | 22 + .../models/getLoansLoanIdAmortizationType.ts | 19 + .../getLoansLoanIdChargeCalculationType.ts | 19 + .../models/getLoansLoanIdChargePaymentMode.ts | 19 + .../models/getLoansLoanIdChargeTimeType.ts | 19 + .../getLoansLoanIdChargesChargeIdResponse.ts | 40 + .../getLoansLoanIdChargesTemplateResponse.ts | 25 + .../src/models/getLoansLoanIdCodeValueData.ts | 25 + .../getLoansLoanIdCollateralsResponse.ts | 26 + ...tLoansLoanIdCollateralsTemplateResponse.ts | 21 + .../models/getLoansLoanIdCollectionData.ts | 29 + .../src/models/getLoansLoanIdCurrency.ts | 22 + .../getLoansLoanIdDisbursementDetails.ts | 28 + .../models/getLoansLoanIdEnumOptionData.ts | 22 + .../src/models/getLoansLoanIdFeeFrequency.ts | 19 + ...oansLoanIdInterestCalculationPeriodType.ts | 19 + ...getLoansLoanIdInterestRateFrequencyType.ts | 19 + .../src/models/getLoansLoanIdInterestType.ts | 19 + .../src/models/getLoansLoanIdLinkedAccount.ts | 18 + .../models/getLoansLoanIdLoanChargeData.ts | 49 + .../getLoansLoanIdLoanChargePaidByData.ts | 25 + ...getLoansLoanIdLoanInstallmentChargeData.ts | 28 + ...nIdLoanRepaymentScheduleInstallmentData.ts | 23 + .../getLoansLoanIdLoanTransactionEnumData.ts | 44 + .../getLoansLoanIdLoanTransactionRelation.ts | 25 + .../src/models/getLoansLoanIdLoanType.ts | 19 + .../models/getLoansLoanIdOverdueCharges.ts | 34 + .../models/getLoansLoanIdPaymentDetailData.ts | 27 + .../src/models/getLoansLoanIdPaymentType.ts | 24 + .../getLoansLoanIdRepaymentFrequencyType.ts | 19 + .../models/getLoansLoanIdRepaymentPeriod.ts | 55 + .../models/getLoansLoanIdRepaymentSchedule.ts | 33 + .../src/models/getLoansLoanIdResponse.ts | 95 + .../src/models/getLoansLoanIdStatus.ts | 27 + .../src/models/getLoansLoanIdSummary.ts | 82 + .../getLoansLoanIdTermPeriodFrequencyType.ts | 19 + .../src/models/getLoansLoanIdTimeline.ts | 36 + .../src/models/getLoansLoanIdTransactions.ts | 83 + ...LoansLoanIdTransactionsTemplateResponse.ts | 24 + ...LoanIdTransactionsTransactionIdResponse.ts | 46 + ...getLoansProductsDaysInMonthTemplateType.ts | 19 + .../models/getLoansProductsDaysInMonthType.ts | 19 + .../models/getLoansProductsDaysInYearType.ts | 19 + ...nsProductsInterestCalculationPeriodType.ts | 19 + .../src/models/getLoansResponse.ts | 22 + .../models/getLoansTemplateProductOptions.ts | 18 + .../src/models/getLoansTemplateResponse.ts | 26 + .../src/models/getLoansTemplateTimeline.ts | 17 + .../src/models/getLoansTotal.ts | 26 + .../src/models/getLoansTransactionType.ts | 19 + .../src/models/getLoansType.ts | 30 + .../src/models/getLockPeriodTypeEnum.ts | 18 + .../src/models/getMakerCheckerResponse.ts | 39 + .../getMakerCheckersSearchTemplateResponse.ts | 25 + .../src/models/getNotesNoteType.ts | 19 + .../src/models/getNotification.ts | 28 + .../src/models/getNotificationsResponse.ts | 22 + .../src/models/getObligeeData.ts | 24 + .../src/models/getOfficesResponse.ts | 25 + .../src/models/getOfficesTemplateResponse.ts | 22 + .../getOldestCOBProcessedLoanResponse.ts | 22 + .../getPageItemsStandingInstructionSwagger.ts | 51 + .../getPasswordPreferencesTemplateResponse.ts | 23 + .../src/models/getPaymentTypeData.ts | 19 + .../getPaymentTypesPaymentTypeIdResponse.ts | 26 + .../src/models/getPaymentTypesResponse.ts | 26 + .../src/models/getPermissionsResponse.ts | 24 + .../src/models/getPocketData.ts | 17 + .../src/models/getPocketLoanAccounts.ts | 21 + .../src/models/getPocketSavingAccounts.ts | 21 + .../src/models/getPostDatedChecks.ts | 25 + ...tionsResponseStandingInstructionSwagger.ts | 19 + .../getPriorityStandingInstructionSwagger.ts | 19 + .../getProductsAccountingMappingOptions.ts | 24 + .../models/getProductsAccountingMappings.ts | 24 + .../src/models/getProductsAccountingRule.ts | 19 + .../models/getProductsAssetAccountOptions.ts | 29 + .../src/models/getProductsCharges.ts | 31 + .../src/models/getProductsCurrency.ts | 23 + .../models/getProductsEquityAccountOptions.ts | 28 + .../models/getProductsIncomeAccountOptions.ts | 29 + .../getProductsLiabilityAccountOptions.ts | 29 + .../src/models/getProductsLiabilityType.ts | 19 + .../src/models/getProductsLiabilityUsage.ts | 19 + .../src/models/getProductsMarketPrice.ts | 19 + ...MinimumActivePeriodFrequencyTypeOptions.ts | 19 + .../src/models/getProductsPageItems.ts | 20 + .../src/models/getProductsTagId.ts | 18 + .../getProductsTypeProductIdResponse.ts | 54 + .../src/models/getProductsTypeResponse.ts | 22 + ...tProvisioningCriteriaCriteriaIdResponse.ts | 26 + .../models/getProvisioningCriteriaResponse.ts | 22 + ...tionsResponseStandingInstructionSwagger.ts | 19 + ...enceFrequencyStandingInstructionSwagger.ts | 19 + ...tionsResponseStandingInstructionSwagger.ts | 19 + ...ecurrenceTypeStandingInstructionSwagger.ts | 19 + .../src/models/getRecurringCurrency.ts | 23 + ...getRecurringDepositAccountsAccountChart.ts | 24 + ...ringDepositAccountsAccountChartCurrency.ts | 22 + ...curringDepositAccountsAccountIdResponse.ts | 60 + .../getRecurringDepositAccountsChartSlabs.ts | 24 + .../getRecurringDepositAccountsCurrency.ts | 23 + ...ngDepositAccountsDepositPeriodFrequency.ts | 19 + ...countsInterestCalculationDaysInYearType.ts | 19 + ...gDepositAccountsInterestCalculationType.ts | 19 + ...itAccountsInterestCompoundingPeriodType.ts | 19 + ...epositAccountsInterestPostingPeriodType.ts | 19 + ...urringDepositAccountsMaxDepositTermType.ts | 19 + ...urringDepositAccountsMinDepositTermType.ts | 19 + .../getRecurringDepositAccountsPeriodType.ts | 19 + .../getRecurringDepositAccountsPeriodTypes.ts | 19 + ...itAccountIdTransactionsTemplateResponse.ts | 30 + ...ountIdTransactionsTransactionIdResponse.ts | 32 + ...itAccountsRecurringDepositFrequencyType.ts | 19 + .../getRecurringDepositAccountsResponse.ts | 59 + .../getRecurringDepositAccountsStatus.ts | 28 + .../getRecurringDepositAccountsSummary.ts | 19 + ...ecurringDepositAccountsTemplateResponse.ts | 23 + .../getRecurringDepositAccountsTimeline.ts | 20 + ...tRecurringDepositProductsAccountingRule.ts | 19 + .../getRecurringDepositProductsCurrency.ts | 23 + ...oductsInterestCalculationDaysInYearType.ts | 19 + ...gDepositProductsInterestCalculationType.ts | 19 + ...itProductsInterestCompoundingPeriodType.ts | 19 + ...epositProductsInterestPostingPeriodType.ts | 19 + ...urringDepositProductsMaxDepositTermType.ts | 19 + ...urringDepositProductsMinDepositTermType.ts | 19 + ...ositProductsProductIdAccountingMappings.ts | 28 + ...ringDepositProductsProductIdActiveChart.ts | 24 + ...rringDepositProductsProductIdChartSlabs.ts | 25 + ...curringDepositProductsProductIdCurrency.ts | 22 + ...uctsProductIdFeeToIncomeAccountMappings.ts | 20 + ...oductIdFeeToIncomeAccountMappingsCharge.ts | 20 + ...FeeToIncomeAccountMappingsIncomeAccount.ts | 19 + ...itProductsProductIdIncomeFromFeeAccount.ts | 19 + ...oductsProductIdIncomeFromPenaltyAccount.ts | 19 + ...sProductIdInterestCompoundingPeriodType.ts | 19 + ...oductsProductIdInterestOnSavingsAccount.ts | 19 + ...ositProductsProductIdMaxDepositTermType.ts | 19 + ...ositProductsProductIdMinDepositTermType.ts | 19 + ...ProductIdPenaltyToIncomeAccountMappings.ts | 20 + ...tIdPenaltyToIncomeAccountMappingsCharge.ts | 20 + ...rringDepositProductsProductIdPeriodType.ts | 19 + ...sProductIdPreClosurePenalInterestOnType.ts | 19 + ...curringDepositProductsProductIdResponse.ts | 54 + ...tProductsProductIdSavingsControlAccount.ts | 19 + ...roductsProductIdSavingsReferenceAccount.ts | 19 + ...uctsProductIdTransfersInSuspenseAccount.ts | 19 + ...itProductsRecurringDepositFrequencyType.ts | 19 + .../getRecurringDepositProductsResponse.ts | 46 + .../models/getRecurringPaymentDetailData.ts | 24 + .../src/models/getRecurringPaymentType.ts | 18 + .../src/models/getRecurringProductOptions.ts | 18 + .../src/models/getRecurringTransactionType.ts | 30 + .../getRecurringTransactionsCurrency.ts | 23 + ...getRecurringTransactionsTransactionType.ts | 23 + .../models/getReportMailingJobsResponse.ts | 37 + .../models/getReportMailingJobsTemplate.ts | 23 + .../src/models/getReportsResponse.ts | 29 + .../src/models/getReportsTemplateResponse.ts | 22 + .../getRescheduleReasonsAllowedTypes.ts | 22 + .../getRescheduleReasonsTemplateResponse.ts | 21 + ...sourceTypeResourceIdNotesNoteIdResponse.ts | 30 + .../getResourceTypeResourceIdNotesResponse.ts | 30 + .../src/models/getRolesResponse.ts | 22 + .../getRolesRoleIdPermissionsResponse.ts | 24 + ...RoleIdPermissionsResponsePermissionData.ts | 21 + .../src/models/getRolesRoleIdResponse.ts | 22 + .../src/models/getRunReportColumnHeaders.ts | 21 + .../src/models/getRunReportResponse.ts | 23 + .../getSavingsAccountChargesPaidByData.ts | 18 + .../getSavingsAccountTransactionsPageItem.ts | 39 + .../getSavingsAccountsAccountIdResponse.ts | 43 + .../src/models/getSavingsAccountsResponse.ts | 22 + ...AccountsSavingsAccountIdChargesResponse.ts | 38 + ...IdChargesSavingsAccountChargeIdResponse.ts | 37 + ...SavingsAccountIdChargesTemplateResponse.ts | 25 + .../src/models/getSavingsAccountsSummary.ts | 20 + .../getSavingsAccountsTemplateResponse.ts | 23 + .../models/getSavingsAssetLiabilityType.ts | 19 + .../models/getSavingsChargeCalculationType.ts | 19 + .../src/models/getSavingsChargePaymentMode.ts | 19 + .../src/models/getSavingsChargeTimeType.ts | 19 + .../models/getSavingsChargesChargeTimeType.ts | 19 + .../src/models/getSavingsChargesOptions.ts | 29 + .../src/models/getSavingsCurrency.ts | 22 + ...avingsInterestCalculationDaysInYearType.ts | 19 + .../getSavingsInterestCalculationType.ts | 19 + ...getSavingsInterestCompoundingPeriodType.ts | 19 + .../getSavingsInterestPostingPeriodType.ts | 19 + .../src/models/getSavingsPageItems.ts | 40 + .../src/models/getSavingsProductOptions.ts | 18 + ...SavingsProductsAccountingMappingOptions.ts | 24 + .../getSavingsProductsAccountingMappings.ts | 28 + .../getSavingsProductsAccountingRule.ts | 19 + .../getSavingsProductsAssetAccountOptions.ts | 26 + .../getSavingsProductsChargeAppliesTo.ts | 19 + .../models/getSavingsProductsChargeOptions.ts | 31 + ...getSavingsProductsExpenseAccountOptions.ts | 26 + .../models/getSavingsProductsExpenseType.ts | 19 + ...vingsProductsFeeToIncomeAccountMappings.ts | 20 + ...roductsFeeToIncomeAccountMappingsCharge.ts | 20 + ...FeeToIncomeAccountMappingsIncomeAccount.ts | 19 + .../getSavingsProductsFundSourceAccount.ts | 19 + .../getSavingsProductsIncomeAccountOptions.ts | 26 + .../getSavingsProductsIncomeFromFeeAccount.ts | 19 + ...SavingsProductsIncomeFromPenaltyAccount.ts | 19 + .../models/getSavingsProductsIncomeType.ts | 19 + ...oductsInterestCalculationDaysInYearType.ts | 19 + ...tSavingsProductsInterestCalculationType.ts | 19 + ...gsProductsInterestCompoundingPeriodType.ts | 19 + ...SavingsProductsInterestOnSavingsAccount.ts | 19 + ...avingsProductsInterestPostingPeriodType.ts | 19 + ...tSavingsProductsLiabilityAccountOptions.ts | 28 + .../getSavingsProductsLiabilityTagId.ts | 17 + .../models/getSavingsProductsLiabilityType.ts | 19 + .../getSavingsProductsLiabilityUsage.ts | 19 + ...roductsLockinPeriodFrequencyTypeOptions.ts | 19 + ...ductsPaymentChannelToFundSourceMappings.ts | 20 + .../models/getSavingsProductsPaymentType.ts | 18 + .../getSavingsProductsPaymentTypeOptions.ts | 21 + ...sProductsPenaltyToIncomeAccountMappings.ts | 20 + ...ctsPenaltyToIncomeAccountMappingsCharge.ts | 20 + .../getSavingsProductsProductIdResponse.ts | 46 + .../src/models/getSavingsProductsResponse.ts | 37 + ...getSavingsProductsSavingsControlAccount.ts | 19 + ...tSavingsProductsSavingsReferenceAccount.ts | 19 + ...etSavingsProductsTemplateAccountingRule.ts | 19 + .../getSavingsProductsTemplateResponse.ts | 48 + ...vingsProductsTransfersInSuspenseAccount.ts | 19 + ...SavingsProductsWithdrawalFeeTypeOptions.ts | 19 + .../src/models/getSavingsStatus.ts | 25 + .../src/models/getSavingsSummary.ts | 19 + .../src/models/getSavingsTimeline.ts | 25 + .../src/models/getSchedulerResponse.ts | 20 + .../src/models/getSearchResponse.ts | 28 + .../getSelfBeneficiariesAccountOptions.ts | 19 + .../models/getSelfBeneficiariesTPTResponse.ts | 27 + ...getSelfBeneficiariesTPTTemplateResponse.ts | 21 + .../getSelfClientsChargeCalculationType.ts | 19 + .../models/getSelfClientsChargeTimeType.ts | 19 + .../models/getSelfClientsChargesPageItems.ts | 36 + .../getSelfClientsClientIdAccountsResponse.ts | 23 + ...fClientsClientIdChargesChargeIdResponse.ts | 39 + .../getSelfClientsClientIdChargesResponse.ts | 22 + .../models/getSelfClientsClientIdResponse.ts | 35 + ...elfClientsClientIdTransactionsPageItems.ts | 27 + ...SelfClientsClientIdTransactionsResponse.ts | 22 + ...ientIdTransactionsTransactionIdResponse.ts | 30 + .../getSelfClientsClientIdTransactionsType.ts | 19 + .../src/models/getSelfClientsLoanAccounts.ts | 26 + .../getSelfClientsLoanAccountsStatus.ts | 27 + .../models/getSelfClientsLoanAccountsType.ts | 19 + .../src/models/getSelfClientsPageItems.ts | 26 + .../src/models/getSelfClientsResponse.ts | 22 + .../models/getSelfClientsSavingsAccounts.ts | 24 + .../getSelfClientsSavingsAccountsCurrency.ts | 22 + .../getSelfClientsSavingsAccountsStatus.ts | 25 + .../src/models/getSelfClientsStatus.ts | 19 + .../src/models/getSelfClientsTimeline.ts | 24 + .../src/models/getSelfLoanIdSummary.ts | 77 + .../src/models/getSelfLoanIdTimeline.ts | 31 + .../getSelfLoansChargeCalculationType.ts | 19 + .../src/models/getSelfLoansChargeTimeType.ts | 19 + .../getSelfLoansLoanIdChargesResponse.ts | 37 + .../src/models/getSelfLoansLoanIdResponse.ts | 60 + ...LoanIdTransactionsTransactionIdResponse.ts | 28 + .../getSelfLoansLoanIdTransactionsType.ts | 27 + .../src/models/getSelfLoansProductOptions.ts | 18 + .../models/getSelfLoansTemplateResponse.ts | 26 + .../src/models/getSelfLoansTimeline.ts | 17 + ...SavingsAccountsAccountIdChargesResponse.ts | 38 + ...IdChargesSavingsAccountChargeIdResponse.ts | 37 + ...ountIdTransactionsTransactionIdResponse.ts | 32 + .../models/getSelfSavingsAccountsResponse.ts | 43 + .../getSelfSavingsChargeCalculationType.ts | 19 + .../models/getSelfSavingsChargeTimeType.ts | 19 + .../src/models/getSelfSavingsCurrency.ts | 22 + ...avingsInterestCalculationDaysInYearType.ts | 19 + .../getSelfSavingsInterestCalculationType.ts | 19 + ...elfSavingsInterestCompoundingPeriodType.ts | 19 + ...getSelfSavingsInterestPostingPeriodType.ts | 19 + .../models/getSelfSavingsPaymentDetailData.ts | 24 + .../src/models/getSelfSavingsPaymentType.ts | 18 + .../src/models/getSelfSavingsStatus.ts | 25 + .../src/models/getSelfSavingsSummary.ts | 19 + .../src/models/getSelfSavingsTimeline.ts | 17 + .../getSelfSavingsTransactionCurrency.ts | 23 + .../models/getSelfSavingsTransactionType.ts | 23 + .../getSelfUserDetailsOrganisationalRole.ts | 19 + .../src/models/getSelfUserDetailsResponse.ts | 34 + .../src/models/getSelfUserDetailsRoles.ts | 19 + .../models/getShareAccountsChargeAppliesTo.ts | 19 + .../getShareAccountsChargeCalculationType.ts | 19 + .../models/getShareAccountsChargeOptions.ts | 31 + .../getShareAccountsChargePaymentMode.ts | 19 + .../models/getShareAccountsChargeTimeType.ts | 19 + ...AccountsClientIdProductIdAccountingRule.ts | 19 + ...untsClientIdProductIdLockPeriodTypeEnum.ts | 19 + ...MinimumActivePeriodForDividendsTypeEnum.ts | 19 + ...tShareAccountsClientIdProductIdResponse.ts | 23 + .../src/models/getShareAccountsCurrency.ts | 22 + .../getShareAccountsIncomeFromFeeAccountId.ts | 19 + .../models/getShareAccountsShareEquityId.ts | 19 + .../getShareAccountsShareReferenceId.ts | 19 + .../models/getShareAccountsShareSuspenseId.ts | 19 + .../src/models/getShareEquityId.ts | 19 + .../src/models/getShareReferenceId.ts | 19 + .../src/models/getShareSuspenseId.ts | 19 + ...etStandingInstructionHistoryFromAccount.ts | 20 + ...ngInstructionHistoryPageItemsFromClient.ts | 20 + ...dingInstructionHistoryPageItemsResponse.ts | 38 + .../getStandingInstructionHistoryToAccount.ts | 20 + .../getStandingInstructionHistoryToClient.ts | 20 + ...etStandingInstructionRunHistoryResponse.ts | 22 + .../models/getStandingInstructionsResponse.ts | 22 + ...structionsStandingInstructionIdResponse.ts | 54 + ...getStandingInstructionsTemplateResponse.ts | 45 + ...tionsResponseStandingInstructionSwagger.ts | 19 + .../getStatusStandingInstructionSwagger.ts | 19 + .../src/models/getSurveyResponse.ts | 22 + .../models/getSurveyResponseDatatableData.ts | 20 + .../models/getTaxesComponentsCreditAccount.ts | 19 + .../getTaxesComponentsCreditAccountType.ts | 19 + .../src/models/getTaxesComponentsResponse.ts | 28 + .../src/models/getTaxesGroupResponse.ts | 23 + .../models/getTaxesGroupTaxAssociations.ts | 20 + .../src/models/getTaxesGroupTaxComponent.ts | 18 + .../src/models/getTellersResponse.ts | 38 + ...ellersTellerIdCashiersCashierIdResponse.ts | 30 + ...ashiersIdSummaryAndTransactionsResponse.ts | 31 + ...dCashiersCashiersIdTransactionsResponse.ts | 33 + ...sCashiersIdTransactionsTemplateResponse.ts | 30 + .../getTellersTellerIdCashiersResponse.ts | 25 + ...TellersTellerIdCashiersTemplateResponse.ts | 25 + .../src/models/getTemplatesResponse.ts | 26 + .../models/getTemplatesTemplateIdResponse.ts | 26 + .../models/getTemplatesTemplateResponse.ts | 26 + .../getToAccountStandingInstructionSwagger.ts | 20 + ...tionsResponseStandingInstructionSwagger.ts | 19 + ...ToAccountTypeStandingInstructionSwagger.ts | 19 + .../getToClientStandingInstructionSwagger.ts | 20 + ...tionsResponseStandingInstructionSwagger.ts | 19 + .../getToOfficeStandingInstructionSwagger.ts | 18 + .../src/models/getTransactionsCurrency.ts | 23 + .../getTransactionsPaymentDetailData.ts | 24 + .../src/models/getTranscationEnumData.ts | 35 + ...tionsResponseStandingInstructionSwagger.ts | 19 + ...tTransferTypeStandingInstructionSwagger.ts | 19 + .../src/models/getUserDetailsResponse.ts | 32 + .../src/models/getUsersResponse.ts | 31 + .../src/models/getUsersTemplateResponse.ts | 24 + .../src/models/getUsersUserIdResponse.ts | 32 + .../src/models/getWorkingDaysResponse.ts | 24 + .../models/getWorkingDaysTemplateResponse.ts | 21 + .../models/globalConfigurationPropertyData.ts | 24 + .../src/models/grantedAuthority.ts | 17 + packages/fineract-client/src/models/group.ts | 43 + .../src/models/groupGeneralData.ts | 60 + .../fineract-client/src/models/groupLevel.ts | 24 + .../src/models/groupRoleData.ts | 21 + .../fineract-client/src/models/grouping.ts | 19 + packages/fineract-client/src/models/header.ts | 18 + .../src/models/hookTemplateData.ts | 20 + .../fineract-client/src/models/idDocument.ts | 20 + packages/fineract-client/src/models/image.ts | 20 + .../src/models/inlineJobRequest.ts | 20 + .../src/models/inlineJobResponse.ts | 20 + .../src/models/interopAccountData.ts | 35 + .../interopIdentifierAccountResponseData.ts | 36 + .../models/interopIdentifierRequestData.ts | 34 + .../models/interopIdentifiersResponseData.ts | 35 + .../src/models/interopKycResponseData.ts | 47 + .../src/models/interopQuoteRequestData.ts | 47 + .../src/models/interopQuoteResponseData.ts | 52 + .../models/interopTransactionRequestData.ts | 39 + .../interopTransactionRequestResponseData.ts | 49 + .../src/models/interopTransactionTypeData.ts | 43 + .../src/models/interopTransactionsData.ts | 35 + .../src/models/interopTransferRequestData.ts | 42 + .../src/models/interopTransferResponseData.ts | 50 + .../src/models/isCatchUpRunningResponse.ts | 21 + .../src/models/jobDetailHistoryData.ts | 23 + .../src/models/jobDetailHistoryDataSwagger.ts | 21 + .../src/models/jobParameterDTO.ts | 18 + .../src/models/journalEntryCommand.ts | 32 + .../src/models/journalEntryData.ts | 59 + .../src/models/journalEntryTransactionItem.ts | 45 + .../src/models/loanAccountLock.ts | 37 + .../fineract-client/src/models/loanProduct.ts | 93 + .../loanProductBorrowerCycleVariationData.ts | 42 + .../loanProductConfigurableAttributes.ts | 36 + .../src/models/loanProductData.ts | 152 + .../src/models/loanProductFloatingRates.ts | 27 + .../src/models/loanProductGuaranteeData.ts | 21 + .../src/models/loanProductGuaranteeDetails.ts | 21 + .../loanProductInterestRecalculationData.ts | 37 + ...loanProductInterestRecalculationDetails.ts | 51 + .../loanProductProvisioningEntryData.ts | 35 + .../src/models/loanProductRelatedDetail.ts | 77 + .../src/models/loanProductTrancheDetails.ts | 17 + .../src/models/loanTermTypeOptions.ts | 19 + .../src/models/loanTermVariationsData.ts | 24 + .../fineract-client/src/models/localTime.ts | 20 + .../src/models/lookupTableData.ts | 20 + .../src/models/lookupTableEntry.ts | 19 + .../fineract-client/src/models/mediaType.ts | 21 + packages/fineract-client/src/models/models.ts | 1339 ++++++ .../src/models/monetaryCurrency.ts | 19 + packages/fineract-client/src/models/money.ts | 26 + .../fineract-client/src/models/moneyData.ts | 18 + .../fineract-client/src/models/multiPart.ts | 30 + ...multivaluedMapStringParameterizedHeader.ts | 21 + .../src/models/multivaluedMapStringString.ts | 20 + .../fineract-client/src/models/noteData.ts | 32 + packages/fineract-client/src/models/office.ts | 22 + .../fineract-client/src/models/officeData.ts | 27 + .../src/models/pageCashierTransactionData.ts | 19 + .../src/models/pageClientSearchData.ts | 30 + .../src/models/pageExternalTransferData.ts | 30 + .../src/models/pageJournalEntryData.ts | 30 + .../fineract-client/src/models/pageable.ts | 23 + .../models/pagedRequestClientTextSearch.ts | 22 + .../pagedRequestSavingsTransactionSearch.ts | 22 + .../src/models/parameterizedHeader.ts | 18 + .../src/models/paymentDetailData.ts | 24 + .../fineract-client/src/models/paymentType.ts | 19 + .../src/models/paymentTypeData.ts | 23 + .../models/paymentTypeToGLAccountMapper.ts | 20 + .../fineract-client/src/models/permission.ts | 20 + .../src/models/portfolioAccountData.ts | 31 + .../models/postAccountNumberFormatsRequest.ts | 21 + .../postAccountNumberFormatsResponse.ts | 20 + ...AccountTransfersRefundByTransferRequest.ts | 32 + ...ccountTransfersRefundByTransferResponse.ts | 21 + .../src/models/postAccountTransfersRequest.ts | 32 + .../models/postAccountTransfersResponse.ts | 21 + .../src/models/postAccountingRulesRequest.ts | 24 + .../src/models/postAccountingRulesResponse.ts | 21 + .../src/models/postAccountsCharges.ts | 18 + .../src/models/postAccountsRequestedShares.ts | 17 + .../postAccountsTypeAccountIdRequest.ts | 21 + .../postAccountsTypeAccountIdResponse.ts | 20 + .../src/models/postAccountsTypeRequest.ts | 35 + .../src/models/postAccountsTypeResponse.ts | 20 + .../src/models/postAdhocQuerySearchRequest.ts | 31 + .../models/postAdhocQuerySearchResponse.ts | 23 + .../src/models/postAuthenticationRequest.ts | 21 + .../src/models/postAuthenticationResponse.ts | 32 + .../src/models/postCentersCenterIdRequest.ts | 23 + .../src/models/postCentersCenterIdResponse.ts | 20 + .../src/models/postCentersRequest.ts | 22 + .../src/models/postCentersResponse.ts | 22 + .../src/models/postChargesRequest.ts | 30 + .../src/models/postChargesResponse.ts | 20 + .../postClientClientIdAddressesRequest.ts | 28 + .../postClientClientIdAddressesResponse.ts | 20 + .../src/models/postClientCollateralRequest.ts | 22 + .../models/postClientCollateralResponse.ts | 21 + .../src/models/postClientsAddressRequest.ts | 29 + ...stClientsClientIdChargesChargeIdRequest.ts | 23 + ...tClientsClientIdChargesChargeIdResponse.ts | 23 + .../postClientsClientIdChargesRequest.ts | 24 + .../postClientsClientIdChargesResponse.ts | 22 + .../postClientsClientIdIdentifiersRequest.ts | 22 + .../postClientsClientIdIdentifiersResponse.ts | 22 + .../src/models/postClientsClientIdRequest.ts | 22 + .../src/models/postClientsClientIdResponse.ts | 23 + ...ientIdTransactionsTransactionIdResponse.ts | 22 + .../src/models/postClientsDatatable.ts | 21 + .../src/models/postClientsRequest.ts | 43 + .../src/models/postClientsResponse.ts | 24 + .../src/models/postCodeValueDataResponse.ts | 20 + .../src/models/postCodeValuesDataRequest.ts | 23 + .../src/models/postCodesRequest.ts | 20 + .../src/models/postCodesResponse.ts | 20 + .../postCollateralManagementProductRequest.ts | 25 + ...postCollateralManagementProductResponse.ts | 20 + ...ollectionSheetBulkRepaymentTransactions.ts | 20 + .../src/models/postCollectionSheetChanges.ts | 20 + .../src/models/postCollectionSheetRequest.ts | 27 + .../src/models/postCollectionSheetResponse.ts | 23 + .../src/models/postColumnHeaderData.ts | 41 + .../postCreateRescheduleLoansRequest.ts | 31 + .../postCreateRescheduleLoansResponse.ts | 23 + .../postDataTablesAppTableIdResponse.ts | 20 + .../src/models/postDataTablesRequest.ts | 28 + .../src/models/postDataTablesResponse.ts | 20 + .../models/postDelinquencyBucketRequest.ts | 21 + .../models/postDelinquencyBucketResponse.ts | 20 + .../src/models/postDelinquencyRangeRequest.ts | 23 + .../models/postDelinquencyRangeResponse.ts | 20 + ...ostEntityDatatableChecksTemplateRequest.ts | 23 + ...stEntityDatatableChecksTemplateResponse.ts | 20 + ...postEntityTypeEntityIdDocumentsResponse.ts | 21 + .../postFinancialActivityAccountsRequest.ts | 21 + .../postFinancialActivityAccountsResponse.ts | 20 + ...stFixedDepositAccountsAccountIdResponse.ts | 23 + .../models/postFixedDepositAccountsRequest.ts | 27 + .../postFixedDepositAccountsResponse.ts | 23 + .../postFixedDepositProductsChartSlabs.ts | 21 + .../models/postFixedDepositProductsCharts.ts | 21 + .../models/postFixedDepositProductsRequest.ts | 40 + .../postFixedDepositProductsResponse.ts | 20 + .../models/postFloatingRatesRatePeriods.ts | 20 + .../src/models/postFloatingRatesRequest.ts | 24 + .../src/models/postFloatingRatesResponse.ts | 20 + .../src/models/postFundsRequest.ts | 20 + .../src/models/postFundsResponse.ts | 20 + .../src/models/postGLAccountsRequest.ts | 27 + .../src/models/postGLAccountsResponse.ts | 20 + .../src/models/postGlClosuresRequest.ts | 24 + .../src/models/postGlClosuresResponse.ts | 21 + .../src/models/postGroupsGroupIdClients.ts | 17 + ...roupsGroupIdCommandUnassignStaffRequest.ts | 20 + ...oupsGroupIdCommandUnassignStaffResponse.ts | 23 + .../src/models/postGroupsGroupIdRequest.ts | 22 + .../src/models/postGroupsGroupIdResponse.ts | 20 + .../src/models/postGroupsRequest.ts | 22 + .../src/models/postGroupsResponse.ts | 22 + .../models/postHolidaysHolidayIdResponse.ts | 20 + .../src/models/postHolidaysRequest.ts | 28 + .../src/models/postHolidaysRequestOffices.ts | 17 + .../src/models/postHolidaysResponse.ts | 20 + .../src/models/postHookRequest.ts | 27 + .../src/models/postHookResponse.ts | 20 + .../src/models/postInitiateTransferRequest.ts | 25 + .../models/postInitiateTransferResponse.ts | 39 + ...stRateChartsChartIdChartSlabsIncentives.ts | 22 + ...erestRateChartsChartIdChartSlabsRequest.ts | 27 + ...restRateChartsChartIdChartSlabsResponse.ts | 20 + .../models/postInterestRateChartsRequest.ts | 25 + .../models/postInterestRateChartsResponse.ts | 20 + .../src/models/postJournalEntriesResponse.ts | 27 + .../postJournalEntriesTransactionIdRequest.ts | 23 + ...postJournalEntriesTransactionIdResponse.ts | 23 + ...tLinkDelinkAccountsToFromPocketResponse.ts | 20 + .../src/models/postLoanChanges.ts | 17 + .../src/models/postLoanProductsRequest.ts | 124 + .../src/models/postLoanProductsResponse.ts | 20 + .../src/models/postLoansDisbursementData.ts | 21 + .../src/models/postLoansLoanIdChanges.ts | 25 + .../postLoansLoanIdChargesChargeIdChanges.ts | 30 + .../postLoansLoanIdChargesChargeIdRequest.ts | 34 + .../postLoansLoanIdChargesChargeIdResponse.ts | 29 + .../models/postLoansLoanIdChargesRequest.ts | 25 + .../models/postLoansLoanIdChargesResponse.ts | 24 + .../postLoansLoanIdCollateralsRequest.ts | 20 + .../postLoansLoanIdCollateralsResponse.ts | 20 + .../models/postLoansLoanIdDisbursementData.ts | 21 + .../src/models/postLoansLoanIdRequest.ts | 40 + .../src/models/postLoansLoanIdResponse.ts | 28 + .../models/postLoansLoanIdScheduleResponse.ts | 22 + .../src/models/postLoansLoanIdStatus.ts | 30 + .../postLoansLoanIdTransactionsRequest.ts | 36 + .../postLoansLoanIdTransactionsResponse.ts | 28 + ...tLoansLoanIdTransactionsResponseChanges.ts | 24 + ...sLoanIdTransactionsTransactionIdRequest.ts | 27 + .../postLoansRepaymentSchedulePeriods.ts | 27 + .../src/models/postLoansRequest.ts | 61 + .../src/models/postLoansResponse.ts | 40 + .../src/models/postMakerCheckersResponse.ts | 20 + .../models/postNewShareApplicationResponse.ts | 20 + .../src/models/postNewTransferResponse.ts | 21 + .../src/models/postOfficesRequest.ts | 25 + .../src/models/postOfficesResponse.ts | 21 + .../src/models/postPaymentTypesRequest.ts | 25 + .../src/models/postPaymentTypesResponse.ts | 20 + .../src/models/postProductsChargesSelected.ts | 17 + .../models/postProductsMarketPricePeriods.ts | 20 + .../src/models/postProductsTypeRequest.ts | 42 + .../src/models/postProductsTypeResponse.ts | 20 + .../models/postProvisioningCriteriaRequest.ts | 24 + .../postProvisioningCriteriaResponse.ts | 20 + .../models/postProvisioningEntriesRequest.ts | 25 + .../models/postProvisioningEntriesResponse.ts | 20 + .../src/models/postRecurringChanges.ts | 21 + ...curringDepositAccountsAccountIdResponse.ts | 23 + ...ringDepositAccountIdTransactionsRequest.ts | 29 + ...ingDepositAccountIdTransactionsResponse.ts | 25 + ...ountIdTransactionsTransactionIdResponse.ts | 25 + .../postRecurringDepositAccountsRequest.ts | 31 + .../postRecurringDepositAccountsResponse.ts | 23 + .../postRecurringDepositProductsChartSlabs.ts | 21 + .../postRecurringDepositProductsCharts.ts | 21 + .../postRecurringDepositProductsRequest.ts | 45 + .../postRecurringDepositProductsResponse.ts | 20 + .../models/postReportMailingJobsRequest.ts | 31 + .../models/postReportMailingJobsResponse.ts | 20 + .../src/models/postReportsResponse.ts | 20 + .../src/models/postRepostRequest.ts | 26 + .../postResourceTypeResourceIdNotesRequest.ts | 20 + ...postResourceTypeResourceIdNotesResponse.ts | 22 + .../src/models/postRolesRequest.ts | 21 + .../src/models/postRolesResponse.ts | 20 + .../src/models/postRolesRoleIdResponse.ts | 20 + .../src/models/postRunaccrualsRequest.ts | 25 + ...sAccountBulkReversalTransactionsRequest.ts | 20 + .../postSavingsAccountTransactionsRequest.ts | 26 + .../postSavingsAccountTransactionsResponse.ts | 23 + .../postSavingsAccountsAccountIdRequest.ts | 23 + .../postSavingsAccountsAccountIdResponse.ts | 23 + .../src/models/postSavingsAccountsRequest.ts | 24 + .../src/models/postSavingsAccountsResponse.ts | 23 + ...sAccountsSavingsAccountIdChargesRequest.ts | 24 + ...AccountsSavingsAccountIdChargesResponse.ts | 23 + ...tIdChargesSavingsAccountChargeIdRequest.ts | 23 + ...IdChargesSavingsAccountChargeIdResponse.ts | 23 + .../src/models/postSavingsCharges.ts | 17 + .../src/models/postSavingsProductsRequest.ts | 35 + .../src/models/postSavingsProductsResponse.ts | 20 + .../models/postSelfAuthenticationResponse.ts | 34 + .../models/postSelfBeneficiariesTPTRequest.ts | 25 + .../postSelfBeneficiariesTPTResponse.ts | 20 + .../src/models/postSelfLoansData.ts | 19 + .../src/models/postSelfLoansDatatables.ts | 19 + .../models/postSelfLoansDisbursementData.ts | 19 + .../src/models/postSelfLoansLoanIdChanges.ts | 22 + .../src/models/postSelfLoansLoanIdRequest.ts | 23 + .../src/models/postSelfLoansLoanIdResponse.ts | 25 + .../src/models/postSelfLoansLoanIdStatus.ts | 27 + .../src/models/postSelfLoansRequest.ts | 44 + .../src/models/postSelfLoansResponse.ts | 23 + .../src/models/postStaffRequest.ts | 29 + .../models/postStandingInstructionsRequest.ts | 44 + .../postStandingInstructionsResponse.ts | 21 + .../postSurveySurveyNameApptableIdRequest.ts | 32 + .../postSurveySurveyNameApptableIdResponse.ts | 22 + .../src/models/postTaxesComponentsRequest.ts | 26 + .../src/models/postTaxesComponentsResponse.ts | 20 + .../src/models/postTaxesGroupRequest.ts | 24 + .../src/models/postTaxesGroupResponse.ts | 20 + .../src/models/postTaxesGroupTaxComponents.ts | 18 + .../src/models/postTellersRequest.ts | 37 + .../src/models/postTellersResponse.ts | 21 + ...ellerIdCashiersCashierIdAllocateRequest.ts | 25 + ...llerIdCashiersCashierIdAllocateResponse.ts | 21 + ...sTellerIdCashiersCashierIdSettleRequest.ts | 25 + ...TellerIdCashiersCashierIdSettleResponse.ts | 21 + .../postTellersTellerIdCashiersRequest.ts | 26 + .../postTellersTellerIdCashiersResponse.ts | 21 + .../src/models/postTemplatesRequest.ts | 26 + .../src/models/postTemplatesResponse.ts | 20 + .../models/postUpdateRescheduleLoanChanges.ts | 20 + .../postUpdateRescheduleLoansRequest.ts | 23 + .../postUpdateRescheduleLoansResponse.ts | 25 + .../src/models/postUsersRequest.ts | 30 + .../src/models/postUsersResponse.ts | 21 + .../src/models/postalAddress.ts | 22 + .../src/models/processingResultLookup.ts | 18 + .../provisioningCriteriaDefinitionData.ts | 28 + .../src/models/provisioningEntryData.ts | 26 + .../models/putAccountNumberFormatsRequest.ts | 20 + .../models/putAccountNumberFormatsResponse.ts | 22 + .../putAccountNumberFormatschangesSwagger.ts | 17 + .../src/models/putAccountingRulesRequest.ts | 20 + .../src/models/putAccountingRulesResponse.ts | 22 + ...utAccountingRulesResponsechangesSwagger.ts | 17 + .../src/models/putAccountsChanges.ts | 20 + .../models/putAccountsTypeAccountIdRequest.ts | 23 + .../putAccountsTypeAccountIdResponse.ts | 22 + .../src/models/putCachechangesSwagger.ts | 17 + .../src/models/putCachesRequest.ts | 20 + .../src/models/putCachesResponse.ts | 21 + .../src/models/putCentersCenterIdRequest.ts | 20 + .../src/models/putCentersCenterIdResponse.ts | 24 + .../src/models/putCentersChanges.ts | 17 + .../putChargeTransactionChangesRequest.ts | 21 + .../putChargeTransactionChangesResponse.ts | 28 + ...ChargeTransactionChangesResponseChanges.ts | 25 + .../src/models/putChargesChargeIdRequest.ts | 20 + .../src/models/putChargesChargeIdResponse.ts | 22 + .../putClientClientIdAddressesRequest.ts | 21 + .../putClientClientIdAddressesResponse.ts | 20 + .../src/models/putClientCollateralRequest.ts | 21 + .../src/models/putClientCollateralResponse.ts | 23 + ...sClientIdIdentifiersIdentifierIdRequest.ts | 22 + ...ClientIdIdentifiersIdentifierIdResponse.ts | 24 + .../src/models/putClientsClientIdRequest.ts | 21 + .../src/models/putClientsClientIdResponse.ts | 25 + .../src/models/putCodeValueDataResponse.ts | 22 + .../src/models/putCodeValuechangesSwagger.ts | 19 + .../src/models/putCodeValuesDataRequest.ts | 23 + .../src/models/putCodesApichangesSwagger.ts | 17 + .../src/models/putCodesRequest.ts | 20 + .../src/models/putCodesResponse.ts | 22 + .../src/models/putCollateralProductRequest.ts | 25 + .../models/putCollateralProductResponse.ts | 22 + .../src/models/putCurrenciesRequest.ts | 20 + .../src/models/putCurrenciesResponse.ts | 20 + ...DataTablesAppTableIdDatatableIdResponse.ts | 24 + .../models/putDataTablesAppTableIdResponse.ts | 24 + .../src/models/putDataTablesRequest.ts | 26 + .../models/putDataTablesRequestAddColumns.ts | 25 + .../putDataTablesRequestChangeColumns.ts | 26 + .../models/putDataTablesRequestDropColumns.ts | 17 + .../src/models/putDataTablesResponse.ts | 20 + .../models/putDelinquencyBucketResponse.ts | 20 + .../src/models/putDelinquencyRangeResponse.ts | 22 + .../putEntityTypeEntityIdDocumentsResponse.ts | 22 + .../putExternalEventConfigurationsRequest.ts | 20 + .../src/models/putExternalServiceRequest.ts | 21 + .../putFinancialActivityAccountsResponse.ts | 22 + ...inancialActivityAccountscommentsSwagger.ts | 17 + ...putFixedDepositAccountsAccountIdRequest.ts | 21 + ...utFixedDepositAccountsAccountIdResponse.ts | 25 + .../models/putFixedDepositAccountsChanges.ts | 18 + .../models/putFixedDepositProductsChanges.ts | 18 + ...putFixedDepositProductsProductIdRequest.ts | 23 + ...utFixedDepositProductsProductIdResponse.ts | 22 + .../src/models/putFloatingRatesChanges.ts | 18 + .../putFloatingRatesFloatingRateIdRequest.ts | 24 + .../putFloatingRatesFloatingRateIdResponse.ts | 22 + .../src/models/putFundsFundIdRequest.ts | 20 + .../src/models/putFundsFundIdResponse.ts | 22 + .../src/models/putGLAccountsRequest.ts | 28 + .../src/models/putGLAccountsResponse.ts | 22 + .../putGLAccountsResponsechangesSwagger.ts | 17 + .../src/models/putGlClosuresRequest.ts | 20 + .../src/models/putGlClosuresResponse.ts | 22 + .../models/putGlobalConfigurationsRequest.ts | 25 + .../models/putGlobalConfigurationsResponse.ts | 22 + ...balConfigurationsResponsechangesSwagger.ts | 20 + .../src/models/putGroupsGroupIdChanges.ts | 17 + .../src/models/putGroupsGroupIdRequest.ts | 20 + .../src/models/putGroupsGroupIdResponse.ts | 24 + .../src/models/putHolidaysHolidayIdRequest.ts | 21 + .../models/putHolidaysHolidayIdResponse.ts | 22 + .../putHolidaysHolidayIdResponseChanges.ts | 18 + .../src/models/putHookRequest.ts | 27 + .../src/models/putHookResponse.ts | 22 + .../models/putHookResponseChangesSwagger.ts | 21 + ...artsChartIdChartSlabsChartSlabIdRequest.ts | 21 + ...rtsChartIdChartSlabsChartSlabIdResponse.ts | 22 + .../putInterestRateChartsChartIdRequest.ts | 21 + .../putInterestRateChartsChartIdResponse.ts | 20 + .../src/models/putJobsJobIDRequest.ts | 22 + .../src/models/putLoanChanges.ts | 18 + .../models/putLoanProductsProductIdRequest.ts | 123 + .../putLoanProductsProductIdResponse.ts | 22 + .../src/models/putLoansLoanIdChanges.ts | 19 + .../putLoansLoanIdChargesChargeIdRequest.ts | 23 + .../putLoansLoanIdChargesChargeIdResponse.ts | 26 + .../src/models/putLoansLoanIdCollateral.ts | 18 + ...nsLoanIdCollateralsCollateralIdResponse.ts | 23 + .../models/putLoansLoanIdDisbursementData.ts | 23 + .../src/models/putLoansLoanIdRequest.ts | 56 + .../src/models/putLoansLoanIdResponse.ts | 26 + ...nsLoandIdCollateralsCollateralIdRequest.ts | 20 + .../src/models/putNotesChanges.ts | 17 + .../src/models/putOfficesOfficeIdRequest.ts | 20 + .../src/models/putOfficesOfficeIdResponse.ts | 23 + .../putOfficesOfficeIdResponseChanges.ts | 17 + .../putPasswordPreferencesTemplateRequest.ts | 20 + .../putPaymentTypesPaymentTypeIdRequest.ts | 25 + .../putPaymentTypesPaymentTypeIdResponse.ts | 20 + .../src/models/putPermissionsRequest.ts | 20 + .../src/models/putProductsChanges.ts | 19 + .../models/putProductsTypeProductIdRequest.ts | 22 + .../putProductsTypeProductIdResponse.ts | 22 + .../models/putProvisioningCriteriaRequest.ts | 24 + .../models/putProvisioningCriteriaResponse.ts | 22 + .../putProvisioningCriteriaResponseChanges.ts | 17 + .../models/putProvisioningEntriesRequest.ts | 20 + .../models/putProvisioningEntriesResponse.ts | 20 + ...ecurringDepositAccountsAccountIdRequest.ts | 21 + ...curringDepositAccountsAccountIdResponse.ts | 25 + .../putRecurringDepositAccountsChanges.ts | 18 + .../putRecurringDepositProductsChanges.ts | 18 + .../putRecurringDepositProductsRequest.ts | 23 + .../putRecurringDepositProductsResponse.ts | 22 + .../src/models/putReportMailingJobsRequest.ts | 22 + .../models/putReportMailingJobsResponse.ts | 22 + .../putReportMailingJobsResponseChanges.ts | 17 + .../src/models/putReportRequest.ts | 21 + .../src/models/putReportResponse.ts | 22 + .../src/models/putReportResponseChanges.ts | 18 + ...esourceTypeResourceIdNotesNoteIdRequest.ts | 20 + ...sourceTypeResourceIdNotesNoteIdResponse.ts | 24 + .../putRolesRoleIdPermissionsRequest.ts | 20 + .../putRolesRoleIdPermissionsResponse.ts | 22 + ...IdPermissionsResponsePermissionsChanges.ts | 17 + .../src/models/putRolesRoleIdRequest.ts | 20 + .../src/models/putRolesRoleIdResponse.ts | 22 + .../models/putRolesRoleIdResponseChanges.ts | 17 + .../putSavingsAccountsAccountIdRequest.ts | 21 + .../putSavingsAccountsAccountIdResponse.ts | 25 + .../src/models/putSavingsAccountsChanges.ts | 18 + ...tIdChargesSavingsAccountChargeIdRequest.ts | 23 + ...IdChargesSavingsAccountChargeIdResponse.ts | 25 + .../src/models/putSavingsChanges.ts | 19 + .../putSavingsProductsProductIdRequest.ts | 22 + .../putSavingsProductsProductIdResponse.ts | 22 + .../src/models/putSelfBeneficiariesChanges.ts | 18 + ...elfBeneficiariesTPTBeneficiaryIdRequest.ts | 21 + ...lfBeneficiariesTPTBeneficiaryIdResponse.ts | 22 + .../src/models/putSelfLoansChanges.ts | 18 + .../src/models/putSelfLoansLoanIdRequest.ts | 34 + .../src/models/putSelfLoansLoanIdResponse.ts | 25 + .../src/models/putSelfUserChanges.ts | 17 + .../src/models/putSelfUserRequest.ts | 21 + .../src/models/putSelfUserResponse.ts | 23 + .../src/models/putStaffRequest.ts | 21 + ...nstructionsStandingInstructionIdRequest.ts | 20 + ...structionsStandingInstructionIdResponse.ts | 22 + .../src/models/putTaxesComponentsChanges.ts | 19 + ...putTaxesComponentsTaxComponentIdRequest.ts | 24 + ...utTaxesComponentsTaxComponentIdResponse.ts | 22 + .../src/models/putTaxesGroupChanges.ts | 20 + .../models/putTaxesGroupModifiedComponents.ts | 18 + .../src/models/putTaxesGroupTaxComponents.ts | 19 + .../models/putTaxesGroupTaxGroupIdRequest.ts | 24 + .../models/putTaxesGroupTaxGroupIdResponse.ts | 22 + .../src/models/putTellersRequest.ts | 38 + .../src/models/putTellersResponse.ts | 23 + .../src/models/putTellersResponseChanges.ts | 21 + ...TellersTellerIdCashiersCashierIdRequest.ts | 26 + ...ellersTellerIdCashiersCashierIdResponse.ts | 23 + ...ellerIdCashiersCashierIdResponseChanges.ts | 20 + .../models/putTemplatesTemplateIdRequest.ts | 26 + .../models/putTemplatesTemplateIdResponse.ts | 20 + .../putUpdateStandingInstructionChanges.ts | 17 + .../src/models/putUsersUserIdRequest.ts | 22 + .../src/models/putUsersUserIdResponse.ts | 23 + .../models/putUsersUserIdResponseChanges.ts | 18 + .../src/models/putWorkingDaysRequest.ts | 24 + .../src/models/putWorkingDaysResponse.ts | 20 + .../fineract-client/src/models/question.ts | 27 + .../src/models/questionData.ts | 24 + .../src/models/rangeFilterBigDecimal.ts | 28 + .../src/models/rangeFilterLocalDate.ts | 28 + packages/fineract-client/src/models/rate.ts | 28 + .../fineract-client/src/models/rateData.ts | 22 + .../src/models/reportExportType.ts | 18 + .../models/reportMailingJobRunHistoryData.ts | 23 + .../models/reportMailingJobTimelineData.ts | 24 + .../src/models/rescheduleReasonsCodeValue.ts | 20 + .../src/models/rescheduleReasonsTimeline.ts | 24 + .../fineract-client/src/models/response.ts | 23 + .../src/models/responseData.ts | 20 + .../src/models/resultsetColumnHeaderData.ts | 36 + .../src/models/resultsetRowData.ts | 17 + .../src/models/retrieveOneResponse.ts | 29 + packages/fineract-client/src/models/role.ts | 23 + .../fineract-client/src/models/roleData.ts | 18 + .../src/models/runReportsResponse.ts | 20 + .../savingsAccountApplicationTimelineData.ts | 40 + .../src/models/savingsAccountChargeData.ts | 51 + .../models/savingsAccountChargesPaidByData.ts | 22 + .../src/models/savingsAccountData.ts | 124 + .../models/savingsAccountStatusEnumData.ts | 29 + .../models/savingsAccountSubStatusEnumData.ts | 26 + .../src/models/savingsAccountSummaryData.ts | 36 + .../models/savingsAccountTransactionData.ts | 98 + .../savingsAccountTransactionEnumData.ts | 42 + ...avingsAccountTransactionsSearchResponse.ts | 22 + .../src/models/savingsProductData.ts | 39 + .../src/models/savingsTransactionSearch.ts | 18 + .../fineract-client/src/models/scorecard.ts | 30 + .../src/models/scorecardData.ts | 24 + .../src/models/scorecardValue.ts | 20 + .../models/singleDebitOrCreditEntryCommand.ts | 23 + .../src/models/smsCampaignData.ts | 30 + packages/fineract-client/src/models/sort.ts | 19 + .../fineract-client/src/models/sortOrder.ts | 26 + packages/fineract-client/src/models/staff.ts | 35 + .../fineract-client/src/models/staffData.ts | 24 + .../fineract-client/src/models/subjectName.ts | 20 + packages/fineract-client/src/models/survey.ts | 28 + .../fineract-client/src/models/surveyData.ts | 27 + .../src/models/taxComponent.ts | 32 + .../src/models/taxComponentData.ts | 30 + .../src/models/taxComponentHistory.ts | 23 + .../src/models/taxComponentHistoryData.ts | 17 + .../src/models/taxDetailsData.ts | 19 + .../fineract-client/src/models/taxGroup.ts | 25 + .../src/models/taxGroupData.ts | 18 + .../src/models/taxGroupMappings.ts | 27 + .../src/models/taxGroupMappingsData.ts | 18 + .../src/models/templateMapper.ts | 21 + .../src/models/transactionDetailData.ts | 23 + .../src/models/transactionDetails.ts | 23 + .../transactionProcessingStrategyData.ts | 19 + .../src/models/transactionTypeEnumData.ts | 19 + .../models/updateBusinessStepConfigRequest.ts | 21 + .../src/models/updateChangesResponse.ts | 20 + .../src/models/updatePostDatedCheckRequest.ts | 26 + .../models/updatePostDatedCheckResponse.ts | 22 + .../src/models/updateStaffResponse.ts | 21 + packages/fineract-client/src/param.ts | 69 + .../services/accountNumberFormat.service.ts | 550 +++ .../src/services/accountTransfers.service.ts | 672 +++ .../src/services/accountingClosure.service.ts | 489 ++ .../src/services/accountingRules.service.ts | 550 +++ .../src/services/adhocQueryApi.service.ts | 522 +++ packages/fineract-client/src/services/api.ts | 291 ++ .../src/services/audits.service.ts | 407 ++ .../authenticationHTTPBasic.service.ts | 186 + .../src/services/batchAPI.service.ts | 186 + .../src/services/bulkImport.service.ts | 314 ++ .../src/services/bulkLoans.service.ts | 248 + .../businessDateManagement.service.ts | 315 ++ .../businessStepConfiguration.service.ts | 392 ++ .../src/services/cache.service.ts | 248 + .../src/services/calendar.service.ts | 578 +++ .../src/services/cashierJournals.service.ts | 181 + .../src/services/cashiers.service.ts | 181 + .../src/services/centers.service.ts | 1017 ++++ .../src/services/charges.service.ts | 554 +++ .../src/services/client.service.ts | 1754 +++++++ .../src/services/clientCharges.service.ts | 607 +++ .../clientCollateralManagement.service.ts | 584 +++ .../services/clientFamilyMember.service.ts | 557 +++ .../src/services/clientIdentifier.service.ts | 578 +++ .../src/services/clientSearchV2.service.ts | 174 + .../src/services/clientTransaction.service.ts | 588 +++ .../src/services/clientsAddress.service.ts | 433 ++ .../src/services/codeValues.service.ts | 503 ++ .../src/services/codes.service.ts | 484 ++ .../services/collateralManagement.service.ts | 554 +++ .../src/services/collectionSheet.service.ts | 186 + .../creditBureauConfiguration.service.ts | 974 ++++ .../src/services/currency.service.ts | 248 + .../src/services/dataTables.service.ts | 1356 ++++++ .../src/services/default.service.ts | 4173 +++++++++++++++++ ...quencyRangeAndBucketsManagement.service.ts | 890 ++++ ...itAccountOnHoldFundTransactions.service.ts | 190 + .../services/deviceRegistration.service.ts | 526 +++ .../src/services/documents.service.ts | 671 +++ .../src/services/entityDataTable.service.ts | 431 ++ .../entityFieldConfiguration.service.ts | 166 + .../services/externalAssetOwners.service.ts | 796 ++++ .../externalEventConfiguration.service.ts | 246 + .../src/services/externalServices.service.ts | 253 + .../fetchAuthenticatedUserDetails.service.ts | 162 + .../src/services/fineractEntity.service.ts | 538 +++ .../services/fixedDepositAccount.service.ts | 1166 +++++ ...fixedDepositAccountTransactions.service.ts | 418 ++ .../services/fixedDepositProduct.service.ts | 552 +++ .../src/services/floatingRates.service.ts | 412 ++ .../src/services/funds.service.ts | 410 ++ .../services/generalLedgerAccount.service.ts | 782 +++ .../services/globalConfiguration.service.ts | 406 ++ .../src/services/groups.service.ts | 1278 +++++ .../src/services/groupsLevel.service.ts | 158 + .../src/services/guarantors.service.ts | 830 ++++ .../src/services/holidays.service.ts | 674 +++ .../src/services/hooks.service.ts | 554 +++ .../src/services/inlineJob.service.ts | 179 + .../src/services/instanceMode.service.ts | 174 + .../src/services/interOperation.service.ts | 1625 +++++++ .../src/services/interestRateChart.service.ts | 562 +++ ...nterestRateSlabAKAInterestBands.service.ts | 574 +++ .../src/services/journalEntries.service.ts | 886 ++++ .../src/services/likelihood.service.ts | 321 ++ .../listReportMailingJobHistory.service.ts | 190 + .../src/services/loanAccountLock.service.ts | 175 + .../src/services/loanCOBCatchUp.service.ts | 299 ++ .../src/services/loanCharges.service.ts | 1946 ++++++++ .../src/services/loanCollateral.service.ts | 577 +++ .../loanCollateralManagement.service.ts | 240 + .../loanDisbursementDetails.service.ts | 332 ++ .../src/services/loanProducts.service.ts | 648 +++ .../src/services/loanRescheduling.service.ts | 188 + .../src/services/loanTransactions.service.ts | 1572 +++++++ .../src/services/loans.service.ts | 1957 ++++++++ ...makerCheckerOr4EyeFunctionality.service.ts | 442 ++ ...ngFinancialActivitiesToAccounts.service.ts | 541 +++ .../src/services/meetings.service.ts | 683 +++ .../src/services/mixMapping.service.ts | 235 + .../src/services/mixReport.service.ts | 176 + .../src/services/mixTaxonomy.service.ts | 158 + .../src/services/notes.service.ts | 526 +++ .../src/services/notification.service.ts | 254 + .../src/services/offices.service.ts | 682 +++ .../services/passwordPreferences.service.ts | 310 ++ .../src/services/paymentType.service.ts | 494 ++ .../periodicAccrualAccounting.service.ts | 175 + .../src/services/permissions.service.ts | 247 + .../src/services/pocket.service.ts | 251 + .../src/services/povertyLine.service.ts | 236 + .../src/services/productMix.service.ts | 394 ++ .../src/services/products.service.ts | 593 +++ .../services/provisioningCategory.service.ts | 386 ++ .../services/provisioningCriteria.service.ts | 552 +++ .../services/provisioningEntries.service.ts | 525 +++ .../src/services/rate.service.ts | 386 ++ .../recurringDepositAccount.service.ts | 1166 +++++ ...rringDepositAccountTransactions.service.ts | 450 ++ .../recurringDepositProduct.service.ts | 552 +++ .../repaymentWithPostDatedChecks.service.ts | 422 ++ .../src/services/reportMailingJobs.service.ts | 589 +++ .../src/services/reports.service.ts | 553 +++ .../src/services/rescheduleLoans.service.ts | 509 ++ .../src/services/roles.service.ts | 730 +++ .../src/services/runReports.service.ts | 260 + .../src/services/sCHEDULERJOB.service.ts | 510 ++ .../src/services/sMS.service.ts | 579 +++ .../src/services/sPMAPILookUpTable.service.ts | 324 ++ .../src/services/savingsAccount.service.ts | 1350 ++++++ .../savingsAccountTransactions.service.ts | 518 ++ .../src/services/savingsCharges.service.ts | 690 +++ .../src/services/savingsProduct.service.ts | 556 +++ .../src/services/scheduler.service.ts | 237 + .../src/services/scoreCard.service.ts | 394 ++ .../src/services/searchAPI.service.ts | 334 ++ .../services/selfAccountTransfer.service.ts | 259 + .../services/selfAuthentication.service.ts | 178 + .../src/services/selfClient.service.ts | 1041 ++++ .../src/services/selfDividend.service.ts | 540 +++ .../src/services/selfLoanProducts.service.ts | 244 + .../src/services/selfLoans.service.ts | 842 ++++ .../src/services/selfRunReport.service.ts | 170 + .../services/selfSavingsAccount.service.ts | 665 +++ .../services/selfSavingsProducts.service.ts | 244 + .../src/services/selfScoreCard.service.ts | 245 + .../selfServiceRegistration.service.ts | 244 + .../src/services/selfShareAccounts.service.ts | 328 ++ .../src/services/selfShareProducts.service.ts | 258 + .../src/services/selfSpm.service.ts | 160 + .../selfThirdPartyTransfer.service.ts | 482 ++ .../src/services/selfUser.service.ts | 177 + .../src/services/selfUserDetails.service.ts | 162 + .../src/services/shareAccount.service.ts | 828 ++++ .../src/services/spmSurveys.service.ts | 477 ++ .../src/services/staff.service.ts | 623 +++ .../services/standingInstructions.service.ts | 626 +++ .../standingInstructionsHistory.service.ts | 240 + .../src/services/survey.service.ts | 643 +++ .../src/services/taxComponents.service.ts | 476 ++ .../src/services/taxGroup.service.ts | 476 ++ .../services/tellerCashManagement.service.ts | 1694 +++++++ .../src/services/twoFactor.service.ts | 387 ++ .../userGeneratedDocuments.service.ts | 718 +++ .../src/services/users.service.ts | 751 +++ .../src/services/workingDays.service.ts | 318 ++ packages/fineract-client/src/variables.ts | 9 + src/app/app.module.ts | 1 + src/tsconfig.app.json | 3 +- 1499 files changed, 116176 insertions(+), 1 deletion(-) create mode 100644 packages/fineract-client/package.json create mode 100644 packages/fineract-client/src/.openapi-generator/FILES create mode 100644 packages/fineract-client/src/.openapi-generator/VERSION create mode 100644 packages/fineract-client/src/api.module.ts create mode 100644 packages/fineract-client/src/configuration.ts create mode 100644 packages/fineract-client/src/encoder.ts create mode 100644 packages/fineract-client/src/index.ts create mode 100644 packages/fineract-client/src/models/accountTransferData.ts create mode 100644 packages/fineract-client/src/models/accountingRuleData.ts create mode 100644 packages/fineract-client/src/models/accountingTagRuleData.ts create mode 100644 packages/fineract-client/src/models/allowAttributeOverrides.ts create mode 100644 packages/fineract-client/src/models/appUser.ts create mode 100644 packages/fineract-client/src/models/appUserClientMapping.ts create mode 100644 packages/fineract-client/src/models/appUserData.ts create mode 100644 packages/fineract-client/src/models/batchRequest.ts create mode 100644 packages/fineract-client/src/models/batchResponse.ts create mode 100644 packages/fineract-client/src/models/bodyPart.ts create mode 100644 packages/fineract-client/src/models/bodyPartHeaders.ts create mode 100644 packages/fineract-client/src/models/bodyPartParameterizedHeaders.ts create mode 100644 packages/fineract-client/src/models/businessDateRequest.ts create mode 100644 packages/fineract-client/src/models/businessDateResponse.ts create mode 100644 packages/fineract-client/src/models/businessStep.ts create mode 100644 packages/fineract-client/src/models/calendarData.ts create mode 100644 packages/fineract-client/src/models/cashierData.ts create mode 100644 packages/fineract-client/src/models/cashierTransactionData.ts create mode 100644 packages/fineract-client/src/models/cashierTxnType.ts create mode 100644 packages/fineract-client/src/models/centerData.ts create mode 100644 packages/fineract-client/src/models/changeInstanceModeRequest.ts create mode 100644 packages/fineract-client/src/models/charge.ts create mode 100644 packages/fineract-client/src/models/chargeData.ts create mode 100644 packages/fineract-client/src/models/chargeFeeOnMonthDay.ts create mode 100644 packages/fineract-client/src/models/chargeToGLAccountMapper.ts create mode 100644 packages/fineract-client/src/models/client.ts create mode 100644 packages/fineract-client/src/models/clientCollateralManagementData.ts create mode 100644 packages/fineract-client/src/models/clientData.ts create mode 100644 packages/fineract-client/src/models/clientFamilyMembersData.ts create mode 100644 packages/fineract-client/src/models/clientSearchData.ts create mode 100644 packages/fineract-client/src/models/clientTextSearch.ts create mode 100644 packages/fineract-client/src/models/clientTimelineData.ts create mode 100644 packages/fineract-client/src/models/code.ts create mode 100644 packages/fineract-client/src/models/codeValue.ts create mode 100644 packages/fineract-client/src/models/codeValueData.ts create mode 100644 packages/fineract-client/src/models/commandProcessingResult.ts create mode 100644 packages/fineract-client/src/models/commandWrapper.ts create mode 100644 packages/fineract-client/src/models/component.ts create mode 100644 packages/fineract-client/src/models/componentData.ts create mode 100644 packages/fineract-client/src/models/contentDisposition.ts create mode 100644 packages/fineract-client/src/models/createStaffResponse.ts create mode 100644 packages/fineract-client/src/models/creditDebit.ts create mode 100644 packages/fineract-client/src/models/currencyData.ts create mode 100644 packages/fineract-client/src/models/currencyItem.ts create mode 100644 packages/fineract-client/src/models/datatableData.ts create mode 100644 packages/fineract-client/src/models/deleteAccountNumberFormatsResponse.ts create mode 100644 packages/fineract-client/src/models/deleteAccountingRulesResponse.ts create mode 100644 packages/fineract-client/src/models/deleteCentersCenterIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteChargesChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteClientCollateralResponse.ts create mode 100644 packages/fineract-client/src/models/deleteClientsClientIdChargesChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteClientsClientIdIdentifiersIdentifierIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteClientsClientIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteCodeValueDataResponse.ts create mode 100644 packages/fineract-client/src/models/deleteCodesResponse.ts create mode 100644 packages/fineract-client/src/models/deleteCollateralProductResponse.ts create mode 100644 packages/fineract-client/src/models/deleteDataTablesDatatableAppTableIdDatatableIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteDataTablesDatatableAppTableIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteDataTablesResponse.ts create mode 100644 packages/fineract-client/src/models/deleteDelinquencyBucketResponse.ts create mode 100644 packages/fineract-client/src/models/deleteDelinquencyRangeResponse.ts create mode 100644 packages/fineract-client/src/models/deleteEntityDatatableChecksTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/deleteEntityTypeEntityIdDocumentsResponse.ts create mode 100644 packages/fineract-client/src/models/deleteFinancialActivityAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/deleteFixedDepositAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteFixedDepositProductsProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteGLAccountsRequest.ts create mode 100644 packages/fineract-client/src/models/deleteGlClosuresResponse.ts create mode 100644 packages/fineract-client/src/models/deleteGroupsGroupIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteHolidaysHolidayIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteHookResponse.ts create mode 100644 packages/fineract-client/src/models/deleteInterestRateChartsChartIdChartSlabsResponse.ts create mode 100644 packages/fineract-client/src/models/deleteInterestRateChartsChartIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteLoansLoanIdChargesChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteLoansLoanIdCollateralsCollateralIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteLoansLoanIdResponse.ts create mode 100644 packages/fineract-client/src/models/deletePaymentTypesPaymentTypeIdResponse.ts create mode 100644 packages/fineract-client/src/models/deletePostDatedCheck.ts create mode 100644 packages/fineract-client/src/models/deleteProvisioningCriteriaResponse.ts create mode 100644 packages/fineract-client/src/models/deleteRecurringDepositAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/deleteRecurringDepositProductsProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteReportMailingJobsResponse.ts create mode 100644 packages/fineract-client/src/models/deleteReportsResponse.ts create mode 100644 packages/fineract-client/src/models/deleteResourceTypeResourceIdNotesNoteIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteRolesRoleIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteSavingsAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteSavingsProductsProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteSelfBeneficiariesTPTBeneficiaryIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteTellersTellerIdCashiersCashierIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteTemplatesTemplateIdResponse.ts create mode 100644 packages/fineract-client/src/models/deleteUsersUserIdResponse.ts create mode 100644 packages/fineract-client/src/models/delinquencyBucket.ts create mode 100644 packages/fineract-client/src/models/delinquencyBucketData.ts create mode 100644 packages/fineract-client/src/models/delinquencyRange.ts create mode 100644 packages/fineract-client/src/models/delinquencyRangeData.ts create mode 100644 packages/fineract-client/src/models/entity.ts create mode 100644 packages/fineract-client/src/models/enumOptionData.ts create mode 100644 packages/fineract-client/src/models/enumOptionType.ts create mode 100644 packages/fineract-client/src/models/event.ts create mode 100644 packages/fineract-client/src/models/executeJobRequest.ts create mode 100644 packages/fineract-client/src/models/extensionData.ts create mode 100644 packages/fineract-client/src/models/externalAssetOwnerTransferChangesData.ts create mode 100644 packages/fineract-client/src/models/externalEventConfigurationItemData.ts create mode 100644 packages/fineract-client/src/models/externalId.ts create mode 100644 packages/fineract-client/src/models/externalOwnerJournalEntryData.ts create mode 100644 packages/fineract-client/src/models/externalOwnerTransferJournalEntryData.ts create mode 100644 packages/fineract-client/src/models/externalServicesPropertiesData.ts create mode 100644 packages/fineract-client/src/models/externalTransferData.ts create mode 100644 packages/fineract-client/src/models/externalTransferDataDetails.ts create mode 100644 packages/fineract-client/src/models/externalTransferLoanData.ts create mode 100644 packages/fineract-client/src/models/externalTransferOwnerData.ts create mode 100644 packages/fineract-client/src/models/field.ts create mode 100644 packages/fineract-client/src/models/filters.ts create mode 100644 packages/fineract-client/src/models/financialActivityData.ts create mode 100644 packages/fineract-client/src/models/floatingRate.ts create mode 100644 packages/fineract-client/src/models/floatingRateData.ts create mode 100644 packages/fineract-client/src/models/floatingRatePeriod.ts create mode 100644 packages/fineract-client/src/models/floatingRatePeriodData.ts create mode 100644 packages/fineract-client/src/models/formDataBodyPart.ts create mode 100644 packages/fineract-client/src/models/formDataContentDisposition.ts create mode 100644 packages/fineract-client/src/models/fundData.ts create mode 100644 packages/fineract-client/src/models/gLAccount.ts create mode 100644 packages/fineract-client/src/models/gLAccountData.ts create mode 100644 packages/fineract-client/src/models/gLAccountDataForLookup.ts create mode 100644 packages/fineract-client/src/models/geoCodeData.ts create mode 100644 packages/fineract-client/src/models/getAccountNumberFormatsIdResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountNumberFormatsResponseTemplate.ts create mode 100644 packages/fineract-client/src/models/getAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getAccountRulesResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountRulesTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountTransferTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersFromAccountType.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersFromAccountTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersFromClientOptions.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersFromOffice.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersFromOfficeOptions.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersPageItems.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersPageItemsCurrency.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersPageItemsFromAccount.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersPageItemsFromOffice.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersPageItemsToAccountType.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersStatus.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferCurrency.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromAccount.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromClient.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromClientOptions.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromOffice.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromOfficeOptions.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferToAccount.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferToClient.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersTimeline.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersToAccountTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getAccountTransfersToOfficeOptions.ts create mode 100644 packages/fineract-client/src/models/getAccountsChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getAccountsChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getAccountsCharges.ts create mode 100644 packages/fineract-client/src/models/getAccountsChargesCurrency.ts create mode 100644 packages/fineract-client/src/models/getAccountsCurrency.ts create mode 100644 packages/fineract-client/src/models/getAccountsLinkedToPocketResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountsLockPeriodTypeEnum.ts create mode 100644 packages/fineract-client/src/models/getAccountsPageItems.ts create mode 100644 packages/fineract-client/src/models/getAccountsPurchasedShares.ts create mode 100644 packages/fineract-client/src/models/getAccountsPurchasedSharesStatus.ts create mode 100644 packages/fineract-client/src/models/getAccountsPurchasedSharesType.ts create mode 100644 packages/fineract-client/src/models/getAccountsStatus.ts create mode 100644 packages/fineract-client/src/models/getAccountsSummary.ts create mode 100644 packages/fineract-client/src/models/getAccountsTimeline.ts create mode 100644 packages/fineract-client/src/models/getAccountsTypeAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountsTypeProductOptions.ts create mode 100644 packages/fineract-client/src/models/getAccountsTypePurchasedShares.ts create mode 100644 packages/fineract-client/src/models/getAccountsTypeResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountsTypeStatus.ts create mode 100644 packages/fineract-client/src/models/getAccountsTypeSummary.ts create mode 100644 packages/fineract-client/src/models/getAccountsTypeTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getAccountsTypeTimeline.ts create mode 100644 packages/fineract-client/src/models/getAssetType.ts create mode 100644 packages/fineract-client/src/models/getBusinessJobConfigResponse.ts create mode 100644 packages/fineract-client/src/models/getBusinessStepConfigResponse.ts create mode 100644 packages/fineract-client/src/models/getCachesResponse.ts create mode 100644 packages/fineract-client/src/models/getCentersAccountType.ts create mode 100644 packages/fineract-client/src/models/getCentersCenterIdAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/getCentersCenterIdCurrency.ts create mode 100644 packages/fineract-client/src/models/getCentersCenterIdResponse.ts create mode 100644 packages/fineract-client/src/models/getCentersCenterIdStatus.ts create mode 100644 packages/fineract-client/src/models/getCentersDepositType.ts create mode 100644 packages/fineract-client/src/models/getCentersOfficeOptions.ts create mode 100644 packages/fineract-client/src/models/getCentersPageItems.ts create mode 100644 packages/fineract-client/src/models/getCentersResponse.ts create mode 100644 packages/fineract-client/src/models/getCentersSavingsAccounts.ts create mode 100644 packages/fineract-client/src/models/getCentersStaffOptions.ts create mode 100644 packages/fineract-client/src/models/getCentersStatus.ts create mode 100644 packages/fineract-client/src/models/getCentersTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getCentersTimeline.ts create mode 100644 packages/fineract-client/src/models/getChargeAppliesTo.ts create mode 100644 packages/fineract-client/src/models/getChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getChargePaymentMode.ts create mode 100644 packages/fineract-client/src/models/getChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getChargesAppliesTo.ts create mode 100644 packages/fineract-client/src/models/getChargesAppliesToResponse.ts create mode 100644 packages/fineract-client/src/models/getChargesCalculationTypeResponse.ts create mode 100644 packages/fineract-client/src/models/getChargesChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getChargesChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getChargesCurrency.ts create mode 100644 packages/fineract-client/src/models/getChargesCurrencyResponse.ts create mode 100644 packages/fineract-client/src/models/getChargesPaymentModeResponse.ts create mode 100644 packages/fineract-client/src/models/getChargesResponse.ts create mode 100644 packages/fineract-client/src/models/getChargesTemplateFeeFrequencyOptions.ts create mode 100644 packages/fineract-client/src/models/getChargesTemplateLoanChargeCalculationTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getChargesTemplateLoanChargeTimeTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getChargesTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getChargesTimeTypeResponse.ts create mode 100644 packages/fineract-client/src/models/getClientChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getClientChargeCurrency.ts create mode 100644 packages/fineract-client/src/models/getClientChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getClientClientIdAddressesResponse.ts create mode 100644 packages/fineract-client/src/models/getClientIdProductIdAccountingMappings.ts create mode 100644 packages/fineract-client/src/models/getClientIdProductIdChargeOptions.ts create mode 100644 packages/fineract-client/src/models/getClientIdProductIdLockinPeriodFrequencyTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getClientIdProductIdMinimumActivePeriodFrequencyTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getClientIdProductIdProductOptions.ts create mode 100644 packages/fineract-client/src/models/getClientObligeeDetailsResponse.ts create mode 100644 packages/fineract-client/src/models/getClientStatus.ts create mode 100644 packages/fineract-client/src/models/getClientTransactionsCurrency.ts create mode 100644 packages/fineract-client/src/models/getClientTransferProposalDateResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsAllowedDocumentTypes.ts create mode 100644 packages/fineract-client/src/models/getClientsChargesPageItems.ts create mode 100644 packages/fineract-client/src/models/getClientsClientIdAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsClientIdChargesResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsClientIdIdentifiersResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsClientIdIdentifiersTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsClientIdResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsClientIdStatus.ts create mode 100644 packages/fineract-client/src/models/getClientsClientIdTransactionsResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsClientIdTransactionsTransactionIdResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsClientIdTransactionsType.ts create mode 100644 packages/fineract-client/src/models/getClientsColumnHeaderData.ts create mode 100644 packages/fineract-client/src/models/getClientsDataTables.ts create mode 100644 packages/fineract-client/src/models/getClientsDocumentType.ts create mode 100644 packages/fineract-client/src/models/getClientsGroups.ts create mode 100644 packages/fineract-client/src/models/getClientsLoanAccounts.ts create mode 100644 packages/fineract-client/src/models/getClientsLoanAccountsStatus.ts create mode 100644 packages/fineract-client/src/models/getClientsLoanAccountsType.ts create mode 100644 packages/fineract-client/src/models/getClientsOfficeOptions.ts create mode 100644 packages/fineract-client/src/models/getClientsPageItems.ts create mode 100644 packages/fineract-client/src/models/getClientsPageItemsResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsSavingProductOptions.ts create mode 100644 packages/fineract-client/src/models/getClientsSavingsAccounts.ts create mode 100644 packages/fineract-client/src/models/getClientsSavingsAccountsCurrency.ts create mode 100644 packages/fineract-client/src/models/getClientsSavingsAccountsDepositType.ts create mode 100644 packages/fineract-client/src/models/getClientsSavingsAccountsStatus.ts create mode 100644 packages/fineract-client/src/models/getClientsStaffOptions.ts create mode 100644 packages/fineract-client/src/models/getClientsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getClientsTimeline.ts create mode 100644 packages/fineract-client/src/models/getCodeValuesDataResponse.ts create mode 100644 packages/fineract-client/src/models/getCodesResponse.ts create mode 100644 packages/fineract-client/src/models/getCollateralCurrencyResponse.ts create mode 100644 packages/fineract-client/src/models/getCollateralManagementsResponse.ts create mode 100644 packages/fineract-client/src/models/getCollateralProductTemplate.ts create mode 100644 packages/fineract-client/src/models/getCollateralTypeResponse.ts create mode 100644 packages/fineract-client/src/models/getCollateralsTemplateAllowedTypes.ts create mode 100644 packages/fineract-client/src/models/getCurrenciesResponse.ts create mode 100644 packages/fineract-client/src/models/getCurrencyData.ts create mode 100644 packages/fineract-client/src/models/getDataTablesResponse.ts create mode 100644 packages/fineract-client/src/models/getDelinquencyBucketsResponse.ts create mode 100644 packages/fineract-client/src/models/getDelinquencyRangesResponse.ts create mode 100644 packages/fineract-client/src/models/getDelinquencyTagHistoryResponse.ts create mode 100644 packages/fineract-client/src/models/getEntityDatatableChecksResponse.ts create mode 100644 packages/fineract-client/src/models/getEntityDatatableChecksTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getEntityTypeEntityIdDocumentsResponse.ts create mode 100644 packages/fineract-client/src/models/getEquityType.ts create mode 100644 packages/fineract-client/src/models/getExternalEventConfigurationsResponse.ts create mode 100644 packages/fineract-client/src/models/getFieldConfigurationEntityResponse.ts create mode 100644 packages/fineract-client/src/models/getFinancialActivityAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsAccountChart.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsAccountChartCurrency.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsAccountIdCurrency.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsAccountIdSummary.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsChartSlabs.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsCurrency.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsDepositPeriodFrequency.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsInterestCalculationDaysInYearType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsInterestCalculationType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsInterestCompoundingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsInterestPostingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsMaxDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsMinDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsPeriodType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsPeriodTypes.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsProductOptions.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsStatus.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsSummary.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositAccountsTimeline.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsAccountingRule.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsCurrency.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsInterestCalculationDaysInYearType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsInterestCalculationType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsInterestCompoundingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsInterestPostingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsMaxDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsMinDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdAccountingMappings.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdActiveChart.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdChartSlabs.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdCurrency.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappings.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappingsCharge.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdIncomeFromFeeAccount.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdIncomeFromPenaltyAccount.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdInterestCompoundingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdInterestOnSavingsAccount.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdMaxDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdMinDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdPenaltyToIncomeAccountMappings.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdPeriodType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdPreClosurePenalInterestOnType.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdSavingsControlAccount.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdSavingsReferenceAccount.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsProductIdTransfersInSuspenseAccount.ts create mode 100644 packages/fineract-client/src/models/getFixedDepositProductsResponse.ts create mode 100644 packages/fineract-client/src/models/getFloatingRatesFloatingRateIdResponse.ts create mode 100644 packages/fineract-client/src/models/getFloatingRatesRatePeriods.ts create mode 100644 packages/fineract-client/src/models/getFloatingRatesResponse.ts create mode 100644 packages/fineract-client/src/models/getFromAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getFromAccountStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getFromAccountTypeOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getFromAccountTypeResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getFromAccountTypeStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getFromClientOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getFromClientStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getFromOfficeOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getFromOfficeResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getFromOfficeStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getFundsResponse.ts create mode 100644 packages/fineract-client/src/models/getGLAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/getGLAccountsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getGlAccountMapping.ts create mode 100644 packages/fineract-client/src/models/getGlClosureResponse.ts create mode 100644 packages/fineract-client/src/models/getGlobalConfigurationsResponse.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsLoanAccounts.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsLoanType.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanAccounts.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanStatus.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanType.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberSavingsAccounts.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingAccountType.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingAccounts.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingCurrency.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingStatus.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdAccountsStatus.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdResponse.ts create mode 100644 packages/fineract-client/src/models/getGroupsGroupIdTimeline.ts create mode 100644 packages/fineract-client/src/models/getGroupsPageItems.ts create mode 100644 packages/fineract-client/src/models/getGroupsResponse.ts create mode 100644 packages/fineract-client/src/models/getGroupsStatus.ts create mode 100644 packages/fineract-client/src/models/getGroupsTemplateClientOptions.ts create mode 100644 packages/fineract-client/src/models/getGroupsTemplateColumnHeaderData.ts create mode 100644 packages/fineract-client/src/models/getGroupsTemplateDatatables.ts create mode 100644 packages/fineract-client/src/models/getGroupsTemplateOfficeOptions.ts create mode 100644 packages/fineract-client/src/models/getGroupsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getGroupsTemplateStaffOptions.ts create mode 100644 packages/fineract-client/src/models/getHolidaysResponse.ts create mode 100644 packages/fineract-client/src/models/getHookResponse.ts create mode 100644 packages/fineract-client/src/models/getHookTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getIncomeFromFeeAccountId.ts create mode 100644 packages/fineract-client/src/models/getIncomeType.ts create mode 100644 packages/fineract-client/src/models/getInstructionTypeOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getInstructionTypeStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsAttributeName.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsConditionType.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsEntityType.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsIncentiveType.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsIncentives.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsResponse.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsChartSlabs.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsCurrency.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsResponse.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsTemplatePeriodTypes.ts create mode 100644 packages/fineract-client/src/models/getInterestRateChartsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getJobsJobIDJobRunHistoryResponse.ts create mode 100644 packages/fineract-client/src/models/getJobsResponse.ts create mode 100644 packages/fineract-client/src/models/getJournalEntriesTransactionIdResponse.ts create mode 100644 packages/fineract-client/src/models/getLoanAccountLockResponse.ts create mode 100644 packages/fineract-client/src/models/getLoanAccountingMappings.ts create mode 100644 packages/fineract-client/src/models/getLoanCharge.ts create mode 100644 packages/fineract-client/src/models/getLoanChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getLoanChargeCurrency.ts create mode 100644 packages/fineract-client/src/models/getLoanChargeTemplateChargeAppliesTo.ts create mode 100644 packages/fineract-client/src/models/getLoanChargeTemplateChargeOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanChargeTemplateChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getLoanChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getLoanCollateralManagementTemplate.ts create mode 100644 packages/fineract-client/src/models/getLoanCurrency.ts create mode 100644 packages/fineract-client/src/models/getLoanFeeToIncomeAccountMappings.ts create mode 100644 packages/fineract-client/src/models/getLoanPaymentChannelToFundSourceMappings.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsAccountingMappingOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsAccountingRule.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsAmortizationType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsAssetAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsChargeAppliesTo.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsChargeOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsCurrency.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsCurrencyOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsDaysInYearTemplateType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsExpenseAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsExpenseType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsIncomeAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsIncomeType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsInterestRateFrequencyType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsInterestRateTemplateFrequencyType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsInterestRecalculationCompoundingFrequencyType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsInterestRecalculationCompoundingType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsInterestRecalculationData.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsInterestRecalculationTemplateData.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsInterestTemplateType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsInterestType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsLiabilityAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsLiabilityTagId.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsLiabilityType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsLiabilityUsage.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsParamType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsPaymentTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsPreClosureInterestCalculationStrategy.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsPrincipalVariationsForBorrowerCycle.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsRepaymentFrequencyType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsRepaymentTemplateFrequencyType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsRescheduleStrategyType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsResponse.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsTemplateCurrency.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsTransactionProcessingStrategyOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsValueConditionType.ts create mode 100644 packages/fineract-client/src/models/getLoanProductsValueConditionTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getLoanRescheduleRequestResponse.ts create mode 100644 packages/fineract-client/src/models/getLoanRescheduleRequestStatus.ts create mode 100644 packages/fineract-client/src/models/getLoanTransactionRelation.ts create mode 100644 packages/fineract-client/src/models/getLoansApprovalTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getLoansChargePaymentMode.ts create mode 100644 packages/fineract-client/src/models/getLoansCurrency.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdAmortizationType.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdChargePaymentMode.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdChargesChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdChargesTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdCodeValueData.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdCollateralsResponse.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdCollateralsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdCollectionData.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdCurrency.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdDisbursementDetails.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdEnumOptionData.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdFeeFrequency.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdInterestCalculationPeriodType.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdInterestRateFrequencyType.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdInterestType.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdLinkedAccount.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdLoanChargeData.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdLoanChargePaidByData.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdLoanInstallmentChargeData.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdLoanRepaymentScheduleInstallmentData.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdLoanTransactionEnumData.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdLoanTransactionRelation.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdLoanType.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdOverdueCharges.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdPaymentDetailData.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdPaymentType.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdRepaymentFrequencyType.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdRepaymentPeriod.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdRepaymentSchedule.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdResponse.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdStatus.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdSummary.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdTermPeriodFrequencyType.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdTimeline.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdTransactions.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdTransactionsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getLoansLoanIdTransactionsTransactionIdResponse.ts create mode 100644 packages/fineract-client/src/models/getLoansProductsDaysInMonthTemplateType.ts create mode 100644 packages/fineract-client/src/models/getLoansProductsDaysInMonthType.ts create mode 100644 packages/fineract-client/src/models/getLoansProductsDaysInYearType.ts create mode 100644 packages/fineract-client/src/models/getLoansProductsInterestCalculationPeriodType.ts create mode 100644 packages/fineract-client/src/models/getLoansResponse.ts create mode 100644 packages/fineract-client/src/models/getLoansTemplateProductOptions.ts create mode 100644 packages/fineract-client/src/models/getLoansTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getLoansTemplateTimeline.ts create mode 100644 packages/fineract-client/src/models/getLoansTotal.ts create mode 100644 packages/fineract-client/src/models/getLoansTransactionType.ts create mode 100644 packages/fineract-client/src/models/getLoansType.ts create mode 100644 packages/fineract-client/src/models/getLockPeriodTypeEnum.ts create mode 100644 packages/fineract-client/src/models/getMakerCheckerResponse.ts create mode 100644 packages/fineract-client/src/models/getMakerCheckersSearchTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getNotesNoteType.ts create mode 100644 packages/fineract-client/src/models/getNotification.ts create mode 100644 packages/fineract-client/src/models/getNotificationsResponse.ts create mode 100644 packages/fineract-client/src/models/getObligeeData.ts create mode 100644 packages/fineract-client/src/models/getOfficesResponse.ts create mode 100644 packages/fineract-client/src/models/getOfficesTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getOldestCOBProcessedLoanResponse.ts create mode 100644 packages/fineract-client/src/models/getPageItemsStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getPasswordPreferencesTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getPaymentTypeData.ts create mode 100644 packages/fineract-client/src/models/getPaymentTypesPaymentTypeIdResponse.ts create mode 100644 packages/fineract-client/src/models/getPaymentTypesResponse.ts create mode 100644 packages/fineract-client/src/models/getPermissionsResponse.ts create mode 100644 packages/fineract-client/src/models/getPocketData.ts create mode 100644 packages/fineract-client/src/models/getPocketLoanAccounts.ts create mode 100644 packages/fineract-client/src/models/getPocketSavingAccounts.ts create mode 100644 packages/fineract-client/src/models/getPostDatedChecks.ts create mode 100644 packages/fineract-client/src/models/getPriorityOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getPriorityStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getProductsAccountingMappingOptions.ts create mode 100644 packages/fineract-client/src/models/getProductsAccountingMappings.ts create mode 100644 packages/fineract-client/src/models/getProductsAccountingRule.ts create mode 100644 packages/fineract-client/src/models/getProductsAssetAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getProductsCharges.ts create mode 100644 packages/fineract-client/src/models/getProductsCurrency.ts create mode 100644 packages/fineract-client/src/models/getProductsEquityAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getProductsIncomeAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getProductsLiabilityAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getProductsLiabilityType.ts create mode 100644 packages/fineract-client/src/models/getProductsLiabilityUsage.ts create mode 100644 packages/fineract-client/src/models/getProductsMarketPrice.ts create mode 100644 packages/fineract-client/src/models/getProductsMinimumActivePeriodFrequencyTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getProductsPageItems.ts create mode 100644 packages/fineract-client/src/models/getProductsTagId.ts create mode 100644 packages/fineract-client/src/models/getProductsTypeProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/getProductsTypeResponse.ts create mode 100644 packages/fineract-client/src/models/getProvisioningCriteriaCriteriaIdResponse.ts create mode 100644 packages/fineract-client/src/models/getProvisioningCriteriaResponse.ts create mode 100644 packages/fineract-client/src/models/getRecurrenceFrequencyOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getRecurrenceFrequencyStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getRecurrenceTypeOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getRecurrenceTypeStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getRecurringCurrency.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsAccountChart.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsAccountChartCurrency.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsChartSlabs.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsCurrency.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsDepositPeriodFrequency.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsInterestCalculationDaysInYearType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsInterestCalculationType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsInterestCompoundingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsInterestPostingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsMaxDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsMinDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsPeriodType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsPeriodTypes.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositFrequencyType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsStatus.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsSummary.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositAccountsTimeline.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsAccountingRule.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsCurrency.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsInterestCalculationDaysInYearType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsInterestCalculationType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsInterestCompoundingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsInterestPostingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsMaxDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsMinDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdAccountingMappings.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdActiveChart.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdChartSlabs.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdCurrency.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappings.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsCharge.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdIncomeFromFeeAccount.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdIncomeFromPenaltyAccount.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdInterestCompoundingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdInterestOnSavingsAccount.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdMaxDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdMinDepositTermType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappings.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdPeriodType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdPreClosurePenalInterestOnType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdSavingsControlAccount.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdSavingsReferenceAccount.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsProductIdTransfersInSuspenseAccount.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsRecurringDepositFrequencyType.ts create mode 100644 packages/fineract-client/src/models/getRecurringDepositProductsResponse.ts create mode 100644 packages/fineract-client/src/models/getRecurringPaymentDetailData.ts create mode 100644 packages/fineract-client/src/models/getRecurringPaymentType.ts create mode 100644 packages/fineract-client/src/models/getRecurringProductOptions.ts create mode 100644 packages/fineract-client/src/models/getRecurringTransactionType.ts create mode 100644 packages/fineract-client/src/models/getRecurringTransactionsCurrency.ts create mode 100644 packages/fineract-client/src/models/getRecurringTransactionsTransactionType.ts create mode 100644 packages/fineract-client/src/models/getReportMailingJobsResponse.ts create mode 100644 packages/fineract-client/src/models/getReportMailingJobsTemplate.ts create mode 100644 packages/fineract-client/src/models/getReportsResponse.ts create mode 100644 packages/fineract-client/src/models/getReportsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getRescheduleReasonsAllowedTypes.ts create mode 100644 packages/fineract-client/src/models/getRescheduleReasonsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getResourceTypeResourceIdNotesNoteIdResponse.ts create mode 100644 packages/fineract-client/src/models/getResourceTypeResourceIdNotesResponse.ts create mode 100644 packages/fineract-client/src/models/getRolesResponse.ts create mode 100644 packages/fineract-client/src/models/getRolesRoleIdPermissionsResponse.ts create mode 100644 packages/fineract-client/src/models/getRolesRoleIdPermissionsResponsePermissionData.ts create mode 100644 packages/fineract-client/src/models/getRolesRoleIdResponse.ts create mode 100644 packages/fineract-client/src/models/getRunReportColumnHeaders.ts create mode 100644 packages/fineract-client/src/models/getRunReportResponse.ts create mode 100644 packages/fineract-client/src/models/getSavingsAccountChargesPaidByData.ts create mode 100644 packages/fineract-client/src/models/getSavingsAccountTransactionsPageItem.ts create mode 100644 packages/fineract-client/src/models/getSavingsAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/getSavingsAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesResponse.ts create mode 100644 packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getSavingsAccountsSummary.ts create mode 100644 packages/fineract-client/src/models/getSavingsAccountsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getSavingsAssetLiabilityType.ts create mode 100644 packages/fineract-client/src/models/getSavingsChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getSavingsChargePaymentMode.ts create mode 100644 packages/fineract-client/src/models/getSavingsChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getSavingsChargesChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getSavingsChargesOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsCurrency.ts create mode 100644 packages/fineract-client/src/models/getSavingsInterestCalculationDaysInYearType.ts create mode 100644 packages/fineract-client/src/models/getSavingsInterestCalculationType.ts create mode 100644 packages/fineract-client/src/models/getSavingsInterestCompoundingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getSavingsInterestPostingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getSavingsPageItems.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsAccountingMappingOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsAccountingMappings.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsAccountingRule.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsAssetAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsChargeAppliesTo.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsChargeOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsExpenseAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsExpenseType.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappings.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappingsCharge.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappingsIncomeAccount.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsFundSourceAccount.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsIncomeAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsIncomeFromFeeAccount.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsIncomeFromPenaltyAccount.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsIncomeType.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsInterestCalculationDaysInYearType.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsInterestCalculationType.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsInterestCompoundingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsInterestOnSavingsAccount.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsInterestPostingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsLiabilityAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsLiabilityTagId.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsLiabilityType.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsLiabilityUsage.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsLockinPeriodFrequencyTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsPaymentChannelToFundSourceMappings.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsPaymentType.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsPaymentTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsPenaltyToIncomeAccountMappings.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsPenaltyToIncomeAccountMappingsCharge.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsResponse.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsSavingsControlAccount.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsSavingsReferenceAccount.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsTemplateAccountingRule.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsTransfersInSuspenseAccount.ts create mode 100644 packages/fineract-client/src/models/getSavingsProductsWithdrawalFeeTypeOptions.ts create mode 100644 packages/fineract-client/src/models/getSavingsStatus.ts create mode 100644 packages/fineract-client/src/models/getSavingsSummary.ts create mode 100644 packages/fineract-client/src/models/getSavingsTimeline.ts create mode 100644 packages/fineract-client/src/models/getSchedulerResponse.ts create mode 100644 packages/fineract-client/src/models/getSearchResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfBeneficiariesAccountOptions.ts create mode 100644 packages/fineract-client/src/models/getSelfBeneficiariesTPTResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfBeneficiariesTPTTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsChargesPageItems.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsClientIdAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsClientIdChargesChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsClientIdChargesResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsClientIdResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsClientIdTransactionsPageItems.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsClientIdTransactionsResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsClientIdTransactionsTransactionIdResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsClientIdTransactionsType.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsLoanAccounts.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsLoanAccountsStatus.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsLoanAccountsType.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsPageItems.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsSavingsAccounts.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsSavingsAccountsCurrency.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsSavingsAccountsStatus.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsStatus.ts create mode 100644 packages/fineract-client/src/models/getSelfClientsTimeline.ts create mode 100644 packages/fineract-client/src/models/getSelfLoanIdSummary.ts create mode 100644 packages/fineract-client/src/models/getSelfLoanIdTimeline.ts create mode 100644 packages/fineract-client/src/models/getSelfLoansChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getSelfLoansChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getSelfLoansLoanIdChargesResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfLoansLoanIdResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfLoansLoanIdTransactionsTransactionIdResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfLoansLoanIdTransactionsType.ts create mode 100644 packages/fineract-client/src/models/getSelfLoansProductOptions.ts create mode 100644 packages/fineract-client/src/models/getSelfLoansTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfLoansTimeline.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdChargesResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdChargesSavingsAccountChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdTransactionsTransactionIdResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsCurrency.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsInterestCalculationDaysInYearType.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsInterestCalculationType.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsInterestCompoundingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsInterestPostingPeriodType.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsPaymentDetailData.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsPaymentType.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsStatus.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsSummary.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsTimeline.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsTransactionCurrency.ts create mode 100644 packages/fineract-client/src/models/getSelfSavingsTransactionType.ts create mode 100644 packages/fineract-client/src/models/getSelfUserDetailsOrganisationalRole.ts create mode 100644 packages/fineract-client/src/models/getSelfUserDetailsResponse.ts create mode 100644 packages/fineract-client/src/models/getSelfUserDetailsRoles.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsChargeAppliesTo.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsChargeCalculationType.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsChargeOptions.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsChargePaymentMode.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsChargeTimeType.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsClientIdProductIdAccountingRule.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsClientIdProductIdLockPeriodTypeEnum.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsClientIdProductIdMinimumActivePeriodForDividendsTypeEnum.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsClientIdProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsCurrency.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsIncomeFromFeeAccountId.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsShareEquityId.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsShareReferenceId.ts create mode 100644 packages/fineract-client/src/models/getShareAccountsShareSuspenseId.ts create mode 100644 packages/fineract-client/src/models/getShareEquityId.ts create mode 100644 packages/fineract-client/src/models/getShareReferenceId.ts create mode 100644 packages/fineract-client/src/models/getShareSuspenseId.ts create mode 100644 packages/fineract-client/src/models/getStandingInstructionHistoryFromAccount.ts create mode 100644 packages/fineract-client/src/models/getStandingInstructionHistoryPageItemsFromClient.ts create mode 100644 packages/fineract-client/src/models/getStandingInstructionHistoryPageItemsResponse.ts create mode 100644 packages/fineract-client/src/models/getStandingInstructionHistoryToAccount.ts create mode 100644 packages/fineract-client/src/models/getStandingInstructionHistoryToClient.ts create mode 100644 packages/fineract-client/src/models/getStandingInstructionRunHistoryResponse.ts create mode 100644 packages/fineract-client/src/models/getStandingInstructionsResponse.ts create mode 100644 packages/fineract-client/src/models/getStandingInstructionsStandingInstructionIdResponse.ts create mode 100644 packages/fineract-client/src/models/getStandingInstructionsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getStatusOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getStatusStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getSurveyResponse.ts create mode 100644 packages/fineract-client/src/models/getSurveyResponseDatatableData.ts create mode 100644 packages/fineract-client/src/models/getTaxesComponentsCreditAccount.ts create mode 100644 packages/fineract-client/src/models/getTaxesComponentsCreditAccountType.ts create mode 100644 packages/fineract-client/src/models/getTaxesComponentsResponse.ts create mode 100644 packages/fineract-client/src/models/getTaxesGroupResponse.ts create mode 100644 packages/fineract-client/src/models/getTaxesGroupTaxAssociations.ts create mode 100644 packages/fineract-client/src/models/getTaxesGroupTaxComponent.ts create mode 100644 packages/fineract-client/src/models/getTellersResponse.ts create mode 100644 packages/fineract-client/src/models/getTellersTellerIdCashiersCashierIdResponse.ts create mode 100644 packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdSummaryAndTransactionsResponse.ts create mode 100644 packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdTransactionsResponse.ts create mode 100644 packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdTransactionsTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getTellersTellerIdCashiersResponse.ts create mode 100644 packages/fineract-client/src/models/getTellersTellerIdCashiersTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getTemplatesResponse.ts create mode 100644 packages/fineract-client/src/models/getTemplatesTemplateIdResponse.ts create mode 100644 packages/fineract-client/src/models/getTemplatesTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getToAccountStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getToAccountTypeOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getToAccountTypeStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getToClientStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getToOfficeOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getToOfficeStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getTransactionsCurrency.ts create mode 100644 packages/fineract-client/src/models/getTransactionsPaymentDetailData.ts create mode 100644 packages/fineract-client/src/models/getTranscationEnumData.ts create mode 100644 packages/fineract-client/src/models/getTransferTypeOptionsResponseStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getTransferTypeStandingInstructionSwagger.ts create mode 100644 packages/fineract-client/src/models/getUserDetailsResponse.ts create mode 100644 packages/fineract-client/src/models/getUsersResponse.ts create mode 100644 packages/fineract-client/src/models/getUsersTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/getUsersUserIdResponse.ts create mode 100644 packages/fineract-client/src/models/getWorkingDaysResponse.ts create mode 100644 packages/fineract-client/src/models/getWorkingDaysTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/globalConfigurationPropertyData.ts create mode 100644 packages/fineract-client/src/models/grantedAuthority.ts create mode 100644 packages/fineract-client/src/models/group.ts create mode 100644 packages/fineract-client/src/models/groupGeneralData.ts create mode 100644 packages/fineract-client/src/models/groupLevel.ts create mode 100644 packages/fineract-client/src/models/groupRoleData.ts create mode 100644 packages/fineract-client/src/models/grouping.ts create mode 100644 packages/fineract-client/src/models/header.ts create mode 100644 packages/fineract-client/src/models/hookTemplateData.ts create mode 100644 packages/fineract-client/src/models/idDocument.ts create mode 100644 packages/fineract-client/src/models/image.ts create mode 100644 packages/fineract-client/src/models/inlineJobRequest.ts create mode 100644 packages/fineract-client/src/models/inlineJobResponse.ts create mode 100644 packages/fineract-client/src/models/interopAccountData.ts create mode 100644 packages/fineract-client/src/models/interopIdentifierAccountResponseData.ts create mode 100644 packages/fineract-client/src/models/interopIdentifierRequestData.ts create mode 100644 packages/fineract-client/src/models/interopIdentifiersResponseData.ts create mode 100644 packages/fineract-client/src/models/interopKycResponseData.ts create mode 100644 packages/fineract-client/src/models/interopQuoteRequestData.ts create mode 100644 packages/fineract-client/src/models/interopQuoteResponseData.ts create mode 100644 packages/fineract-client/src/models/interopTransactionRequestData.ts create mode 100644 packages/fineract-client/src/models/interopTransactionRequestResponseData.ts create mode 100644 packages/fineract-client/src/models/interopTransactionTypeData.ts create mode 100644 packages/fineract-client/src/models/interopTransactionsData.ts create mode 100644 packages/fineract-client/src/models/interopTransferRequestData.ts create mode 100644 packages/fineract-client/src/models/interopTransferResponseData.ts create mode 100644 packages/fineract-client/src/models/isCatchUpRunningResponse.ts create mode 100644 packages/fineract-client/src/models/jobDetailHistoryData.ts create mode 100644 packages/fineract-client/src/models/jobDetailHistoryDataSwagger.ts create mode 100644 packages/fineract-client/src/models/jobParameterDTO.ts create mode 100644 packages/fineract-client/src/models/journalEntryCommand.ts create mode 100644 packages/fineract-client/src/models/journalEntryData.ts create mode 100644 packages/fineract-client/src/models/journalEntryTransactionItem.ts create mode 100644 packages/fineract-client/src/models/loanAccountLock.ts create mode 100644 packages/fineract-client/src/models/loanProduct.ts create mode 100644 packages/fineract-client/src/models/loanProductBorrowerCycleVariationData.ts create mode 100644 packages/fineract-client/src/models/loanProductConfigurableAttributes.ts create mode 100644 packages/fineract-client/src/models/loanProductData.ts create mode 100644 packages/fineract-client/src/models/loanProductFloatingRates.ts create mode 100644 packages/fineract-client/src/models/loanProductGuaranteeData.ts create mode 100644 packages/fineract-client/src/models/loanProductGuaranteeDetails.ts create mode 100644 packages/fineract-client/src/models/loanProductInterestRecalculationData.ts create mode 100644 packages/fineract-client/src/models/loanProductInterestRecalculationDetails.ts create mode 100644 packages/fineract-client/src/models/loanProductProvisioningEntryData.ts create mode 100644 packages/fineract-client/src/models/loanProductRelatedDetail.ts create mode 100644 packages/fineract-client/src/models/loanProductTrancheDetails.ts create mode 100644 packages/fineract-client/src/models/loanTermTypeOptions.ts create mode 100644 packages/fineract-client/src/models/loanTermVariationsData.ts create mode 100644 packages/fineract-client/src/models/localTime.ts create mode 100644 packages/fineract-client/src/models/lookupTableData.ts create mode 100644 packages/fineract-client/src/models/lookupTableEntry.ts create mode 100644 packages/fineract-client/src/models/mediaType.ts create mode 100644 packages/fineract-client/src/models/models.ts create mode 100644 packages/fineract-client/src/models/monetaryCurrency.ts create mode 100644 packages/fineract-client/src/models/money.ts create mode 100644 packages/fineract-client/src/models/moneyData.ts create mode 100644 packages/fineract-client/src/models/multiPart.ts create mode 100644 packages/fineract-client/src/models/multivaluedMapStringParameterizedHeader.ts create mode 100644 packages/fineract-client/src/models/multivaluedMapStringString.ts create mode 100644 packages/fineract-client/src/models/noteData.ts create mode 100644 packages/fineract-client/src/models/office.ts create mode 100644 packages/fineract-client/src/models/officeData.ts create mode 100644 packages/fineract-client/src/models/pageCashierTransactionData.ts create mode 100644 packages/fineract-client/src/models/pageClientSearchData.ts create mode 100644 packages/fineract-client/src/models/pageExternalTransferData.ts create mode 100644 packages/fineract-client/src/models/pageJournalEntryData.ts create mode 100644 packages/fineract-client/src/models/pageable.ts create mode 100644 packages/fineract-client/src/models/pagedRequestClientTextSearch.ts create mode 100644 packages/fineract-client/src/models/pagedRequestSavingsTransactionSearch.ts create mode 100644 packages/fineract-client/src/models/parameterizedHeader.ts create mode 100644 packages/fineract-client/src/models/paymentDetailData.ts create mode 100644 packages/fineract-client/src/models/paymentType.ts create mode 100644 packages/fineract-client/src/models/paymentTypeData.ts create mode 100644 packages/fineract-client/src/models/paymentTypeToGLAccountMapper.ts create mode 100644 packages/fineract-client/src/models/permission.ts create mode 100644 packages/fineract-client/src/models/portfolioAccountData.ts create mode 100644 packages/fineract-client/src/models/postAccountNumberFormatsRequest.ts create mode 100644 packages/fineract-client/src/models/postAccountNumberFormatsResponse.ts create mode 100644 packages/fineract-client/src/models/postAccountTransfersRefundByTransferRequest.ts create mode 100644 packages/fineract-client/src/models/postAccountTransfersRefundByTransferResponse.ts create mode 100644 packages/fineract-client/src/models/postAccountTransfersRequest.ts create mode 100644 packages/fineract-client/src/models/postAccountTransfersResponse.ts create mode 100644 packages/fineract-client/src/models/postAccountingRulesRequest.ts create mode 100644 packages/fineract-client/src/models/postAccountingRulesResponse.ts create mode 100644 packages/fineract-client/src/models/postAccountsCharges.ts create mode 100644 packages/fineract-client/src/models/postAccountsRequestedShares.ts create mode 100644 packages/fineract-client/src/models/postAccountsTypeAccountIdRequest.ts create mode 100644 packages/fineract-client/src/models/postAccountsTypeAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/postAccountsTypeRequest.ts create mode 100644 packages/fineract-client/src/models/postAccountsTypeResponse.ts create mode 100644 packages/fineract-client/src/models/postAdhocQuerySearchRequest.ts create mode 100644 packages/fineract-client/src/models/postAdhocQuerySearchResponse.ts create mode 100644 packages/fineract-client/src/models/postAuthenticationRequest.ts create mode 100644 packages/fineract-client/src/models/postAuthenticationResponse.ts create mode 100644 packages/fineract-client/src/models/postCentersCenterIdRequest.ts create mode 100644 packages/fineract-client/src/models/postCentersCenterIdResponse.ts create mode 100644 packages/fineract-client/src/models/postCentersRequest.ts create mode 100644 packages/fineract-client/src/models/postCentersResponse.ts create mode 100644 packages/fineract-client/src/models/postChargesRequest.ts create mode 100644 packages/fineract-client/src/models/postChargesResponse.ts create mode 100644 packages/fineract-client/src/models/postClientClientIdAddressesRequest.ts create mode 100644 packages/fineract-client/src/models/postClientClientIdAddressesResponse.ts create mode 100644 packages/fineract-client/src/models/postClientCollateralRequest.ts create mode 100644 packages/fineract-client/src/models/postClientCollateralResponse.ts create mode 100644 packages/fineract-client/src/models/postClientsAddressRequest.ts create mode 100644 packages/fineract-client/src/models/postClientsClientIdChargesChargeIdRequest.ts create mode 100644 packages/fineract-client/src/models/postClientsClientIdChargesChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/postClientsClientIdChargesRequest.ts create mode 100644 packages/fineract-client/src/models/postClientsClientIdChargesResponse.ts create mode 100644 packages/fineract-client/src/models/postClientsClientIdIdentifiersRequest.ts create mode 100644 packages/fineract-client/src/models/postClientsClientIdIdentifiersResponse.ts create mode 100644 packages/fineract-client/src/models/postClientsClientIdRequest.ts create mode 100644 packages/fineract-client/src/models/postClientsClientIdResponse.ts create mode 100644 packages/fineract-client/src/models/postClientsClientIdTransactionsTransactionIdResponse.ts create mode 100644 packages/fineract-client/src/models/postClientsDatatable.ts create mode 100644 packages/fineract-client/src/models/postClientsRequest.ts create mode 100644 packages/fineract-client/src/models/postClientsResponse.ts create mode 100644 packages/fineract-client/src/models/postCodeValueDataResponse.ts create mode 100644 packages/fineract-client/src/models/postCodeValuesDataRequest.ts create mode 100644 packages/fineract-client/src/models/postCodesRequest.ts create mode 100644 packages/fineract-client/src/models/postCodesResponse.ts create mode 100644 packages/fineract-client/src/models/postCollateralManagementProductRequest.ts create mode 100644 packages/fineract-client/src/models/postCollateralManagementProductResponse.ts create mode 100644 packages/fineract-client/src/models/postCollectionSheetBulkRepaymentTransactions.ts create mode 100644 packages/fineract-client/src/models/postCollectionSheetChanges.ts create mode 100644 packages/fineract-client/src/models/postCollectionSheetRequest.ts create mode 100644 packages/fineract-client/src/models/postCollectionSheetResponse.ts create mode 100644 packages/fineract-client/src/models/postColumnHeaderData.ts create mode 100644 packages/fineract-client/src/models/postCreateRescheduleLoansRequest.ts create mode 100644 packages/fineract-client/src/models/postCreateRescheduleLoansResponse.ts create mode 100644 packages/fineract-client/src/models/postDataTablesAppTableIdResponse.ts create mode 100644 packages/fineract-client/src/models/postDataTablesRequest.ts create mode 100644 packages/fineract-client/src/models/postDataTablesResponse.ts create mode 100644 packages/fineract-client/src/models/postDelinquencyBucketRequest.ts create mode 100644 packages/fineract-client/src/models/postDelinquencyBucketResponse.ts create mode 100644 packages/fineract-client/src/models/postDelinquencyRangeRequest.ts create mode 100644 packages/fineract-client/src/models/postDelinquencyRangeResponse.ts create mode 100644 packages/fineract-client/src/models/postEntityDatatableChecksTemplateRequest.ts create mode 100644 packages/fineract-client/src/models/postEntityDatatableChecksTemplateResponse.ts create mode 100644 packages/fineract-client/src/models/postEntityTypeEntityIdDocumentsResponse.ts create mode 100644 packages/fineract-client/src/models/postFinancialActivityAccountsRequest.ts create mode 100644 packages/fineract-client/src/models/postFinancialActivityAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/postFixedDepositAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/postFixedDepositAccountsRequest.ts create mode 100644 packages/fineract-client/src/models/postFixedDepositAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/postFixedDepositProductsChartSlabs.ts create mode 100644 packages/fineract-client/src/models/postFixedDepositProductsCharts.ts create mode 100644 packages/fineract-client/src/models/postFixedDepositProductsRequest.ts create mode 100644 packages/fineract-client/src/models/postFixedDepositProductsResponse.ts create mode 100644 packages/fineract-client/src/models/postFloatingRatesRatePeriods.ts create mode 100644 packages/fineract-client/src/models/postFloatingRatesRequest.ts create mode 100644 packages/fineract-client/src/models/postFloatingRatesResponse.ts create mode 100644 packages/fineract-client/src/models/postFundsRequest.ts create mode 100644 packages/fineract-client/src/models/postFundsResponse.ts create mode 100644 packages/fineract-client/src/models/postGLAccountsRequest.ts create mode 100644 packages/fineract-client/src/models/postGLAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/postGlClosuresRequest.ts create mode 100644 packages/fineract-client/src/models/postGlClosuresResponse.ts create mode 100644 packages/fineract-client/src/models/postGroupsGroupIdClients.ts create mode 100644 packages/fineract-client/src/models/postGroupsGroupIdCommandUnassignStaffRequest.ts create mode 100644 packages/fineract-client/src/models/postGroupsGroupIdCommandUnassignStaffResponse.ts create mode 100644 packages/fineract-client/src/models/postGroupsGroupIdRequest.ts create mode 100644 packages/fineract-client/src/models/postGroupsGroupIdResponse.ts create mode 100644 packages/fineract-client/src/models/postGroupsRequest.ts create mode 100644 packages/fineract-client/src/models/postGroupsResponse.ts create mode 100644 packages/fineract-client/src/models/postHolidaysHolidayIdResponse.ts create mode 100644 packages/fineract-client/src/models/postHolidaysRequest.ts create mode 100644 packages/fineract-client/src/models/postHolidaysRequestOffices.ts create mode 100644 packages/fineract-client/src/models/postHolidaysResponse.ts create mode 100644 packages/fineract-client/src/models/postHookRequest.ts create mode 100644 packages/fineract-client/src/models/postHookResponse.ts create mode 100644 packages/fineract-client/src/models/postInitiateTransferRequest.ts create mode 100644 packages/fineract-client/src/models/postInitiateTransferResponse.ts create mode 100644 packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsIncentives.ts create mode 100644 packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsRequest.ts create mode 100644 packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsResponse.ts create mode 100644 packages/fineract-client/src/models/postInterestRateChartsRequest.ts create mode 100644 packages/fineract-client/src/models/postInterestRateChartsResponse.ts create mode 100644 packages/fineract-client/src/models/postJournalEntriesResponse.ts create mode 100644 packages/fineract-client/src/models/postJournalEntriesTransactionIdRequest.ts create mode 100644 packages/fineract-client/src/models/postJournalEntriesTransactionIdResponse.ts create mode 100644 packages/fineract-client/src/models/postLinkDelinkAccountsToFromPocketResponse.ts create mode 100644 packages/fineract-client/src/models/postLoanChanges.ts create mode 100644 packages/fineract-client/src/models/postLoanProductsRequest.ts create mode 100644 packages/fineract-client/src/models/postLoanProductsResponse.ts create mode 100644 packages/fineract-client/src/models/postLoansDisbursementData.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdChanges.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdChanges.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdRequest.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdChargesRequest.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdChargesResponse.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdCollateralsRequest.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdCollateralsResponse.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdDisbursementData.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdRequest.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdResponse.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdScheduleResponse.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdStatus.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdTransactionsRequest.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdTransactionsResponse.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdTransactionsResponseChanges.ts create mode 100644 packages/fineract-client/src/models/postLoansLoanIdTransactionsTransactionIdRequest.ts create mode 100644 packages/fineract-client/src/models/postLoansRepaymentSchedulePeriods.ts create mode 100644 packages/fineract-client/src/models/postLoansRequest.ts create mode 100644 packages/fineract-client/src/models/postLoansResponse.ts create mode 100644 packages/fineract-client/src/models/postMakerCheckersResponse.ts create mode 100644 packages/fineract-client/src/models/postNewShareApplicationResponse.ts create mode 100644 packages/fineract-client/src/models/postNewTransferResponse.ts create mode 100644 packages/fineract-client/src/models/postOfficesRequest.ts create mode 100644 packages/fineract-client/src/models/postOfficesResponse.ts create mode 100644 packages/fineract-client/src/models/postPaymentTypesRequest.ts create mode 100644 packages/fineract-client/src/models/postPaymentTypesResponse.ts create mode 100644 packages/fineract-client/src/models/postProductsChargesSelected.ts create mode 100644 packages/fineract-client/src/models/postProductsMarketPricePeriods.ts create mode 100644 packages/fineract-client/src/models/postProductsTypeRequest.ts create mode 100644 packages/fineract-client/src/models/postProductsTypeResponse.ts create mode 100644 packages/fineract-client/src/models/postProvisioningCriteriaRequest.ts create mode 100644 packages/fineract-client/src/models/postProvisioningCriteriaResponse.ts create mode 100644 packages/fineract-client/src/models/postProvisioningEntriesRequest.ts create mode 100644 packages/fineract-client/src/models/postProvisioningEntriesResponse.ts create mode 100644 packages/fineract-client/src/models/postRecurringChanges.ts create mode 100644 packages/fineract-client/src/models/postRecurringDepositAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest.ts create mode 100644 packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsResponse.ts create mode 100644 packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse.ts create mode 100644 packages/fineract-client/src/models/postRecurringDepositAccountsRequest.ts create mode 100644 packages/fineract-client/src/models/postRecurringDepositAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/postRecurringDepositProductsChartSlabs.ts create mode 100644 packages/fineract-client/src/models/postRecurringDepositProductsCharts.ts create mode 100644 packages/fineract-client/src/models/postRecurringDepositProductsRequest.ts create mode 100644 packages/fineract-client/src/models/postRecurringDepositProductsResponse.ts create mode 100644 packages/fineract-client/src/models/postReportMailingJobsRequest.ts create mode 100644 packages/fineract-client/src/models/postReportMailingJobsResponse.ts create mode 100644 packages/fineract-client/src/models/postReportsResponse.ts create mode 100644 packages/fineract-client/src/models/postRepostRequest.ts create mode 100644 packages/fineract-client/src/models/postResourceTypeResourceIdNotesRequest.ts create mode 100644 packages/fineract-client/src/models/postResourceTypeResourceIdNotesResponse.ts create mode 100644 packages/fineract-client/src/models/postRolesRequest.ts create mode 100644 packages/fineract-client/src/models/postRolesResponse.ts create mode 100644 packages/fineract-client/src/models/postRolesRoleIdResponse.ts create mode 100644 packages/fineract-client/src/models/postRunaccrualsRequest.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountBulkReversalTransactionsRequest.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountTransactionsRequest.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountTransactionsResponse.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountsAccountIdRequest.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountsRequest.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesRequest.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesResponse.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest.ts create mode 100644 packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/postSavingsCharges.ts create mode 100644 packages/fineract-client/src/models/postSavingsProductsRequest.ts create mode 100644 packages/fineract-client/src/models/postSavingsProductsResponse.ts create mode 100644 packages/fineract-client/src/models/postSelfAuthenticationResponse.ts create mode 100644 packages/fineract-client/src/models/postSelfBeneficiariesTPTRequest.ts create mode 100644 packages/fineract-client/src/models/postSelfBeneficiariesTPTResponse.ts create mode 100644 packages/fineract-client/src/models/postSelfLoansData.ts create mode 100644 packages/fineract-client/src/models/postSelfLoansDatatables.ts create mode 100644 packages/fineract-client/src/models/postSelfLoansDisbursementData.ts create mode 100644 packages/fineract-client/src/models/postSelfLoansLoanIdChanges.ts create mode 100644 packages/fineract-client/src/models/postSelfLoansLoanIdRequest.ts create mode 100644 packages/fineract-client/src/models/postSelfLoansLoanIdResponse.ts create mode 100644 packages/fineract-client/src/models/postSelfLoansLoanIdStatus.ts create mode 100644 packages/fineract-client/src/models/postSelfLoansRequest.ts create mode 100644 packages/fineract-client/src/models/postSelfLoansResponse.ts create mode 100644 packages/fineract-client/src/models/postStaffRequest.ts create mode 100644 packages/fineract-client/src/models/postStandingInstructionsRequest.ts create mode 100644 packages/fineract-client/src/models/postStandingInstructionsResponse.ts create mode 100644 packages/fineract-client/src/models/postSurveySurveyNameApptableIdRequest.ts create mode 100644 packages/fineract-client/src/models/postSurveySurveyNameApptableIdResponse.ts create mode 100644 packages/fineract-client/src/models/postTaxesComponentsRequest.ts create mode 100644 packages/fineract-client/src/models/postTaxesComponentsResponse.ts create mode 100644 packages/fineract-client/src/models/postTaxesGroupRequest.ts create mode 100644 packages/fineract-client/src/models/postTaxesGroupResponse.ts create mode 100644 packages/fineract-client/src/models/postTaxesGroupTaxComponents.ts create mode 100644 packages/fineract-client/src/models/postTellersRequest.ts create mode 100644 packages/fineract-client/src/models/postTellersResponse.ts create mode 100644 packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdAllocateRequest.ts create mode 100644 packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdAllocateResponse.ts create mode 100644 packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdSettleRequest.ts create mode 100644 packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdSettleResponse.ts create mode 100644 packages/fineract-client/src/models/postTellersTellerIdCashiersRequest.ts create mode 100644 packages/fineract-client/src/models/postTellersTellerIdCashiersResponse.ts create mode 100644 packages/fineract-client/src/models/postTemplatesRequest.ts create mode 100644 packages/fineract-client/src/models/postTemplatesResponse.ts create mode 100644 packages/fineract-client/src/models/postUpdateRescheduleLoanChanges.ts create mode 100644 packages/fineract-client/src/models/postUpdateRescheduleLoansRequest.ts create mode 100644 packages/fineract-client/src/models/postUpdateRescheduleLoansResponse.ts create mode 100644 packages/fineract-client/src/models/postUsersRequest.ts create mode 100644 packages/fineract-client/src/models/postUsersResponse.ts create mode 100644 packages/fineract-client/src/models/postalAddress.ts create mode 100644 packages/fineract-client/src/models/processingResultLookup.ts create mode 100644 packages/fineract-client/src/models/provisioningCriteriaDefinitionData.ts create mode 100644 packages/fineract-client/src/models/provisioningEntryData.ts create mode 100644 packages/fineract-client/src/models/putAccountNumberFormatsRequest.ts create mode 100644 packages/fineract-client/src/models/putAccountNumberFormatsResponse.ts create mode 100644 packages/fineract-client/src/models/putAccountNumberFormatschangesSwagger.ts create mode 100644 packages/fineract-client/src/models/putAccountingRulesRequest.ts create mode 100644 packages/fineract-client/src/models/putAccountingRulesResponse.ts create mode 100644 packages/fineract-client/src/models/putAccountingRulesResponsechangesSwagger.ts create mode 100644 packages/fineract-client/src/models/putAccountsChanges.ts create mode 100644 packages/fineract-client/src/models/putAccountsTypeAccountIdRequest.ts create mode 100644 packages/fineract-client/src/models/putAccountsTypeAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/putCachechangesSwagger.ts create mode 100644 packages/fineract-client/src/models/putCachesRequest.ts create mode 100644 packages/fineract-client/src/models/putCachesResponse.ts create mode 100644 packages/fineract-client/src/models/putCentersCenterIdRequest.ts create mode 100644 packages/fineract-client/src/models/putCentersCenterIdResponse.ts create mode 100644 packages/fineract-client/src/models/putCentersChanges.ts create mode 100644 packages/fineract-client/src/models/putChargeTransactionChangesRequest.ts create mode 100644 packages/fineract-client/src/models/putChargeTransactionChangesResponse.ts create mode 100644 packages/fineract-client/src/models/putChargeTransactionChangesResponseChanges.ts create mode 100644 packages/fineract-client/src/models/putChargesChargeIdRequest.ts create mode 100644 packages/fineract-client/src/models/putChargesChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/putClientClientIdAddressesRequest.ts create mode 100644 packages/fineract-client/src/models/putClientClientIdAddressesResponse.ts create mode 100644 packages/fineract-client/src/models/putClientCollateralRequest.ts create mode 100644 packages/fineract-client/src/models/putClientCollateralResponse.ts create mode 100644 packages/fineract-client/src/models/putClientsClientIdIdentifiersIdentifierIdRequest.ts create mode 100644 packages/fineract-client/src/models/putClientsClientIdIdentifiersIdentifierIdResponse.ts create mode 100644 packages/fineract-client/src/models/putClientsClientIdRequest.ts create mode 100644 packages/fineract-client/src/models/putClientsClientIdResponse.ts create mode 100644 packages/fineract-client/src/models/putCodeValueDataResponse.ts create mode 100644 packages/fineract-client/src/models/putCodeValuechangesSwagger.ts create mode 100644 packages/fineract-client/src/models/putCodeValuesDataRequest.ts create mode 100644 packages/fineract-client/src/models/putCodesApichangesSwagger.ts create mode 100644 packages/fineract-client/src/models/putCodesRequest.ts create mode 100644 packages/fineract-client/src/models/putCodesResponse.ts create mode 100644 packages/fineract-client/src/models/putCollateralProductRequest.ts create mode 100644 packages/fineract-client/src/models/putCollateralProductResponse.ts create mode 100644 packages/fineract-client/src/models/putCurrenciesRequest.ts create mode 100644 packages/fineract-client/src/models/putCurrenciesResponse.ts create mode 100644 packages/fineract-client/src/models/putDataTablesAppTableIdDatatableIdResponse.ts create mode 100644 packages/fineract-client/src/models/putDataTablesAppTableIdResponse.ts create mode 100644 packages/fineract-client/src/models/putDataTablesRequest.ts create mode 100644 packages/fineract-client/src/models/putDataTablesRequestAddColumns.ts create mode 100644 packages/fineract-client/src/models/putDataTablesRequestChangeColumns.ts create mode 100644 packages/fineract-client/src/models/putDataTablesRequestDropColumns.ts create mode 100644 packages/fineract-client/src/models/putDataTablesResponse.ts create mode 100644 packages/fineract-client/src/models/putDelinquencyBucketResponse.ts create mode 100644 packages/fineract-client/src/models/putDelinquencyRangeResponse.ts create mode 100644 packages/fineract-client/src/models/putEntityTypeEntityIdDocumentsResponse.ts create mode 100644 packages/fineract-client/src/models/putExternalEventConfigurationsRequest.ts create mode 100644 packages/fineract-client/src/models/putExternalServiceRequest.ts create mode 100644 packages/fineract-client/src/models/putFinancialActivityAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/putFinancialActivityAccountscommentsSwagger.ts create mode 100644 packages/fineract-client/src/models/putFixedDepositAccountsAccountIdRequest.ts create mode 100644 packages/fineract-client/src/models/putFixedDepositAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/putFixedDepositAccountsChanges.ts create mode 100644 packages/fineract-client/src/models/putFixedDepositProductsChanges.ts create mode 100644 packages/fineract-client/src/models/putFixedDepositProductsProductIdRequest.ts create mode 100644 packages/fineract-client/src/models/putFixedDepositProductsProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/putFloatingRatesChanges.ts create mode 100644 packages/fineract-client/src/models/putFloatingRatesFloatingRateIdRequest.ts create mode 100644 packages/fineract-client/src/models/putFloatingRatesFloatingRateIdResponse.ts create mode 100644 packages/fineract-client/src/models/putFundsFundIdRequest.ts create mode 100644 packages/fineract-client/src/models/putFundsFundIdResponse.ts create mode 100644 packages/fineract-client/src/models/putGLAccountsRequest.ts create mode 100644 packages/fineract-client/src/models/putGLAccountsResponse.ts create mode 100644 packages/fineract-client/src/models/putGLAccountsResponsechangesSwagger.ts create mode 100644 packages/fineract-client/src/models/putGlClosuresRequest.ts create mode 100644 packages/fineract-client/src/models/putGlClosuresResponse.ts create mode 100644 packages/fineract-client/src/models/putGlobalConfigurationsRequest.ts create mode 100644 packages/fineract-client/src/models/putGlobalConfigurationsResponse.ts create mode 100644 packages/fineract-client/src/models/putGlobalConfigurationsResponsechangesSwagger.ts create mode 100644 packages/fineract-client/src/models/putGroupsGroupIdChanges.ts create mode 100644 packages/fineract-client/src/models/putGroupsGroupIdRequest.ts create mode 100644 packages/fineract-client/src/models/putGroupsGroupIdResponse.ts create mode 100644 packages/fineract-client/src/models/putHolidaysHolidayIdRequest.ts create mode 100644 packages/fineract-client/src/models/putHolidaysHolidayIdResponse.ts create mode 100644 packages/fineract-client/src/models/putHolidaysHolidayIdResponseChanges.ts create mode 100644 packages/fineract-client/src/models/putHookRequest.ts create mode 100644 packages/fineract-client/src/models/putHookResponse.ts create mode 100644 packages/fineract-client/src/models/putHookResponseChangesSwagger.ts create mode 100644 packages/fineract-client/src/models/putInterestRateChartsChartIdChartSlabsChartSlabIdRequest.ts create mode 100644 packages/fineract-client/src/models/putInterestRateChartsChartIdChartSlabsChartSlabIdResponse.ts create mode 100644 packages/fineract-client/src/models/putInterestRateChartsChartIdRequest.ts create mode 100644 packages/fineract-client/src/models/putInterestRateChartsChartIdResponse.ts create mode 100644 packages/fineract-client/src/models/putJobsJobIDRequest.ts create mode 100644 packages/fineract-client/src/models/putLoanChanges.ts create mode 100644 packages/fineract-client/src/models/putLoanProductsProductIdRequest.ts create mode 100644 packages/fineract-client/src/models/putLoanProductsProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/putLoansLoanIdChanges.ts create mode 100644 packages/fineract-client/src/models/putLoansLoanIdChargesChargeIdRequest.ts create mode 100644 packages/fineract-client/src/models/putLoansLoanIdChargesChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/putLoansLoanIdCollateral.ts create mode 100644 packages/fineract-client/src/models/putLoansLoanIdCollateralsCollateralIdResponse.ts create mode 100644 packages/fineract-client/src/models/putLoansLoanIdDisbursementData.ts create mode 100644 packages/fineract-client/src/models/putLoansLoanIdRequest.ts create mode 100644 packages/fineract-client/src/models/putLoansLoanIdResponse.ts create mode 100644 packages/fineract-client/src/models/putLoansLoandIdCollateralsCollateralIdRequest.ts create mode 100644 packages/fineract-client/src/models/putNotesChanges.ts create mode 100644 packages/fineract-client/src/models/putOfficesOfficeIdRequest.ts create mode 100644 packages/fineract-client/src/models/putOfficesOfficeIdResponse.ts create mode 100644 packages/fineract-client/src/models/putOfficesOfficeIdResponseChanges.ts create mode 100644 packages/fineract-client/src/models/putPasswordPreferencesTemplateRequest.ts create mode 100644 packages/fineract-client/src/models/putPaymentTypesPaymentTypeIdRequest.ts create mode 100644 packages/fineract-client/src/models/putPaymentTypesPaymentTypeIdResponse.ts create mode 100644 packages/fineract-client/src/models/putPermissionsRequest.ts create mode 100644 packages/fineract-client/src/models/putProductsChanges.ts create mode 100644 packages/fineract-client/src/models/putProductsTypeProductIdRequest.ts create mode 100644 packages/fineract-client/src/models/putProductsTypeProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/putProvisioningCriteriaRequest.ts create mode 100644 packages/fineract-client/src/models/putProvisioningCriteriaResponse.ts create mode 100644 packages/fineract-client/src/models/putProvisioningCriteriaResponseChanges.ts create mode 100644 packages/fineract-client/src/models/putProvisioningEntriesRequest.ts create mode 100644 packages/fineract-client/src/models/putProvisioningEntriesResponse.ts create mode 100644 packages/fineract-client/src/models/putRecurringDepositAccountsAccountIdRequest.ts create mode 100644 packages/fineract-client/src/models/putRecurringDepositAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/putRecurringDepositAccountsChanges.ts create mode 100644 packages/fineract-client/src/models/putRecurringDepositProductsChanges.ts create mode 100644 packages/fineract-client/src/models/putRecurringDepositProductsRequest.ts create mode 100644 packages/fineract-client/src/models/putRecurringDepositProductsResponse.ts create mode 100644 packages/fineract-client/src/models/putReportMailingJobsRequest.ts create mode 100644 packages/fineract-client/src/models/putReportMailingJobsResponse.ts create mode 100644 packages/fineract-client/src/models/putReportMailingJobsResponseChanges.ts create mode 100644 packages/fineract-client/src/models/putReportRequest.ts create mode 100644 packages/fineract-client/src/models/putReportResponse.ts create mode 100644 packages/fineract-client/src/models/putReportResponseChanges.ts create mode 100644 packages/fineract-client/src/models/putResourceTypeResourceIdNotesNoteIdRequest.ts create mode 100644 packages/fineract-client/src/models/putResourceTypeResourceIdNotesNoteIdResponse.ts create mode 100644 packages/fineract-client/src/models/putRolesRoleIdPermissionsRequest.ts create mode 100644 packages/fineract-client/src/models/putRolesRoleIdPermissionsResponse.ts create mode 100644 packages/fineract-client/src/models/putRolesRoleIdPermissionsResponsePermissionsChanges.ts create mode 100644 packages/fineract-client/src/models/putRolesRoleIdRequest.ts create mode 100644 packages/fineract-client/src/models/putRolesRoleIdResponse.ts create mode 100644 packages/fineract-client/src/models/putRolesRoleIdResponseChanges.ts create mode 100644 packages/fineract-client/src/models/putSavingsAccountsAccountIdRequest.ts create mode 100644 packages/fineract-client/src/models/putSavingsAccountsAccountIdResponse.ts create mode 100644 packages/fineract-client/src/models/putSavingsAccountsChanges.ts create mode 100644 packages/fineract-client/src/models/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest.ts create mode 100644 packages/fineract-client/src/models/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts create mode 100644 packages/fineract-client/src/models/putSavingsChanges.ts create mode 100644 packages/fineract-client/src/models/putSavingsProductsProductIdRequest.ts create mode 100644 packages/fineract-client/src/models/putSavingsProductsProductIdResponse.ts create mode 100644 packages/fineract-client/src/models/putSelfBeneficiariesChanges.ts create mode 100644 packages/fineract-client/src/models/putSelfBeneficiariesTPTBeneficiaryIdRequest.ts create mode 100644 packages/fineract-client/src/models/putSelfBeneficiariesTPTBeneficiaryIdResponse.ts create mode 100644 packages/fineract-client/src/models/putSelfLoansChanges.ts create mode 100644 packages/fineract-client/src/models/putSelfLoansLoanIdRequest.ts create mode 100644 packages/fineract-client/src/models/putSelfLoansLoanIdResponse.ts create mode 100644 packages/fineract-client/src/models/putSelfUserChanges.ts create mode 100644 packages/fineract-client/src/models/putSelfUserRequest.ts create mode 100644 packages/fineract-client/src/models/putSelfUserResponse.ts create mode 100644 packages/fineract-client/src/models/putStaffRequest.ts create mode 100644 packages/fineract-client/src/models/putStandingInstructionsStandingInstructionIdRequest.ts create mode 100644 packages/fineract-client/src/models/putStandingInstructionsStandingInstructionIdResponse.ts create mode 100644 packages/fineract-client/src/models/putTaxesComponentsChanges.ts create mode 100644 packages/fineract-client/src/models/putTaxesComponentsTaxComponentIdRequest.ts create mode 100644 packages/fineract-client/src/models/putTaxesComponentsTaxComponentIdResponse.ts create mode 100644 packages/fineract-client/src/models/putTaxesGroupChanges.ts create mode 100644 packages/fineract-client/src/models/putTaxesGroupModifiedComponents.ts create mode 100644 packages/fineract-client/src/models/putTaxesGroupTaxComponents.ts create mode 100644 packages/fineract-client/src/models/putTaxesGroupTaxGroupIdRequest.ts create mode 100644 packages/fineract-client/src/models/putTaxesGroupTaxGroupIdResponse.ts create mode 100644 packages/fineract-client/src/models/putTellersRequest.ts create mode 100644 packages/fineract-client/src/models/putTellersResponse.ts create mode 100644 packages/fineract-client/src/models/putTellersResponseChanges.ts create mode 100644 packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdRequest.ts create mode 100644 packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdResponse.ts create mode 100644 packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdResponseChanges.ts create mode 100644 packages/fineract-client/src/models/putTemplatesTemplateIdRequest.ts create mode 100644 packages/fineract-client/src/models/putTemplatesTemplateIdResponse.ts create mode 100644 packages/fineract-client/src/models/putUpdateStandingInstructionChanges.ts create mode 100644 packages/fineract-client/src/models/putUsersUserIdRequest.ts create mode 100644 packages/fineract-client/src/models/putUsersUserIdResponse.ts create mode 100644 packages/fineract-client/src/models/putUsersUserIdResponseChanges.ts create mode 100644 packages/fineract-client/src/models/putWorkingDaysRequest.ts create mode 100644 packages/fineract-client/src/models/putWorkingDaysResponse.ts create mode 100644 packages/fineract-client/src/models/question.ts create mode 100644 packages/fineract-client/src/models/questionData.ts create mode 100644 packages/fineract-client/src/models/rangeFilterBigDecimal.ts create mode 100644 packages/fineract-client/src/models/rangeFilterLocalDate.ts create mode 100644 packages/fineract-client/src/models/rate.ts create mode 100644 packages/fineract-client/src/models/rateData.ts create mode 100644 packages/fineract-client/src/models/reportExportType.ts create mode 100644 packages/fineract-client/src/models/reportMailingJobRunHistoryData.ts create mode 100644 packages/fineract-client/src/models/reportMailingJobTimelineData.ts create mode 100644 packages/fineract-client/src/models/rescheduleReasonsCodeValue.ts create mode 100644 packages/fineract-client/src/models/rescheduleReasonsTimeline.ts create mode 100644 packages/fineract-client/src/models/response.ts create mode 100644 packages/fineract-client/src/models/responseData.ts create mode 100644 packages/fineract-client/src/models/resultsetColumnHeaderData.ts create mode 100644 packages/fineract-client/src/models/resultsetRowData.ts create mode 100644 packages/fineract-client/src/models/retrieveOneResponse.ts create mode 100644 packages/fineract-client/src/models/role.ts create mode 100644 packages/fineract-client/src/models/roleData.ts create mode 100644 packages/fineract-client/src/models/runReportsResponse.ts create mode 100644 packages/fineract-client/src/models/savingsAccountApplicationTimelineData.ts create mode 100644 packages/fineract-client/src/models/savingsAccountChargeData.ts create mode 100644 packages/fineract-client/src/models/savingsAccountChargesPaidByData.ts create mode 100644 packages/fineract-client/src/models/savingsAccountData.ts create mode 100644 packages/fineract-client/src/models/savingsAccountStatusEnumData.ts create mode 100644 packages/fineract-client/src/models/savingsAccountSubStatusEnumData.ts create mode 100644 packages/fineract-client/src/models/savingsAccountSummaryData.ts create mode 100644 packages/fineract-client/src/models/savingsAccountTransactionData.ts create mode 100644 packages/fineract-client/src/models/savingsAccountTransactionEnumData.ts create mode 100644 packages/fineract-client/src/models/savingsAccountTransactionsSearchResponse.ts create mode 100644 packages/fineract-client/src/models/savingsProductData.ts create mode 100644 packages/fineract-client/src/models/savingsTransactionSearch.ts create mode 100644 packages/fineract-client/src/models/scorecard.ts create mode 100644 packages/fineract-client/src/models/scorecardData.ts create mode 100644 packages/fineract-client/src/models/scorecardValue.ts create mode 100644 packages/fineract-client/src/models/singleDebitOrCreditEntryCommand.ts create mode 100644 packages/fineract-client/src/models/smsCampaignData.ts create mode 100644 packages/fineract-client/src/models/sort.ts create mode 100644 packages/fineract-client/src/models/sortOrder.ts create mode 100644 packages/fineract-client/src/models/staff.ts create mode 100644 packages/fineract-client/src/models/staffData.ts create mode 100644 packages/fineract-client/src/models/subjectName.ts create mode 100644 packages/fineract-client/src/models/survey.ts create mode 100644 packages/fineract-client/src/models/surveyData.ts create mode 100644 packages/fineract-client/src/models/taxComponent.ts create mode 100644 packages/fineract-client/src/models/taxComponentData.ts create mode 100644 packages/fineract-client/src/models/taxComponentHistory.ts create mode 100644 packages/fineract-client/src/models/taxComponentHistoryData.ts create mode 100644 packages/fineract-client/src/models/taxDetailsData.ts create mode 100644 packages/fineract-client/src/models/taxGroup.ts create mode 100644 packages/fineract-client/src/models/taxGroupData.ts create mode 100644 packages/fineract-client/src/models/taxGroupMappings.ts create mode 100644 packages/fineract-client/src/models/taxGroupMappingsData.ts create mode 100644 packages/fineract-client/src/models/templateMapper.ts create mode 100644 packages/fineract-client/src/models/transactionDetailData.ts create mode 100644 packages/fineract-client/src/models/transactionDetails.ts create mode 100644 packages/fineract-client/src/models/transactionProcessingStrategyData.ts create mode 100644 packages/fineract-client/src/models/transactionTypeEnumData.ts create mode 100644 packages/fineract-client/src/models/updateBusinessStepConfigRequest.ts create mode 100644 packages/fineract-client/src/models/updateChangesResponse.ts create mode 100644 packages/fineract-client/src/models/updatePostDatedCheckRequest.ts create mode 100644 packages/fineract-client/src/models/updatePostDatedCheckResponse.ts create mode 100644 packages/fineract-client/src/models/updateStaffResponse.ts create mode 100644 packages/fineract-client/src/param.ts create mode 100644 packages/fineract-client/src/services/accountNumberFormat.service.ts create mode 100644 packages/fineract-client/src/services/accountTransfers.service.ts create mode 100644 packages/fineract-client/src/services/accountingClosure.service.ts create mode 100644 packages/fineract-client/src/services/accountingRules.service.ts create mode 100644 packages/fineract-client/src/services/adhocQueryApi.service.ts create mode 100644 packages/fineract-client/src/services/api.ts create mode 100644 packages/fineract-client/src/services/audits.service.ts create mode 100644 packages/fineract-client/src/services/authenticationHTTPBasic.service.ts create mode 100644 packages/fineract-client/src/services/batchAPI.service.ts create mode 100644 packages/fineract-client/src/services/bulkImport.service.ts create mode 100644 packages/fineract-client/src/services/bulkLoans.service.ts create mode 100644 packages/fineract-client/src/services/businessDateManagement.service.ts create mode 100644 packages/fineract-client/src/services/businessStepConfiguration.service.ts create mode 100644 packages/fineract-client/src/services/cache.service.ts create mode 100644 packages/fineract-client/src/services/calendar.service.ts create mode 100644 packages/fineract-client/src/services/cashierJournals.service.ts create mode 100644 packages/fineract-client/src/services/cashiers.service.ts create mode 100644 packages/fineract-client/src/services/centers.service.ts create mode 100644 packages/fineract-client/src/services/charges.service.ts create mode 100644 packages/fineract-client/src/services/client.service.ts create mode 100644 packages/fineract-client/src/services/clientCharges.service.ts create mode 100644 packages/fineract-client/src/services/clientCollateralManagement.service.ts create mode 100644 packages/fineract-client/src/services/clientFamilyMember.service.ts create mode 100644 packages/fineract-client/src/services/clientIdentifier.service.ts create mode 100644 packages/fineract-client/src/services/clientSearchV2.service.ts create mode 100644 packages/fineract-client/src/services/clientTransaction.service.ts create mode 100644 packages/fineract-client/src/services/clientsAddress.service.ts create mode 100644 packages/fineract-client/src/services/codeValues.service.ts create mode 100644 packages/fineract-client/src/services/codes.service.ts create mode 100644 packages/fineract-client/src/services/collateralManagement.service.ts create mode 100644 packages/fineract-client/src/services/collectionSheet.service.ts create mode 100644 packages/fineract-client/src/services/creditBureauConfiguration.service.ts create mode 100644 packages/fineract-client/src/services/currency.service.ts create mode 100644 packages/fineract-client/src/services/dataTables.service.ts create mode 100644 packages/fineract-client/src/services/default.service.ts create mode 100644 packages/fineract-client/src/services/delinquencyRangeAndBucketsManagement.service.ts create mode 100644 packages/fineract-client/src/services/depositAccountOnHoldFundTransactions.service.ts create mode 100644 packages/fineract-client/src/services/deviceRegistration.service.ts create mode 100644 packages/fineract-client/src/services/documents.service.ts create mode 100644 packages/fineract-client/src/services/entityDataTable.service.ts create mode 100644 packages/fineract-client/src/services/entityFieldConfiguration.service.ts create mode 100644 packages/fineract-client/src/services/externalAssetOwners.service.ts create mode 100644 packages/fineract-client/src/services/externalEventConfiguration.service.ts create mode 100644 packages/fineract-client/src/services/externalServices.service.ts create mode 100644 packages/fineract-client/src/services/fetchAuthenticatedUserDetails.service.ts create mode 100644 packages/fineract-client/src/services/fineractEntity.service.ts create mode 100644 packages/fineract-client/src/services/fixedDepositAccount.service.ts create mode 100644 packages/fineract-client/src/services/fixedDepositAccountTransactions.service.ts create mode 100644 packages/fineract-client/src/services/fixedDepositProduct.service.ts create mode 100644 packages/fineract-client/src/services/floatingRates.service.ts create mode 100644 packages/fineract-client/src/services/funds.service.ts create mode 100644 packages/fineract-client/src/services/generalLedgerAccount.service.ts create mode 100644 packages/fineract-client/src/services/globalConfiguration.service.ts create mode 100644 packages/fineract-client/src/services/groups.service.ts create mode 100644 packages/fineract-client/src/services/groupsLevel.service.ts create mode 100644 packages/fineract-client/src/services/guarantors.service.ts create mode 100644 packages/fineract-client/src/services/holidays.service.ts create mode 100644 packages/fineract-client/src/services/hooks.service.ts create mode 100644 packages/fineract-client/src/services/inlineJob.service.ts create mode 100644 packages/fineract-client/src/services/instanceMode.service.ts create mode 100644 packages/fineract-client/src/services/interOperation.service.ts create mode 100644 packages/fineract-client/src/services/interestRateChart.service.ts create mode 100644 packages/fineract-client/src/services/interestRateSlabAKAInterestBands.service.ts create mode 100644 packages/fineract-client/src/services/journalEntries.service.ts create mode 100644 packages/fineract-client/src/services/likelihood.service.ts create mode 100644 packages/fineract-client/src/services/listReportMailingJobHistory.service.ts create mode 100644 packages/fineract-client/src/services/loanAccountLock.service.ts create mode 100644 packages/fineract-client/src/services/loanCOBCatchUp.service.ts create mode 100644 packages/fineract-client/src/services/loanCharges.service.ts create mode 100644 packages/fineract-client/src/services/loanCollateral.service.ts create mode 100644 packages/fineract-client/src/services/loanCollateralManagement.service.ts create mode 100644 packages/fineract-client/src/services/loanDisbursementDetails.service.ts create mode 100644 packages/fineract-client/src/services/loanProducts.service.ts create mode 100644 packages/fineract-client/src/services/loanRescheduling.service.ts create mode 100644 packages/fineract-client/src/services/loanTransactions.service.ts create mode 100644 packages/fineract-client/src/services/loans.service.ts create mode 100644 packages/fineract-client/src/services/makerCheckerOr4EyeFunctionality.service.ts create mode 100644 packages/fineract-client/src/services/mappingFinancialActivitiesToAccounts.service.ts create mode 100644 packages/fineract-client/src/services/meetings.service.ts create mode 100644 packages/fineract-client/src/services/mixMapping.service.ts create mode 100644 packages/fineract-client/src/services/mixReport.service.ts create mode 100644 packages/fineract-client/src/services/mixTaxonomy.service.ts create mode 100644 packages/fineract-client/src/services/notes.service.ts create mode 100644 packages/fineract-client/src/services/notification.service.ts create mode 100644 packages/fineract-client/src/services/offices.service.ts create mode 100644 packages/fineract-client/src/services/passwordPreferences.service.ts create mode 100644 packages/fineract-client/src/services/paymentType.service.ts create mode 100644 packages/fineract-client/src/services/periodicAccrualAccounting.service.ts create mode 100644 packages/fineract-client/src/services/permissions.service.ts create mode 100644 packages/fineract-client/src/services/pocket.service.ts create mode 100644 packages/fineract-client/src/services/povertyLine.service.ts create mode 100644 packages/fineract-client/src/services/productMix.service.ts create mode 100644 packages/fineract-client/src/services/products.service.ts create mode 100644 packages/fineract-client/src/services/provisioningCategory.service.ts create mode 100644 packages/fineract-client/src/services/provisioningCriteria.service.ts create mode 100644 packages/fineract-client/src/services/provisioningEntries.service.ts create mode 100644 packages/fineract-client/src/services/rate.service.ts create mode 100644 packages/fineract-client/src/services/recurringDepositAccount.service.ts create mode 100644 packages/fineract-client/src/services/recurringDepositAccountTransactions.service.ts create mode 100644 packages/fineract-client/src/services/recurringDepositProduct.service.ts create mode 100644 packages/fineract-client/src/services/repaymentWithPostDatedChecks.service.ts create mode 100644 packages/fineract-client/src/services/reportMailingJobs.service.ts create mode 100644 packages/fineract-client/src/services/reports.service.ts create mode 100644 packages/fineract-client/src/services/rescheduleLoans.service.ts create mode 100644 packages/fineract-client/src/services/roles.service.ts create mode 100644 packages/fineract-client/src/services/runReports.service.ts create mode 100644 packages/fineract-client/src/services/sCHEDULERJOB.service.ts create mode 100644 packages/fineract-client/src/services/sMS.service.ts create mode 100644 packages/fineract-client/src/services/sPMAPILookUpTable.service.ts create mode 100644 packages/fineract-client/src/services/savingsAccount.service.ts create mode 100644 packages/fineract-client/src/services/savingsAccountTransactions.service.ts create mode 100644 packages/fineract-client/src/services/savingsCharges.service.ts create mode 100644 packages/fineract-client/src/services/savingsProduct.service.ts create mode 100644 packages/fineract-client/src/services/scheduler.service.ts create mode 100644 packages/fineract-client/src/services/scoreCard.service.ts create mode 100644 packages/fineract-client/src/services/searchAPI.service.ts create mode 100644 packages/fineract-client/src/services/selfAccountTransfer.service.ts create mode 100644 packages/fineract-client/src/services/selfAuthentication.service.ts create mode 100644 packages/fineract-client/src/services/selfClient.service.ts create mode 100644 packages/fineract-client/src/services/selfDividend.service.ts create mode 100644 packages/fineract-client/src/services/selfLoanProducts.service.ts create mode 100644 packages/fineract-client/src/services/selfLoans.service.ts create mode 100644 packages/fineract-client/src/services/selfRunReport.service.ts create mode 100644 packages/fineract-client/src/services/selfSavingsAccount.service.ts create mode 100644 packages/fineract-client/src/services/selfSavingsProducts.service.ts create mode 100644 packages/fineract-client/src/services/selfScoreCard.service.ts create mode 100644 packages/fineract-client/src/services/selfServiceRegistration.service.ts create mode 100644 packages/fineract-client/src/services/selfShareAccounts.service.ts create mode 100644 packages/fineract-client/src/services/selfShareProducts.service.ts create mode 100644 packages/fineract-client/src/services/selfSpm.service.ts create mode 100644 packages/fineract-client/src/services/selfThirdPartyTransfer.service.ts create mode 100644 packages/fineract-client/src/services/selfUser.service.ts create mode 100644 packages/fineract-client/src/services/selfUserDetails.service.ts create mode 100644 packages/fineract-client/src/services/shareAccount.service.ts create mode 100644 packages/fineract-client/src/services/spmSurveys.service.ts create mode 100644 packages/fineract-client/src/services/staff.service.ts create mode 100644 packages/fineract-client/src/services/standingInstructions.service.ts create mode 100644 packages/fineract-client/src/services/standingInstructionsHistory.service.ts create mode 100644 packages/fineract-client/src/services/survey.service.ts create mode 100644 packages/fineract-client/src/services/taxComponents.service.ts create mode 100644 packages/fineract-client/src/services/taxGroup.service.ts create mode 100644 packages/fineract-client/src/services/tellerCashManagement.service.ts create mode 100644 packages/fineract-client/src/services/twoFactor.service.ts create mode 100644 packages/fineract-client/src/services/userGeneratedDocuments.service.ts create mode 100644 packages/fineract-client/src/services/users.service.ts create mode 100644 packages/fineract-client/src/services/workingDays.service.ts create mode 100644 packages/fineract-client/src/variables.ts diff --git a/package-lock.json b/package-lock.json index 34528f3a38..247c2b2a19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "@angular/router": "13.3.12", "@ckeditor/ckeditor5-angular": "1.2.3", "@ckeditor/ckeditor5-build-classic": "21.0.0", + "@fineract/client": "*", "@fortawesome/angular-fontawesome": "^0.10.2", "@fortawesome/free-solid-svg-icons": "5.8.2", "@ngx-translate/core": "13.0.0", @@ -85,6 +86,11 @@ "engines": { "node": ">= 16.15.1", "npm": ">= 8.11.0" + }, + "workspaces": { + "packages": [ + "packages/**" + ] } }, "node_modules/@ampproject/remapping": { @@ -3077,6 +3083,10 @@ "node": ">=10.0.0" } }, + "node_modules/@fineract/client": { + "resolved": "packages/fineract-client", + "link": true + }, "node_modules/@fortawesome/angular-fontawesome": { "version": "0.10.2", "resolved": "https://registry.npmjs.org/@fortawesome/angular-fontawesome/-/angular-fontawesome-0.10.2.tgz", @@ -21178,6 +21188,9 @@ "dependencies": { "tslib": "^2.3.0" } + }, + "packages/fineract-client": { + "name": "@fineract/client" } }, "dependencies": { @@ -23291,6 +23304,9 @@ "integrity": "sha512-ws57AidsDvREKrZKYffXddNkyaF14iHNHm8VQnZH6t99E8gczjNN0GpvcGny0imC80yQ0tHz1xVUKk/KFQSUyA==", "dev": true }, + "@fineract/client": { + "version": "file:packages/fineract-client" + }, "@fortawesome/angular-fontawesome": { "version": "0.10.2", "resolved": "https://registry.npmjs.org/@fortawesome/angular-fontawesome/-/angular-fontawesome-0.10.2.tgz", diff --git a/package.json b/package.json index 0be6098794..bde9f4531d 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "@ckeditor/ckeditor5-angular": "1.2.3", "@ckeditor/ckeditor5-build-classic": "21.0.0", "@fortawesome/angular-fontawesome": "^0.10.2", + "@fineract/client": "*", "@fortawesome/free-solid-svg-icons": "5.8.2", "@ngx-translate/core": "13.0.0", "@ngx-translate/http-loader": "^6.0.0", @@ -111,5 +112,10 @@ "engines": { "node": ">= 16.15.1", "npm": ">= 8.11.0" + }, + "workspaces": { + "packages": [ + "packages/**" + ] } } diff --git a/packages/fineract-client/package.json b/packages/fineract-client/package.json new file mode 100644 index 0000000000..c3c91dd5eb --- /dev/null +++ b/packages/fineract-client/package.json @@ -0,0 +1,4 @@ +{ + "name": "@fineract/client", + "main": "./src/index.ts" +} \ No newline at end of file diff --git a/packages/fineract-client/src/.openapi-generator/FILES b/packages/fineract-client/src/.openapi-generator/FILES new file mode 100644 index 0000000000..9c1ecbf425 --- /dev/null +++ b/packages/fineract-client/src/.openapi-generator/FILES @@ -0,0 +1,1478 @@ +.gitignore +.openapi-generator-ignore +README.md +api.module.ts +api/accountNumberFormat.service.ts +api/accountTransfers.service.ts +api/accountingClosure.service.ts +api/accountingRules.service.ts +api/adhocQueryApi.service.ts +api/api.ts +api/audits.service.ts +api/authenticationHTTPBasic.service.ts +api/batchAPI.service.ts +api/bulkImport.service.ts +api/bulkLoans.service.ts +api/businessDateManagement.service.ts +api/businessStepConfiguration.service.ts +api/cache.service.ts +api/calendar.service.ts +api/cashierJournals.service.ts +api/cashiers.service.ts +api/centers.service.ts +api/charges.service.ts +api/client.service.ts +api/clientCharges.service.ts +api/clientCollateralManagement.service.ts +api/clientFamilyMember.service.ts +api/clientIdentifier.service.ts +api/clientTransaction.service.ts +api/clientsAddress.service.ts +api/codeValues.service.ts +api/codes.service.ts +api/collateralManagement.service.ts +api/collectionSheet.service.ts +api/creditBureauConfiguration.service.ts +api/currency.service.ts +api/dataTables.service.ts +api/default.service.ts +api/delinquencyRangeAndBucketsManagement.service.ts +api/depositAccountOnHoldFundTransactions.service.ts +api/deviceRegistration.service.ts +api/documents.service.ts +api/entityDataTable.service.ts +api/entityFieldConfiguration.service.ts +api/externalEventConfiguration.service.ts +api/externalServices.service.ts +api/fetchAuthenticatedUserDetails.service.ts +api/fineractEntity.service.ts +api/fixedDepositAccount.service.ts +api/fixedDepositAccountTransactions.service.ts +api/fixedDepositProduct.service.ts +api/floatingRates.service.ts +api/funds.service.ts +api/generalLedgerAccount.service.ts +api/globalConfiguration.service.ts +api/groups.service.ts +api/groupsLevel.service.ts +api/guarantors.service.ts +api/holidays.service.ts +api/hooks.service.ts +api/inlineJob.service.ts +api/instanceMode.service.ts +api/interOperation.service.ts +api/interestRateChart.service.ts +api/interestRateSlabAKAInterestBands.service.ts +api/journalEntries.service.ts +api/likelihood.service.ts +api/listReportMailingJobHistory.service.ts +api/loanAccountLock.service.ts +api/loanCOBCatchUp.service.ts +api/loanCharges.service.ts +api/loanCollateral.service.ts +api/loanCollateralManagement.service.ts +api/loanDisbursementDetails.service.ts +api/loanProducts.service.ts +api/loanRescheduling.service.ts +api/loanTransactions.service.ts +api/loans.service.ts +api/makerCheckerOr4EyeFunctionality.service.ts +api/mappingFinancialActivitiesToAccounts.service.ts +api/meetings.service.ts +api/mixMapping.service.ts +api/mixReport.service.ts +api/mixTaxonomy.service.ts +api/notes.service.ts +api/notification.service.ts +api/offices.service.ts +api/passwordPreferences.service.ts +api/paymentType.service.ts +api/periodicAccrualAccounting.service.ts +api/permissions.service.ts +api/pocket.service.ts +api/povertyLine.service.ts +api/productMix.service.ts +api/products.service.ts +api/provisioningCategory.service.ts +api/provisioningCriteria.service.ts +api/provisioningEntries.service.ts +api/rate.service.ts +api/recurringDepositAccount.service.ts +api/recurringDepositAccountTransactions.service.ts +api/recurringDepositProduct.service.ts +api/repaymentWithPostDatedChecks.service.ts +api/reportMailingJobs.service.ts +api/reports.service.ts +api/rescheduleLoans.service.ts +api/roles.service.ts +api/runReports.service.ts +api/sCHEDULERJOB.service.ts +api/sMS.service.ts +api/sPMAPILookUpTable.service.ts +api/savingsAccount.service.ts +api/savingsAccountTransactions.service.ts +api/savingsCharges.service.ts +api/savingsProduct.service.ts +api/scheduler.service.ts +api/scoreCard.service.ts +api/searchAPI.service.ts +api/selfAccountTransfer.service.ts +api/selfAuthentication.service.ts +api/selfClient.service.ts +api/selfDividend.service.ts +api/selfLoanProducts.service.ts +api/selfLoans.service.ts +api/selfRunReport.service.ts +api/selfSavingsAccount.service.ts +api/selfSavingsProducts.service.ts +api/selfScoreCard.service.ts +api/selfServiceRegistration.service.ts +api/selfShareAccounts.service.ts +api/selfShareProducts.service.ts +api/selfSpm.service.ts +api/selfThirdPartyTransfer.service.ts +api/selfUser.service.ts +api/selfUserDetails.service.ts +api/shareAccount.service.ts +api/spmSurveys.service.ts +api/staff.service.ts +api/standingInstructions.service.ts +api/standingInstructionsHistory.service.ts +api/survey.service.ts +api/taxComponents.service.ts +api/taxGroup.service.ts +api/tellerCashManagement.service.ts +api/twoFactor.service.ts +api/userGeneratedDocuments.service.ts +api/users.service.ts +api/workingDays.service.ts +configuration.ts +encoder.ts +git_push.sh +index.ts +model/accountTransferData.ts +model/accountingRuleData.ts +model/accountingTagRuleData.ts +model/allowAttributeOverrides.ts +model/appUser.ts +model/appUserClientMapping.ts +model/appUserData.ts +model/applicationCurrency.ts +model/batchRequest.ts +model/batchResponse.ts +model/bodyPart.ts +model/bodyPartMediaType.ts +model/businessDateRequest.ts +model/businessDateResponse.ts +model/businessStep.ts +model/calendarData.ts +model/cashierData.ts +model/cashierTransactionData.ts +model/cashierTxnType.ts +model/centerData.ts +model/changeInstanceModeRequest.ts +model/charge.ts +model/chargeData.ts +model/chargeFeeOnMonthDay.ts +model/chargeToGLAccountMapper.ts +model/client.ts +model/clientCollateralManagement.ts +model/clientCollateralManagementData.ts +model/clientData.ts +model/clientFamilyMembersData.ts +model/clientTimelineData.ts +model/code.ts +model/codeValue.ts +model/codeValueData.ts +model/collateralManagementDomain.ts +model/commandProcessingResult.ts +model/commandWrapper.ts +model/component.ts +model/componentData.ts +model/contentDisposition.ts +model/createStaffResponse.ts +model/currencyData.ts +model/currencyItem.ts +model/datatableData.ts +model/deleteAccountNumberFormatsResponse.ts +model/deleteAccountingRulesResponse.ts +model/deleteCentersCenterIdResponse.ts +model/deleteChargesChargeIdResponse.ts +model/deleteClientCollateralResponse.ts +model/deleteClientsClientIdChargesChargeIdResponse.ts +model/deleteClientsClientIdIdentifiersIdentifierIdResponse.ts +model/deleteClientsClientIdResponse.ts +model/deleteCodeValueDataResponse.ts +model/deleteCodesResponse.ts +model/deleteCollateralProductResponse.ts +model/deleteDataTablesDatatableAppTableIdDatatableIdResponse.ts +model/deleteDataTablesDatatableAppTableIdResponse.ts +model/deleteDataTablesResponse.ts +model/deleteDelinquencyBucketResponse.ts +model/deleteDelinquencyRangeResponse.ts +model/deleteEntityDatatableChecksTemplateResponse.ts +model/deleteEntityTypeEntityIdDocumentsResponse.ts +model/deleteFinancialActivityAccountsResponse.ts +model/deleteFixedDepositAccountsAccountIdResponse.ts +model/deleteFixedDepositProductsProductIdResponse.ts +model/deleteGLAccountsRequest.ts +model/deleteGlClosuresResponse.ts +model/deleteGroupsGroupIdResponse.ts +model/deleteHolidaysHolidayIdResponse.ts +model/deleteHookResponse.ts +model/deleteInterestRateChartsChartIdChartSlabsResponse.ts +model/deleteInterestRateChartsChartIdResponse.ts +model/deleteLoansLoanIdChargesChargeIdResponse.ts +model/deleteLoansLoanIdCollateralsCollateralIdResponse.ts +model/deleteLoansLoanIdResponse.ts +model/deletePaymentTypesPaymentTypeIdResponse.ts +model/deletePostDatedCheck.ts +model/deleteProvisioningCriteriaResponse.ts +model/deleteRecurringDepositAccountsResponse.ts +model/deleteRecurringDepositProductsProductIdResponse.ts +model/deleteReportMailingJobsResponse.ts +model/deleteReportsResponse.ts +model/deleteResourceTypeResourceIdNotesNoteIdResponse.ts +model/deleteRolesRoleIdResponse.ts +model/deleteSavingsAccountsAccountIdResponse.ts +model/deleteSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts +model/deleteSavingsProductsProductIdResponse.ts +model/deleteSelfBeneficiariesTPTBeneficiaryIdResponse.ts +model/deleteTellersTellerIdCashiersCashierIdResponse.ts +model/deleteTemplatesTemplateIdResponse.ts +model/deleteUsersUserIdResponse.ts +model/delinquencyBucket.ts +model/delinquencyBucketData.ts +model/delinquencyRange.ts +model/delinquencyRangeData.ts +model/disbursementData.ts +model/entity.ts +model/enumOptionData.ts +model/enumOptionType.ts +model/event.ts +model/executeJobRequest.ts +model/extensionData.ts +model/externalEventConfigurationItemData.ts +model/externalId.ts +model/externalServicesPropertiesData.ts +model/field.ts +model/financialActivityData.ts +model/floatingRate.ts +model/floatingRateData.ts +model/floatingRatePeriod.ts +model/floatingRatePeriodData.ts +model/formDataBodyPart.ts +model/formDataContentDisposition.ts +model/fundData.ts +model/gLAccount.ts +model/gLAccountData.ts +model/gLAccountDataForLookup.ts +model/geoCodeData.ts +model/getAccountNumberFormatsIdResponse.ts +model/getAccountNumberFormatsResponseTemplate.ts +model/getAccountOptions.ts +model/getAccountRulesResponse.ts +model/getAccountRulesTemplateResponse.ts +model/getAccountTransferTemplateResponse.ts +model/getAccountTransfersFromAccountType.ts +model/getAccountTransfersFromAccountTypeOptions.ts +model/getAccountTransfersFromClientOptions.ts +model/getAccountTransfersFromOffice.ts +model/getAccountTransfersFromOfficeOptions.ts +model/getAccountTransfersPageItems.ts +model/getAccountTransfersPageItemsCurrency.ts +model/getAccountTransfersPageItemsFromAccount.ts +model/getAccountTransfersPageItemsFromOffice.ts +model/getAccountTransfersPageItemsToAccountType.ts +model/getAccountTransfersResponse.ts +model/getAccountTransfersStatus.ts +model/getAccountTransfersTemplateRefundByTransferCurrency.ts +model/getAccountTransfersTemplateRefundByTransferFromAccount.ts +model/getAccountTransfersTemplateRefundByTransferFromAccountOptions.ts +model/getAccountTransfersTemplateRefundByTransferFromClient.ts +model/getAccountTransfersTemplateRefundByTransferFromClientOptions.ts +model/getAccountTransfersTemplateRefundByTransferFromOffice.ts +model/getAccountTransfersTemplateRefundByTransferFromOfficeOptions.ts +model/getAccountTransfersTemplateRefundByTransferResponse.ts +model/getAccountTransfersTemplateRefundByTransferToAccount.ts +model/getAccountTransfersTemplateRefundByTransferToClient.ts +model/getAccountTransfersTemplateResponse.ts +model/getAccountTransfersTimeline.ts +model/getAccountTransfersToAccountTypeOptions.ts +model/getAccountTransfersToOfficeOptions.ts +model/getAccountsChargeCalculationType.ts +model/getAccountsChargeTimeType.ts +model/getAccountsCharges.ts +model/getAccountsChargesCurrency.ts +model/getAccountsCurrency.ts +model/getAccountsLinkedToPocketResponse.ts +model/getAccountsLockPeriodTypeEnum.ts +model/getAccountsPageItems.ts +model/getAccountsPurchasedShares.ts +model/getAccountsPurchasedSharesStatus.ts +model/getAccountsPurchasedSharesType.ts +model/getAccountsStatus.ts +model/getAccountsSummary.ts +model/getAccountsTimeline.ts +model/getAccountsTypeAccountIdResponse.ts +model/getAccountsTypeProductOptions.ts +model/getAccountsTypePurchasedShares.ts +model/getAccountsTypeResponse.ts +model/getAccountsTypeStatus.ts +model/getAccountsTypeSummary.ts +model/getAccountsTypeTemplateResponse.ts +model/getAccountsTypeTimeline.ts +model/getAssetType.ts +model/getBusinessJobConfigResponse.ts +model/getBusinessStepConfigResponse.ts +model/getCachesResponse.ts +model/getCentersAccountType.ts +model/getCentersCenterIdAccountsResponse.ts +model/getCentersCenterIdCurrency.ts +model/getCentersCenterIdResponse.ts +model/getCentersCenterIdStatus.ts +model/getCentersDepositType.ts +model/getCentersOfficeOptions.ts +model/getCentersPageItems.ts +model/getCentersResponse.ts +model/getCentersSavingsAccounts.ts +model/getCentersStaffOptions.ts +model/getCentersStatus.ts +model/getCentersTemplateResponse.ts +model/getCentersTimeline.ts +model/getChargeAppliesTo.ts +model/getChargeCalculationType.ts +model/getChargePaymentMode.ts +model/getChargeTimeType.ts +model/getChargesAppliesTo.ts +model/getChargesAppliesToResponse.ts +model/getChargesCalculationTypeResponse.ts +model/getChargesChargeCalculationType.ts +model/getChargesChargeTimeType.ts +model/getChargesCurrency.ts +model/getChargesCurrencyResponse.ts +model/getChargesPaymentModeResponse.ts +model/getChargesResponse.ts +model/getChargesTemplateFeeFrequencyOptions.ts +model/getChargesTemplateLoanChargeCalculationTypeOptions.ts +model/getChargesTemplateLoanChargeTimeTypeOptions.ts +model/getChargesTemplateResponse.ts +model/getChargesTimeTypeResponse.ts +model/getClientChargeCalculationType.ts +model/getClientChargeCurrency.ts +model/getClientChargeTimeType.ts +model/getClientClientIdAddressesResponse.ts +model/getClientIdProductIdAccountingMappings.ts +model/getClientIdProductIdChargeOptions.ts +model/getClientIdProductIdLockinPeriodFrequencyTypeOptions.ts +model/getClientIdProductIdMinimumActivePeriodFrequencyTypeOptions.ts +model/getClientIdProductIdProductOptions.ts +model/getClientObligeeDetailsResponse.ts +model/getClientStatus.ts +model/getClientTransactionsCurrency.ts +model/getClientTransferProposalDateResponse.ts +model/getClientsAllowedDocumentTypes.ts +model/getClientsChargesPageItems.ts +model/getClientsClientIdAccountsResponse.ts +model/getClientsClientIdChargesResponse.ts +model/getClientsClientIdIdentifiersResponse.ts +model/getClientsClientIdIdentifiersTemplateResponse.ts +model/getClientsClientIdResponse.ts +model/getClientsClientIdStatus.ts +model/getClientsClientIdTransactionsResponse.ts +model/getClientsClientIdTransactionsTransactionIdResponse.ts +model/getClientsClientIdTransactionsType.ts +model/getClientsColumnHeaderData.ts +model/getClientsDataTables.ts +model/getClientsDocumentType.ts +model/getClientsGroups.ts +model/getClientsLoanAccounts.ts +model/getClientsLoanAccountsStatus.ts +model/getClientsLoanAccountsType.ts +model/getClientsOfficeOptions.ts +model/getClientsPageItems.ts +model/getClientsPageItemsResponse.ts +model/getClientsResponse.ts +model/getClientsSavingProductOptions.ts +model/getClientsSavingsAccounts.ts +model/getClientsSavingsAccountsCurrency.ts +model/getClientsSavingsAccountsDepositType.ts +model/getClientsSavingsAccountsStatus.ts +model/getClientsStaffOptions.ts +model/getClientsTemplateResponse.ts +model/getClientsTimeline.ts +model/getCodeValuesDataResponse.ts +model/getCodesResponse.ts +model/getCollateralCurrencyResponse.ts +model/getCollateralManagementsResponse.ts +model/getCollateralProductTemplate.ts +model/getCollateralTypeResponse.ts +model/getCollateralsTemplateAllowedTypes.ts +model/getCurrenciesResponse.ts +model/getCurrencyData.ts +model/getDataTablesResponse.ts +model/getDelinquencyBucketsResponse.ts +model/getDelinquencyRangesResponse.ts +model/getDelinquencyTagHistoryResponse.ts +model/getEntityDatatableChecksResponse.ts +model/getEntityDatatableChecksTemplateResponse.ts +model/getEntityTypeEntityIdDocumentsResponse.ts +model/getEquityType.ts +model/getExternalEventConfigurationsResponse.ts +model/getFieldConfigurationEntityResponse.ts +model/getFinancialActivityAccountsResponse.ts +model/getFixedDepositAccountsAccountChart.ts +model/getFixedDepositAccountsAccountChartCurrency.ts +model/getFixedDepositAccountsAccountIdCurrency.ts +model/getFixedDepositAccountsAccountIdResponse.ts +model/getFixedDepositAccountsAccountIdSummary.ts +model/getFixedDepositAccountsChartSlabs.ts +model/getFixedDepositAccountsCurrency.ts +model/getFixedDepositAccountsDepositPeriodFrequency.ts +model/getFixedDepositAccountsInterestCalculationDaysInYearType.ts +model/getFixedDepositAccountsInterestCalculationType.ts +model/getFixedDepositAccountsInterestCompoundingPeriodType.ts +model/getFixedDepositAccountsInterestPostingPeriodType.ts +model/getFixedDepositAccountsMaxDepositTermType.ts +model/getFixedDepositAccountsMinDepositTermType.ts +model/getFixedDepositAccountsPeriodType.ts +model/getFixedDepositAccountsPeriodTypes.ts +model/getFixedDepositAccountsProductOptions.ts +model/getFixedDepositAccountsResponse.ts +model/getFixedDepositAccountsStatus.ts +model/getFixedDepositAccountsSummary.ts +model/getFixedDepositAccountsTemplateResponse.ts +model/getFixedDepositAccountsTimeline.ts +model/getFixedDepositProductsAccountingRule.ts +model/getFixedDepositProductsCurrency.ts +model/getFixedDepositProductsInterestCalculationDaysInYearType.ts +model/getFixedDepositProductsInterestCalculationType.ts +model/getFixedDepositProductsInterestCompoundingPeriodType.ts +model/getFixedDepositProductsInterestPostingPeriodType.ts +model/getFixedDepositProductsMaxDepositTermType.ts +model/getFixedDepositProductsMinDepositTermType.ts +model/getFixedDepositProductsProductIdAccountingMappings.ts +model/getFixedDepositProductsProductIdActiveChart.ts +model/getFixedDepositProductsProductIdChartSlabs.ts +model/getFixedDepositProductsProductIdCurrency.ts +model/getFixedDepositProductsProductIdFeeToIncomeAccountMappings.ts +model/getFixedDepositProductsProductIdFeeToIncomeAccountMappingsCharge.ts +model/getFixedDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount.ts +model/getFixedDepositProductsProductIdIncomeFromFeeAccount.ts +model/getFixedDepositProductsProductIdIncomeFromPenaltyAccount.ts +model/getFixedDepositProductsProductIdInterestCompoundingPeriodType.ts +model/getFixedDepositProductsProductIdInterestOnSavingsAccount.ts +model/getFixedDepositProductsProductIdMaxDepositTermType.ts +model/getFixedDepositProductsProductIdMinDepositTermType.ts +model/getFixedDepositProductsProductIdPenaltyToIncomeAccountMappings.ts +model/getFixedDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge.ts +model/getFixedDepositProductsProductIdPeriodType.ts +model/getFixedDepositProductsProductIdPreClosurePenalInterestOnType.ts +model/getFixedDepositProductsProductIdResponse.ts +model/getFixedDepositProductsProductIdSavingsControlAccount.ts +model/getFixedDepositProductsProductIdSavingsReferenceAccount.ts +model/getFixedDepositProductsProductIdTransfersInSuspenseAccount.ts +model/getFixedDepositProductsResponse.ts +model/getFloatingRatesFloatingRateIdResponse.ts +model/getFloatingRatesRatePeriods.ts +model/getFloatingRatesResponse.ts +model/getFromAccountOptions.ts +model/getFromAccountStandingInstructionSwagger.ts +model/getFromAccountTypeOptionsResponseStandingInstructionSwagger.ts +model/getFromAccountTypeResponseStandingInstructionSwagger.ts +model/getFromAccountTypeStandingInstructionSwagger.ts +model/getFromClientOptionsResponseStandingInstructionSwagger.ts +model/getFromClientStandingInstructionSwagger.ts +model/getFromOfficeOptionsResponseStandingInstructionSwagger.ts +model/getFromOfficeResponseStandingInstructionSwagger.ts +model/getFromOfficeStandingInstructionSwagger.ts +model/getFundsResponse.ts +model/getGLAccountsResponse.ts +model/getGLAccountsTemplateResponse.ts +model/getGlAccountMapping.ts +model/getGlClosureResponse.ts +model/getGlobalConfigurationsResponse.ts +model/getGroupsGroupIdAccountsLoanAccounts.ts +model/getGroupsGroupIdAccountsLoanType.ts +model/getGroupsGroupIdAccountsMemberLoanAccounts.ts +model/getGroupsGroupIdAccountsMemberLoanStatus.ts +model/getGroupsGroupIdAccountsMemberLoanType.ts +model/getGroupsGroupIdAccountsMemberSavingsAccounts.ts +model/getGroupsGroupIdAccountsResponse.ts +model/getGroupsGroupIdAccountsSavingAccountType.ts +model/getGroupsGroupIdAccountsSavingAccounts.ts +model/getGroupsGroupIdAccountsSavingCurrency.ts +model/getGroupsGroupIdAccountsSavingStatus.ts +model/getGroupsGroupIdAccountsStatus.ts +model/getGroupsGroupIdResponse.ts +model/getGroupsGroupIdTimeline.ts +model/getGroupsPageItems.ts +model/getGroupsResponse.ts +model/getGroupsStatus.ts +model/getGroupsTemplateClientOptions.ts +model/getGroupsTemplateColumnHeaderData.ts +model/getGroupsTemplateDatatables.ts +model/getGroupsTemplateOfficeOptions.ts +model/getGroupsTemplateResponse.ts +model/getGroupsTemplateStaffOptions.ts +model/getHolidaysResponse.ts +model/getHookResponse.ts +model/getHookTemplateResponse.ts +model/getIncomeFromFeeAccountId.ts +model/getIncomeType.ts +model/getInstructionTypeOptionsResponseStandingInstructionSwagger.ts +model/getInstructionTypeStandingInstructionSwagger.ts +model/getInterestRateChartsChartIdChartSlabsAttributeName.ts +model/getInterestRateChartsChartIdChartSlabsConditionType.ts +model/getInterestRateChartsChartIdChartSlabsEntityType.ts +model/getInterestRateChartsChartIdChartSlabsIncentiveType.ts +model/getInterestRateChartsChartIdChartSlabsIncentives.ts +model/getInterestRateChartsChartIdChartSlabsResponse.ts +model/getInterestRateChartsChartSlabs.ts +model/getInterestRateChartsCurrency.ts +model/getInterestRateChartsResponse.ts +model/getInterestRateChartsTemplatePeriodTypes.ts +model/getInterestRateChartsTemplateResponse.ts +model/getJobsJobIDJobRunHistoryResponse.ts +model/getJobsResponse.ts +model/getJournalEntriesTransactionIdResponse.ts +model/getLoanAccountLockResponse.ts +model/getLoanAccountingMappings.ts +model/getLoanCharge.ts +model/getLoanChargeCalculationType.ts +model/getLoanChargeCurrency.ts +model/getLoanChargeTemplateChargeAppliesTo.ts +model/getLoanChargeTemplateChargeOptions.ts +model/getLoanChargeTemplateChargeTimeType.ts +model/getLoanChargeTimeType.ts +model/getLoanCollateralManagementTemplate.ts +model/getLoanCurrency.ts +model/getLoanFeeToIncomeAccountMappings.ts +model/getLoanPaymentChannelToFundSourceMappings.ts +model/getLoanProductsAccountingMappingOptions.ts +model/getLoanProductsAccountingRule.ts +model/getLoanProductsAmortizationType.ts +model/getLoanProductsAssetAccountOptions.ts +model/getLoanProductsChargeAppliesTo.ts +model/getLoanProductsChargeOptions.ts +model/getLoanProductsCurrency.ts +model/getLoanProductsCurrencyOptions.ts +model/getLoanProductsDaysInYearTemplateType.ts +model/getLoanProductsExpenseAccountOptions.ts +model/getLoanProductsExpenseType.ts +model/getLoanProductsIncomeAccountOptions.ts +model/getLoanProductsIncomeType.ts +model/getLoanProductsInterestRateFrequencyType.ts +model/getLoanProductsInterestRateTemplateFrequencyType.ts +model/getLoanProductsInterestRecalculationCompoundingFrequencyType.ts +model/getLoanProductsInterestRecalculationCompoundingType.ts +model/getLoanProductsInterestRecalculationData.ts +model/getLoanProductsInterestRecalculationTemplateData.ts +model/getLoanProductsInterestTemplateType.ts +model/getLoanProductsInterestType.ts +model/getLoanProductsLiabilityAccountOptions.ts +model/getLoanProductsLiabilityTagId.ts +model/getLoanProductsLiabilityType.ts +model/getLoanProductsLiabilityUsage.ts +model/getLoanProductsParamType.ts +model/getLoanProductsPaymentTypeOptions.ts +model/getLoanProductsPreClosureInterestCalculationStrategy.ts +model/getLoanProductsPrincipalVariationsForBorrowerCycle.ts +model/getLoanProductsProductIdResponse.ts +model/getLoanProductsRepaymentFrequencyType.ts +model/getLoanProductsRepaymentTemplateFrequencyType.ts +model/getLoanProductsRescheduleStrategyType.ts +model/getLoanProductsResponse.ts +model/getLoanProductsTemplateCurrency.ts +model/getLoanProductsTemplateResponse.ts +model/getLoanProductsTransactionProcessingStrategyOptions.ts +model/getLoanProductsValueConditionType.ts +model/getLoanProductsValueConditionTypeOptions.ts +model/getLoanRescheduleRequestResponse.ts +model/getLoanRescheduleRequestStatus.ts +model/getLoanTransactionRelation.ts +model/getLoansApprovalTemplateResponse.ts +model/getLoansChargePaymentMode.ts +model/getLoansCurrency.ts +model/getLoansLoanIdAmortizationType.ts +model/getLoansLoanIdChargeCalculationType.ts +model/getLoansLoanIdChargePaymentMode.ts +model/getLoansLoanIdChargeTimeType.ts +model/getLoansLoanIdChargesChargeIdResponse.ts +model/getLoansLoanIdChargesTemplateResponse.ts +model/getLoansLoanIdCodeValueData.ts +model/getLoansLoanIdCollateralsResponse.ts +model/getLoansLoanIdCollateralsTemplateResponse.ts +model/getLoansLoanIdCollectionData.ts +model/getLoansLoanIdCurrency.ts +model/getLoansLoanIdDisbursementDetails.ts +model/getLoansLoanIdEnumOptionData.ts +model/getLoansLoanIdFeeFrequency.ts +model/getLoansLoanIdInterestCalculationPeriodType.ts +model/getLoansLoanIdInterestRateFrequencyType.ts +model/getLoansLoanIdInterestType.ts +model/getLoansLoanIdLinkedAccount.ts +model/getLoansLoanIdLoanChargeData.ts +model/getLoansLoanIdLoanChargePaidByData.ts +model/getLoansLoanIdLoanInstallmentChargeData.ts +model/getLoansLoanIdLoanRepaymentScheduleInstallmentData.ts +model/getLoansLoanIdLoanTransactionEnumData.ts +model/getLoansLoanIdLoanTransactionRelation.ts +model/getLoansLoanIdLoanType.ts +model/getLoansLoanIdOverdueCharges.ts +model/getLoansLoanIdPaymentDetailData.ts +model/getLoansLoanIdPaymentType.ts +model/getLoansLoanIdRepaymentFrequencyType.ts +model/getLoansLoanIdRepaymentPeriod.ts +model/getLoansLoanIdRepaymentSchedule.ts +model/getLoansLoanIdResponse.ts +model/getLoansLoanIdStatus.ts +model/getLoansLoanIdSummary.ts +model/getLoansLoanIdTermPeriodFrequencyType.ts +model/getLoansLoanIdTimeline.ts +model/getLoansLoanIdTransactions.ts +model/getLoansLoanIdTransactionsTemplateResponse.ts +model/getLoansLoanIdTransactionsTransactionIdResponse.ts +model/getLoansProductsDaysInMonthTemplateType.ts +model/getLoansProductsDaysInMonthType.ts +model/getLoansProductsDaysInYearType.ts +model/getLoansProductsInterestCalculationPeriodType.ts +model/getLoansResponse.ts +model/getLoansTemplateProductOptions.ts +model/getLoansTemplateResponse.ts +model/getLoansTemplateTimeline.ts +model/getLoansTotal.ts +model/getLoansTransactionType.ts +model/getLoansType.ts +model/getLockPeriodTypeEnum.ts +model/getMakerCheckerResponse.ts +model/getMakerCheckersSearchTemplateResponse.ts +model/getNotesNoteType.ts +model/getNotification.ts +model/getNotificationsResponse.ts +model/getObligeeData.ts +model/getOfficesResponse.ts +model/getOfficesTemplateResponse.ts +model/getOldestCOBProcessedLoanResponse.ts +model/getPageItemsStandingInstructionSwagger.ts +model/getPasswordPreferencesTemplateResponse.ts +model/getPaymentTypesPaymentTypeIdResponse.ts +model/getPaymentTypesResponse.ts +model/getPermissionsResponse.ts +model/getPocketData.ts +model/getPocketLoanAccounts.ts +model/getPocketSavingAccounts.ts +model/getPostDatedChecks.ts +model/getPriorityOptionsResponseStandingInstructionSwagger.ts +model/getPriorityStandingInstructionSwagger.ts +model/getProductsAccountingMappingOptions.ts +model/getProductsAccountingMappings.ts +model/getProductsAccountingRule.ts +model/getProductsAssetAccountOptions.ts +model/getProductsCharges.ts +model/getProductsCurrency.ts +model/getProductsEquityAccountOptions.ts +model/getProductsIncomeAccountOptions.ts +model/getProductsLiabilityAccountOptions.ts +model/getProductsLiabilityType.ts +model/getProductsLiabilityUsage.ts +model/getProductsMarketPrice.ts +model/getProductsMinimumActivePeriodFrequencyTypeOptions.ts +model/getProductsPageItems.ts +model/getProductsTagId.ts +model/getProductsTypeProductIdResponse.ts +model/getProductsTypeResponse.ts +model/getProvisioningCriteriaCriteriaIdResponse.ts +model/getProvisioningCriteriaResponse.ts +model/getRecurrenceFrequencyOptionsResponseStandingInstructionSwagger.ts +model/getRecurrenceFrequencyStandingInstructionSwagger.ts +model/getRecurrenceTypeOptionsResponseStandingInstructionSwagger.ts +model/getRecurrenceTypeStandingInstructionSwagger.ts +model/getRecurringCurrency.ts +model/getRecurringDepositAccountsAccountChart.ts +model/getRecurringDepositAccountsAccountChartCurrency.ts +model/getRecurringDepositAccountsAccountIdResponse.ts +model/getRecurringDepositAccountsChartSlabs.ts +model/getRecurringDepositAccountsCurrency.ts +model/getRecurringDepositAccountsDepositPeriodFrequency.ts +model/getRecurringDepositAccountsInterestCalculationDaysInYearType.ts +model/getRecurringDepositAccountsInterestCalculationType.ts +model/getRecurringDepositAccountsInterestCompoundingPeriodType.ts +model/getRecurringDepositAccountsInterestPostingPeriodType.ts +model/getRecurringDepositAccountsMaxDepositTermType.ts +model/getRecurringDepositAccountsMinDepositTermType.ts +model/getRecurringDepositAccountsPeriodType.ts +model/getRecurringDepositAccountsPeriodTypes.ts +model/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTemplateResponse.ts +model/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse.ts +model/getRecurringDepositAccountsRecurringDepositFrequencyType.ts +model/getRecurringDepositAccountsResponse.ts +model/getRecurringDepositAccountsStatus.ts +model/getRecurringDepositAccountsSummary.ts +model/getRecurringDepositAccountsTemplateResponse.ts +model/getRecurringDepositAccountsTimeline.ts +model/getRecurringDepositProductsAccountingRule.ts +model/getRecurringDepositProductsCurrency.ts +model/getRecurringDepositProductsInterestCalculationDaysInYearType.ts +model/getRecurringDepositProductsInterestCalculationType.ts +model/getRecurringDepositProductsInterestCompoundingPeriodType.ts +model/getRecurringDepositProductsInterestPostingPeriodType.ts +model/getRecurringDepositProductsMaxDepositTermType.ts +model/getRecurringDepositProductsMinDepositTermType.ts +model/getRecurringDepositProductsProductIdAccountingMappings.ts +model/getRecurringDepositProductsProductIdActiveChart.ts +model/getRecurringDepositProductsProductIdChartSlabs.ts +model/getRecurringDepositProductsProductIdCurrency.ts +model/getRecurringDepositProductsProductIdFeeToIncomeAccountMappings.ts +model/getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsCharge.ts +model/getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount.ts +model/getRecurringDepositProductsProductIdIncomeFromFeeAccount.ts +model/getRecurringDepositProductsProductIdIncomeFromPenaltyAccount.ts +model/getRecurringDepositProductsProductIdInterestCompoundingPeriodType.ts +model/getRecurringDepositProductsProductIdInterestOnSavingsAccount.ts +model/getRecurringDepositProductsProductIdMaxDepositTermType.ts +model/getRecurringDepositProductsProductIdMinDepositTermType.ts +model/getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappings.ts +model/getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge.ts +model/getRecurringDepositProductsProductIdPeriodType.ts +model/getRecurringDepositProductsProductIdPreClosurePenalInterestOnType.ts +model/getRecurringDepositProductsProductIdResponse.ts +model/getRecurringDepositProductsProductIdSavingsControlAccount.ts +model/getRecurringDepositProductsProductIdSavingsReferenceAccount.ts +model/getRecurringDepositProductsProductIdTransfersInSuspenseAccount.ts +model/getRecurringDepositProductsRecurringDepositFrequencyType.ts +model/getRecurringDepositProductsResponse.ts +model/getRecurringPaymentDetailData.ts +model/getRecurringPaymentType.ts +model/getRecurringProductOptions.ts +model/getRecurringTransactionType.ts +model/getRecurringTransactionsCurrency.ts +model/getRecurringTransactionsTransactionType.ts +model/getReportMailingJobsResponse.ts +model/getReportMailingJobsTemplate.ts +model/getReportsResponse.ts +model/getReportsTemplateResponse.ts +model/getRescheduleReasonsAllowedTypes.ts +model/getRescheduleReasonsTemplateResponse.ts +model/getResourceTypeResourceIdNotesNoteIdResponse.ts +model/getResourceTypeResourceIdNotesResponse.ts +model/getRolesResponse.ts +model/getRolesRoleIdPermissionsResponse.ts +model/getRolesRoleIdPermissionsResponsePermissionData.ts +model/getRolesRoleIdResponse.ts +model/getRunReportColumnHeaders.ts +model/getRunReportResponse.ts +model/getSavingsAccountsAccountIdResponse.ts +model/getSavingsAccountsResponse.ts +model/getSavingsAccountsSavingsAccountIdChargesResponse.ts +model/getSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts +model/getSavingsAccountsSavingsAccountIdChargesTemplateResponse.ts +model/getSavingsAccountsSummary.ts +model/getSavingsAccountsTemplateResponse.ts +model/getSavingsAssetLiabilityType.ts +model/getSavingsChargeCalculationType.ts +model/getSavingsChargePaymentMode.ts +model/getSavingsChargeTimeType.ts +model/getSavingsChargesChargeTimeType.ts +model/getSavingsChargesOptions.ts +model/getSavingsCurrency.ts +model/getSavingsInterestCalculationDaysInYearType.ts +model/getSavingsInterestCalculationType.ts +model/getSavingsInterestCompoundingPeriodType.ts +model/getSavingsInterestPostingPeriodType.ts +model/getSavingsPageItems.ts +model/getSavingsProductOptions.ts +model/getSavingsProductsAccountingMappingOptions.ts +model/getSavingsProductsAccountingMappings.ts +model/getSavingsProductsAccountingRule.ts +model/getSavingsProductsAssetAccountOptions.ts +model/getSavingsProductsChargeAppliesTo.ts +model/getSavingsProductsChargeOptions.ts +model/getSavingsProductsExpenseAccountOptions.ts +model/getSavingsProductsExpenseType.ts +model/getSavingsProductsFeeToIncomeAccountMappings.ts +model/getSavingsProductsFeeToIncomeAccountMappingsCharge.ts +model/getSavingsProductsFeeToIncomeAccountMappingsIncomeAccount.ts +model/getSavingsProductsFundSourceAccount.ts +model/getSavingsProductsIncomeAccountOptions.ts +model/getSavingsProductsIncomeFromFeeAccount.ts +model/getSavingsProductsIncomeFromPenaltyAccount.ts +model/getSavingsProductsIncomeType.ts +model/getSavingsProductsInterestCalculationDaysInYearType.ts +model/getSavingsProductsInterestCalculationType.ts +model/getSavingsProductsInterestCompoundingPeriodType.ts +model/getSavingsProductsInterestOnSavingsAccount.ts +model/getSavingsProductsInterestPostingPeriodType.ts +model/getSavingsProductsLiabilityAccountOptions.ts +model/getSavingsProductsLiabilityTagId.ts +model/getSavingsProductsLiabilityType.ts +model/getSavingsProductsLiabilityUsage.ts +model/getSavingsProductsLockinPeriodFrequencyTypeOptions.ts +model/getSavingsProductsPaymentChannelToFundSourceMappings.ts +model/getSavingsProductsPaymentType.ts +model/getSavingsProductsPaymentTypeOptions.ts +model/getSavingsProductsPenaltyToIncomeAccountMappings.ts +model/getSavingsProductsPenaltyToIncomeAccountMappingsCharge.ts +model/getSavingsProductsProductIdResponse.ts +model/getSavingsProductsResponse.ts +model/getSavingsProductsSavingsControlAccount.ts +model/getSavingsProductsSavingsReferenceAccount.ts +model/getSavingsProductsTemplateAccountingRule.ts +model/getSavingsProductsTemplateResponse.ts +model/getSavingsProductsTransfersInSuspenseAccount.ts +model/getSavingsProductsWithdrawalFeeTypeOptions.ts +model/getSavingsStatus.ts +model/getSavingsSummary.ts +model/getSavingsTimeline.ts +model/getSchedulerResponse.ts +model/getSearchResponse.ts +model/getSelfBeneficiariesAccountOptions.ts +model/getSelfBeneficiariesTPTResponse.ts +model/getSelfBeneficiariesTPTTemplateResponse.ts +model/getSelfClientsChargeCalculationType.ts +model/getSelfClientsChargeTimeType.ts +model/getSelfClientsChargesPageItems.ts +model/getSelfClientsClientIdAccountsResponse.ts +model/getSelfClientsClientIdChargesChargeIdResponse.ts +model/getSelfClientsClientIdChargesResponse.ts +model/getSelfClientsClientIdResponse.ts +model/getSelfClientsClientIdTransactionsPageItems.ts +model/getSelfClientsClientIdTransactionsResponse.ts +model/getSelfClientsClientIdTransactionsTransactionIdResponse.ts +model/getSelfClientsClientIdTransactionsType.ts +model/getSelfClientsLoanAccounts.ts +model/getSelfClientsLoanAccountsStatus.ts +model/getSelfClientsLoanAccountsType.ts +model/getSelfClientsPageItems.ts +model/getSelfClientsResponse.ts +model/getSelfClientsSavingsAccounts.ts +model/getSelfClientsSavingsAccountsCurrency.ts +model/getSelfClientsSavingsAccountsStatus.ts +model/getSelfClientsStatus.ts +model/getSelfClientsTimeline.ts +model/getSelfLoanIdSummary.ts +model/getSelfLoanIdTimeline.ts +model/getSelfLoansChargeCalculationType.ts +model/getSelfLoansChargeTimeType.ts +model/getSelfLoansLoanIdChargesResponse.ts +model/getSelfLoansLoanIdResponse.ts +model/getSelfLoansLoanIdTransactionsTransactionIdResponse.ts +model/getSelfLoansLoanIdTransactionsType.ts +model/getSelfLoansProductOptions.ts +model/getSelfLoansTemplateResponse.ts +model/getSelfLoansTimeline.ts +model/getSelfSavingsAccountsAccountIdChargesResponse.ts +model/getSelfSavingsAccountsAccountIdChargesSavingsAccountChargeIdResponse.ts +model/getSelfSavingsAccountsAccountIdTransactionsTransactionIdResponse.ts +model/getSelfSavingsAccountsResponse.ts +model/getSelfSavingsChargeCalculationType.ts +model/getSelfSavingsChargeTimeType.ts +model/getSelfSavingsCurrency.ts +model/getSelfSavingsInterestCalculationDaysInYearType.ts +model/getSelfSavingsInterestCalculationType.ts +model/getSelfSavingsInterestCompoundingPeriodType.ts +model/getSelfSavingsInterestPostingPeriodType.ts +model/getSelfSavingsPaymentDetailData.ts +model/getSelfSavingsPaymentType.ts +model/getSelfSavingsStatus.ts +model/getSelfSavingsSummary.ts +model/getSelfSavingsTimeline.ts +model/getSelfSavingsTransactionCurrency.ts +model/getSelfSavingsTransactionType.ts +model/getSelfUserDetailsOrganisationalRole.ts +model/getSelfUserDetailsResponse.ts +model/getSelfUserDetailsRoles.ts +model/getShareAccountsChargeAppliesTo.ts +model/getShareAccountsChargeCalculationType.ts +model/getShareAccountsChargeOptions.ts +model/getShareAccountsChargePaymentMode.ts +model/getShareAccountsChargeTimeType.ts +model/getShareAccountsClientIdProductIdAccountingRule.ts +model/getShareAccountsClientIdProductIdLockPeriodTypeEnum.ts +model/getShareAccountsClientIdProductIdMinimumActivePeriodForDividendsTypeEnum.ts +model/getShareAccountsClientIdProductIdResponse.ts +model/getShareAccountsCurrency.ts +model/getShareAccountsIncomeFromFeeAccountId.ts +model/getShareAccountsShareEquityId.ts +model/getShareAccountsShareReferenceId.ts +model/getShareAccountsShareSuspenseId.ts +model/getShareEquityId.ts +model/getShareReferenceId.ts +model/getShareSuspenseId.ts +model/getStandingInstructionHistoryFromAccount.ts +model/getStandingInstructionHistoryPageItemsFromClient.ts +model/getStandingInstructionHistoryPageItemsResponse.ts +model/getStandingInstructionHistoryToAccount.ts +model/getStandingInstructionHistoryToClient.ts +model/getStandingInstructionRunHistoryResponse.ts +model/getStandingInstructionsResponse.ts +model/getStandingInstructionsStandingInstructionIdResponse.ts +model/getStandingInstructionsTemplateResponse.ts +model/getStatusOptionsResponseStandingInstructionSwagger.ts +model/getStatusStandingInstructionSwagger.ts +model/getSurveyResponse.ts +model/getSurveyResponseDatatableData.ts +model/getTaxesComponentsCreditAccount.ts +model/getTaxesComponentsCreditAccountType.ts +model/getTaxesComponentsResponse.ts +model/getTaxesGroupResponse.ts +model/getTaxesGroupTaxAssociations.ts +model/getTaxesGroupTaxComponent.ts +model/getTellersResponse.ts +model/getTellersTellerIdCashiersCashierIdResponse.ts +model/getTellersTellerIdCashiersCashiersIdSummaryAndTransactionsResponse.ts +model/getTellersTellerIdCashiersCashiersIdTransactionsResponse.ts +model/getTellersTellerIdCashiersCashiersIdTransactionsTemplateResponse.ts +model/getTellersTellerIdCashiersResponse.ts +model/getTellersTellerIdCashiersTemplateResponse.ts +model/getTemplatesResponse.ts +model/getTemplatesTemplateIdResponse.ts +model/getTemplatesTemplateResponse.ts +model/getToAccountStandingInstructionSwagger.ts +model/getToAccountTypeOptionsResponseStandingInstructionSwagger.ts +model/getToAccountTypeStandingInstructionSwagger.ts +model/getToClientStandingInstructionSwagger.ts +model/getToOfficeOptionsResponseStandingInstructionSwagger.ts +model/getToOfficeStandingInstructionSwagger.ts +model/getTransferTypeOptionsResponseStandingInstructionSwagger.ts +model/getTransferTypeStandingInstructionSwagger.ts +model/getUserDetailsResponse.ts +model/getUsersResponse.ts +model/getUsersTemplateResponse.ts +model/getUsersUserIdResponse.ts +model/getWorkingDaysResponse.ts +model/getWorkingDaysTemplateResponse.ts +model/globalConfigurationPropertyData.ts +model/grantedAuthority.ts +model/group.ts +model/groupGeneralData.ts +model/groupLevel.ts +model/groupLoanIndividualMonitoringAccount.ts +model/groupRoleData.ts +model/grouping.ts +model/header.ts +model/hookTemplateData.ts +model/idDocument.ts +model/image.ts +model/inlineJobRequest.ts +model/inlineJobResponse.ts +model/interopAccountData.ts +model/interopIdentifierAccountResponseData.ts +model/interopIdentifierRequestData.ts +model/interopIdentifiersResponseData.ts +model/interopKycResponseData.ts +model/interopQuoteRequestData.ts +model/interopQuoteResponseData.ts +model/interopTransactionRequestData.ts +model/interopTransactionRequestResponseData.ts +model/interopTransactionTypeData.ts +model/interopTransactionsData.ts +model/interopTransferRequestData.ts +model/interopTransferResponseData.ts +model/isCatchUpRunningResponse.ts +model/jobDetailHistoryData.ts +model/jobDetailHistoryDataSwagger.ts +model/jobParameterDTO.ts +model/journalEntryCommand.ts +model/journalEntryTransactionItem.ts +model/loan.ts +model/loanAccountLock.ts +model/loanCharge.ts +model/loanChargePaidBy.ts +model/loanCollateral.ts +model/loanCollateralManagement.ts +model/loanDisbursementDetails.ts +model/loanInstallmentCharge.ts +model/loanInterestRecalcualtionAdditionalDetails.ts +model/loanInterestRecalculationDetails.ts +model/loanOverdueInstallmentCharge.ts +model/loanProduct.ts +model/loanProductBorrowerCycleVariationData.ts +model/loanProductConfigurableAttributes.ts +model/loanProductData.ts +model/loanProductFloatingRates.ts +model/loanProductGuaranteeData.ts +model/loanProductGuaranteeDetails.ts +model/loanProductInterestRecalculationData.ts +model/loanProductInterestRecalculationDetails.ts +model/loanProductProvisioningEntryData.ts +model/loanProductRelatedDetail.ts +model/loanProductTrancheDetails.ts +model/loanRepaymentScheduleInstallment.ts +model/loanSummary.ts +model/loanTermTypeOptions.ts +model/loanTermVariations.ts +model/loanTermVariationsData.ts +model/loanTopupDetails.ts +model/loanTrancheDisbursementCharge.ts +model/loanTransaction.ts +model/loanTransactionRelation.ts +model/loanTransactionToRepaymentScheduleMapping.ts +model/localTime.ts +model/lookupTableData.ts +model/lookupTableEntry.ts +model/models.ts +model/monetaryCurrency.ts +model/money.ts +model/moneyData.ts +model/multiPart.ts +model/office.ts +model/officeData.ts +model/pageCashierTransactionData.ts +model/parameterizedHeader.ts +model/paymentDetail.ts +model/paymentDetailData.ts +model/paymentType.ts +model/paymentTypeData.ts +model/paymentTypeToGLAccountMapper.ts +model/permission.ts +model/portfolioAccountData.ts +model/postAccountNumberFormatsRequest.ts +model/postAccountNumberFormatsResponse.ts +model/postAccountTransfersRefundByTransferRequest.ts +model/postAccountTransfersRefundByTransferResponse.ts +model/postAccountTransfersRequest.ts +model/postAccountTransfersResponse.ts +model/postAccountingRulesRequest.ts +model/postAccountingRulesResponse.ts +model/postAccountsCharges.ts +model/postAccountsRequestedShares.ts +model/postAccountsTypeAccountIdRequest.ts +model/postAccountsTypeAccountIdResponse.ts +model/postAccountsTypeRequest.ts +model/postAccountsTypeResponse.ts +model/postAdhocQuerySearchRequest.ts +model/postAdhocQuerySearchResponse.ts +model/postAuthenticationRequest.ts +model/postAuthenticationResponse.ts +model/postCentersCenterIdRequest.ts +model/postCentersCenterIdResponse.ts +model/postCentersRequest.ts +model/postCentersResponse.ts +model/postChargesRequest.ts +model/postChargesResponse.ts +model/postClientClientIdAddressesRequest.ts +model/postClientClientIdAddressesResponse.ts +model/postClientCollateralRequest.ts +model/postClientCollateralResponse.ts +model/postClientsAddressRequest.ts +model/postClientsClientIdChargesChargeIdRequest.ts +model/postClientsClientIdChargesChargeIdResponse.ts +model/postClientsClientIdChargesRequest.ts +model/postClientsClientIdChargesResponse.ts +model/postClientsClientIdIdentifiersRequest.ts +model/postClientsClientIdIdentifiersResponse.ts +model/postClientsClientIdRequest.ts +model/postClientsClientIdResponse.ts +model/postClientsClientIdTransactionsTransactionIdResponse.ts +model/postClientsDatatable.ts +model/postClientsRequest.ts +model/postClientsResponse.ts +model/postCodeValueDataResponse.ts +model/postCodeValuesDataRequest.ts +model/postCodesRequest.ts +model/postCodesResponse.ts +model/postCollateralManagementProductRequest.ts +model/postCollateralManagementProductResponse.ts +model/postCollectionSheetBulkRepaymentTransactions.ts +model/postCollectionSheetChanges.ts +model/postCollectionSheetRequest.ts +model/postCollectionSheetResponse.ts +model/postColumnHeaderData.ts +model/postCreateRescheduleLoansResponse.ts +model/postDataTablesAppTableIdResponse.ts +model/postDataTablesRequest.ts +model/postDataTablesResponse.ts +model/postDatedChecks.ts +model/postDelinquencyBucketRequest.ts +model/postDelinquencyBucketResponse.ts +model/postDelinquencyRangeRequest.ts +model/postDelinquencyRangeResponse.ts +model/postEntityDatatableChecksTemplateRequest.ts +model/postEntityDatatableChecksTemplateResponse.ts +model/postEntityTypeEntityIdDocumentsResponse.ts +model/postFinancialActivityAccountsRequest.ts +model/postFinancialActivityAccountsResponse.ts +model/postFixedDepositAccountsAccountIdResponse.ts +model/postFixedDepositAccountsRequest.ts +model/postFixedDepositAccountsResponse.ts +model/postFixedDepositProductsChartSlabs.ts +model/postFixedDepositProductsCharts.ts +model/postFixedDepositProductsRequest.ts +model/postFixedDepositProductsResponse.ts +model/postFloatingRatesRatePeriods.ts +model/postFloatingRatesRequest.ts +model/postFloatingRatesResponse.ts +model/postFundsRequest.ts +model/postFundsResponse.ts +model/postGLAccountsRequest.ts +model/postGLAccountsResponse.ts +model/postGlClosuresRequest.ts +model/postGlClosuresResponse.ts +model/postGroupsGroupIdClients.ts +model/postGroupsGroupIdCommandUnassignStaffRequest.ts +model/postGroupsGroupIdCommandUnassignStaffResponse.ts +model/postGroupsGroupIdRequest.ts +model/postGroupsGroupIdResponse.ts +model/postGroupsRequest.ts +model/postGroupsResponse.ts +model/postHolidaysHolidayIdResponse.ts +model/postHolidaysRequest.ts +model/postHolidaysRequestOffices.ts +model/postHolidaysResponse.ts +model/postHookRequest.ts +model/postHookResponse.ts +model/postInterestRateChartsChartIdChartSlabsIncentives.ts +model/postInterestRateChartsChartIdChartSlabsRequest.ts +model/postInterestRateChartsChartIdChartSlabsResponse.ts +model/postInterestRateChartsRequest.ts +model/postInterestRateChartsResponse.ts +model/postJournalEntriesResponse.ts +model/postJournalEntriesTransactionIdRequest.ts +model/postJournalEntriesTransactionIdResponse.ts +model/postLinkDelinkAccountsToFromPocketResponse.ts +model/postLoanChanges.ts +model/postLoanProductsRequest.ts +model/postLoanProductsResponse.ts +model/postLoansDisbursementData.ts +model/postLoansLoanIdChanges.ts +model/postLoansLoanIdChargesChargeIdChanges.ts +model/postLoansLoanIdChargesChargeIdRequest.ts +model/postLoansLoanIdChargesChargeIdResponse.ts +model/postLoansLoanIdChargesRequest.ts +model/postLoansLoanIdChargesResponse.ts +model/postLoansLoanIdCollateralsRequest.ts +model/postLoansLoanIdCollateralsResponse.ts +model/postLoansLoanIdDisbursementData.ts +model/postLoansLoanIdRequest.ts +model/postLoansLoanIdResponse.ts +model/postLoansLoanIdScheduleResponse.ts +model/postLoansLoanIdStatus.ts +model/postLoansLoanIdTransactionsRequest.ts +model/postLoansLoanIdTransactionsResponse.ts +model/postLoansLoanIdTransactionsResponseChanges.ts +model/postLoansLoanIdTransactionsTransactionIdRequest.ts +model/postLoansRepaymentSchedulePeriods.ts +model/postLoansRequest.ts +model/postLoansResponse.ts +model/postMakerCheckersResponse.ts +model/postNewShareApplicationResponse.ts +model/postNewTransferResponse.ts +model/postOfficesRequest.ts +model/postOfficesResponse.ts +model/postPaymentTypesRequest.ts +model/postPaymentTypesResponse.ts +model/postProductsChargesSelected.ts +model/postProductsMarketPricePeriods.ts +model/postProductsTypeRequest.ts +model/postProductsTypeResponse.ts +model/postProvisioningCriteriaRequest.ts +model/postProvisioningCriteriaResponse.ts +model/postProvisioningEntriesRequest.ts +model/postProvisioningEntriesResponse.ts +model/postRecurringChanges.ts +model/postRecurringDepositAccountsAccountIdResponse.ts +model/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest.ts +model/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsResponse.ts +model/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse.ts +model/postRecurringDepositAccountsRequest.ts +model/postRecurringDepositAccountsResponse.ts +model/postRecurringDepositProductsChartSlabs.ts +model/postRecurringDepositProductsCharts.ts +model/postRecurringDepositProductsRequest.ts +model/postRecurringDepositProductsResponse.ts +model/postReportMailingJobsRequest.ts +model/postReportMailingJobsResponse.ts +model/postReportsResponse.ts +model/postRepostRequest.ts +model/postResourceTypeResourceIdNotesRequest.ts +model/postResourceTypeResourceIdNotesResponse.ts +model/postRolesRequest.ts +model/postRolesResponse.ts +model/postRolesRoleIdResponse.ts +model/postRunaccrualsRequest.ts +model/postSavingsAccountBulkReversalTransactionsRequest.ts +model/postSavingsAccountTransactionsRequest.ts +model/postSavingsAccountTransactionsResponse.ts +model/postSavingsAccountsAccountIdRequest.ts +model/postSavingsAccountsAccountIdResponse.ts +model/postSavingsAccountsRequest.ts +model/postSavingsAccountsResponse.ts +model/postSavingsAccountsSavingsAccountIdChargesRequest.ts +model/postSavingsAccountsSavingsAccountIdChargesResponse.ts +model/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest.ts +model/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts +model/postSavingsCharges.ts +model/postSavingsProductsRequest.ts +model/postSavingsProductsResponse.ts +model/postSelfAuthenticationResponse.ts +model/postSelfBeneficiariesTPTRequest.ts +model/postSelfBeneficiariesTPTResponse.ts +model/postSelfLoansData.ts +model/postSelfLoansDatatables.ts +model/postSelfLoansDisbursementData.ts +model/postSelfLoansLoanIdChanges.ts +model/postSelfLoansLoanIdRequest.ts +model/postSelfLoansLoanIdResponse.ts +model/postSelfLoansLoanIdStatus.ts +model/postSelfLoansRequest.ts +model/postSelfLoansResponse.ts +model/postStaffRequest.ts +model/postStandingInstructionsRequest.ts +model/postStandingInstructionsResponse.ts +model/postSurveySurveyNameApptableIdRequest.ts +model/postSurveySurveyNameApptableIdResponse.ts +model/postTaxesComponentsRequest.ts +model/postTaxesComponentsResponse.ts +model/postTaxesGroupRequest.ts +model/postTaxesGroupResponse.ts +model/postTaxesGroupTaxComponents.ts +model/postTellersRequest.ts +model/postTellersResponse.ts +model/postTellersTellerIdCashiersCashierIdAllocateRequest.ts +model/postTellersTellerIdCashiersCashierIdAllocateResponse.ts +model/postTellersTellerIdCashiersCashierIdSettleRequest.ts +model/postTellersTellerIdCashiersCashierIdSettleResponse.ts +model/postTellersTellerIdCashiersRequest.ts +model/postTellersTellerIdCashiersResponse.ts +model/postTemplatesRequest.ts +model/postTemplatesResponse.ts +model/postUpdateRescheduleLoanChanges.ts +model/postUpdateRescheduleLoansResponse.ts +model/postUsersRequest.ts +model/postUsersResponse.ts +model/postalAddress.ts +model/processingResultLookup.ts +model/provisioningCriteriaDefinitionData.ts +model/provisioningEntryData.ts +model/putAccountNumberFormatsRequest.ts +model/putAccountNumberFormatsResponse.ts +model/putAccountNumberFormatschangesSwagger.ts +model/putAccountingRulesRequest.ts +model/putAccountingRulesResponse.ts +model/putAccountingRulesResponsechangesSwagger.ts +model/putAccountsChanges.ts +model/putAccountsTypeAccountIdRequest.ts +model/putAccountsTypeAccountIdResponse.ts +model/putCachechangesSwagger.ts +model/putCachesRequest.ts +model/putCachesResponse.ts +model/putCentersCenterIdRequest.ts +model/putCentersCenterIdResponse.ts +model/putCentersChanges.ts +model/putChargeTransactionChangesRequest.ts +model/putChargeTransactionChangesResponse.ts +model/putChargeTransactionChangesResponseChanges.ts +model/putChargesChargeIdRequest.ts +model/putChargesChargeIdResponse.ts +model/putClientClientIdAddressesRequest.ts +model/putClientClientIdAddressesResponse.ts +model/putClientCollateralRequest.ts +model/putClientCollateralResponse.ts +model/putClientsClientIdIdentifiersIdentifierIdRequest.ts +model/putClientsClientIdIdentifiersIdentifierIdResponse.ts +model/putClientsClientIdRequest.ts +model/putClientsClientIdResponse.ts +model/putCodeValueDataResponse.ts +model/putCodeValuechangesSwagger.ts +model/putCodeValuesDataRequest.ts +model/putCodesApichangesSwagger.ts +model/putCodesRequest.ts +model/putCodesResponse.ts +model/putCollateralProductRequest.ts +model/putCollateralProductResponse.ts +model/putCurrenciesRequest.ts +model/putCurrenciesResponse.ts +model/putDataTablesAppTableIdDatatableIdResponse.ts +model/putDataTablesAppTableIdResponse.ts +model/putDataTablesRequest.ts +model/putDataTablesRequestAddColumns.ts +model/putDataTablesRequestChangeColumns.ts +model/putDataTablesRequestDropColumns.ts +model/putDataTablesResponse.ts +model/putDelinquencyBucketResponse.ts +model/putDelinquencyRangeResponse.ts +model/putEntityTypeEntityIdDocumentsResponse.ts +model/putExternalEventConfigurationsRequest.ts +model/putExternalServiceRequest.ts +model/putFinancialActivityAccountsResponse.ts +model/putFinancialActivityAccountscommentsSwagger.ts +model/putFixedDepositAccountsAccountIdRequest.ts +model/putFixedDepositAccountsAccountIdResponse.ts +model/putFixedDepositAccountsChanges.ts +model/putFixedDepositProductsChanges.ts +model/putFixedDepositProductsProductIdRequest.ts +model/putFixedDepositProductsProductIdResponse.ts +model/putFloatingRatesChanges.ts +model/putFloatingRatesFloatingRateIdRequest.ts +model/putFloatingRatesFloatingRateIdResponse.ts +model/putFundsFundIdRequest.ts +model/putFundsFundIdResponse.ts +model/putGLAccountsRequest.ts +model/putGLAccountsResponse.ts +model/putGLAccountsResponsechangesSwagger.ts +model/putGlClosuresRequest.ts +model/putGlClosuresResponse.ts +model/putGlobalConfigurationsRequest.ts +model/putGlobalConfigurationsResponse.ts +model/putGlobalConfigurationsResponsechangesSwagger.ts +model/putGroupsGroupIdChanges.ts +model/putGroupsGroupIdRequest.ts +model/putGroupsGroupIdResponse.ts +model/putHolidaysHolidayIdRequest.ts +model/putHolidaysHolidayIdResponse.ts +model/putHolidaysHolidayIdResponseChanges.ts +model/putHookRequest.ts +model/putHookResponse.ts +model/putHookResponseChangesSwagger.ts +model/putInterestRateChartsChartIdChartSlabsChartSlabIdRequest.ts +model/putInterestRateChartsChartIdChartSlabsChartSlabIdResponse.ts +model/putInterestRateChartsChartIdRequest.ts +model/putInterestRateChartsChartIdResponse.ts +model/putJobsJobIDRequest.ts +model/putLoanChanges.ts +model/putLoanProductsProductIdRequest.ts +model/putLoanProductsProductIdResponse.ts +model/putLoansLoanIdChanges.ts +model/putLoansLoanIdChargesChargeIdRequest.ts +model/putLoansLoanIdChargesChargeIdResponse.ts +model/putLoansLoanIdCollateral.ts +model/putLoansLoanIdCollateralsCollateralIdResponse.ts +model/putLoansLoanIdDisbursementData.ts +model/putLoansLoanIdRequest.ts +model/putLoansLoanIdResponse.ts +model/putLoansLoandIdCollateralsCollateralIdRequest.ts +model/putNotesChanges.ts +model/putOfficesOfficeIdRequest.ts +model/putOfficesOfficeIdResponse.ts +model/putOfficesOfficeIdResponseChanges.ts +model/putPasswordPreferencesTemplateRequest.ts +model/putPaymentTypesPaymentTypeIdRequest.ts +model/putPaymentTypesPaymentTypeIdResponse.ts +model/putPermissionsRequest.ts +model/putProductsChanges.ts +model/putProductsTypeProductIdRequest.ts +model/putProductsTypeProductIdResponse.ts +model/putProvisioningCriteriaRequest.ts +model/putProvisioningCriteriaResponse.ts +model/putProvisioningCriteriaResponseChanges.ts +model/putProvisioningEntriesRequest.ts +model/putProvisioningEntriesResponse.ts +model/putRecurringDepositAccountsAccountIdRequest.ts +model/putRecurringDepositAccountsAccountIdResponse.ts +model/putRecurringDepositAccountsChanges.ts +model/putRecurringDepositProductsChanges.ts +model/putRecurringDepositProductsRequest.ts +model/putRecurringDepositProductsResponse.ts +model/putReportMailingJobsRequest.ts +model/putReportMailingJobsResponse.ts +model/putReportMailingJobsResponseChanges.ts +model/putReportRequest.ts +model/putReportResponse.ts +model/putReportResponseChanges.ts +model/putResourceTypeResourceIdNotesNoteIdRequest.ts +model/putResourceTypeResourceIdNotesNoteIdResponse.ts +model/putRolesRoleIdPermissionsRequest.ts +model/putRolesRoleIdPermissionsResponse.ts +model/putRolesRoleIdPermissionsResponsePermissionsChanges.ts +model/putRolesRoleIdRequest.ts +model/putRolesRoleIdResponse.ts +model/putRolesRoleIdResponseChanges.ts +model/putSavingsAccountsAccountIdRequest.ts +model/putSavingsAccountsAccountIdResponse.ts +model/putSavingsAccountsChanges.ts +model/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest.ts +model/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts +model/putSavingsChanges.ts +model/putSavingsProductsProductIdRequest.ts +model/putSavingsProductsProductIdResponse.ts +model/putSelfBeneficiariesChanges.ts +model/putSelfBeneficiariesTPTBeneficiaryIdRequest.ts +model/putSelfBeneficiariesTPTBeneficiaryIdResponse.ts +model/putSelfLoansChanges.ts +model/putSelfLoansLoanIdRequest.ts +model/putSelfLoansLoanIdResponse.ts +model/putSelfUserChanges.ts +model/putSelfUserRequest.ts +model/putSelfUserResponse.ts +model/putStaffRequest.ts +model/putStandingInstructionsStandingInstructionIdRequest.ts +model/putStandingInstructionsStandingInstructionIdResponse.ts +model/putTaxesComponentsChanges.ts +model/putTaxesComponentsTaxComponentIdRequest.ts +model/putTaxesComponentsTaxComponentIdResponse.ts +model/putTaxesGroupChanges.ts +model/putTaxesGroupModifiedComponents.ts +model/putTaxesGroupTaxComponents.ts +model/putTaxesGroupTaxGroupIdRequest.ts +model/putTaxesGroupTaxGroupIdResponse.ts +model/putTellersRequest.ts +model/putTellersResponse.ts +model/putTellersResponseChanges.ts +model/putTellersTellerIdCashiersCashierIdRequest.ts +model/putTellersTellerIdCashiersCashierIdResponse.ts +model/putTellersTellerIdCashiersCashierIdResponseChanges.ts +model/putTemplatesTemplateIdRequest.ts +model/putTemplatesTemplateIdResponse.ts +model/putUpdateStandingInstructionChanges.ts +model/putUsersUserIdRequest.ts +model/putUsersUserIdResponse.ts +model/putUsersUserIdResponseChanges.ts +model/putWorkingDaysRequest.ts +model/putWorkingDaysResponse.ts +model/question.ts +model/questionData.ts +model/rate.ts +model/rateData.ts +model/reportExportType.ts +model/reportMailingJobRunHistoryData.ts +model/reportMailingJobTimelineData.ts +model/rescheduleReasonsCodeValue.ts +model/rescheduleReasonsTimeline.ts +model/response.ts +model/responseData.ts +model/resultsetColumnHeaderData.ts +model/resultsetRowData.ts +model/retrieveOneResponse.ts +model/role.ts +model/roleData.ts +model/runReportsResponse.ts +model/savingsAccountApplicationTimelineData.ts +model/savingsAccountChargeData.ts +model/savingsAccountChargesPaidByData.ts +model/savingsAccountData.ts +model/savingsAccountStatusEnumData.ts +model/savingsAccountSubStatusEnumData.ts +model/savingsAccountSummaryData.ts +model/savingsAccountTransactionData.ts +model/savingsAccountTransactionEnumData.ts +model/savingsProductData.ts +model/scorecard.ts +model/scorecardData.ts +model/scorecardValue.ts +model/singleDebitOrCreditEntryCommand.ts +model/smsCampaignData.ts +model/staff.ts +model/staffData.ts +model/subjectName.ts +model/survey.ts +model/surveyData.ts +model/taxComponent.ts +model/taxComponentData.ts +model/taxComponentHistory.ts +model/taxComponentHistoryData.ts +model/taxDetailsData.ts +model/taxGroup.ts +model/taxGroupData.ts +model/taxGroupMappings.ts +model/taxGroupMappingsData.ts +model/templateMapper.ts +model/transactionDetails.ts +model/transactionProcessingStrategyData.ts +model/updateBusinessStepConfigRequest.ts +model/updateChangesResponse.ts +model/updatePostDatedCheckRequest.ts +model/updatePostDatedCheckResponse.ts +model/updateStaffResponse.ts +param.ts +variables.ts diff --git a/packages/fineract-client/src/.openapi-generator/VERSION b/packages/fineract-client/src/.openapi-generator/VERSION new file mode 100644 index 0000000000..cd802a1ec4 --- /dev/null +++ b/packages/fineract-client/src/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/fineract-client/src/api.module.ts b/packages/fineract-client/src/api.module.ts new file mode 100644 index 0000000000..58d341fbd2 --- /dev/null +++ b/packages/fineract-client/src/api.module.ts @@ -0,0 +1,30 @@ +import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core'; +import { Configuration } from './configuration'; +import { HttpClient } from '@angular/common/http'; + + +@NgModule({ + imports: [], + declarations: [], + exports: [], + providers: [] +}) +export class ApiModule { + public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders { + return { + ngModule: ApiModule, + providers: [ { provide: Configuration, useFactory: configurationFactory } ] + }; + } + + constructor( @Optional() @SkipSelf() parentModule: ApiModule, + @Optional() http: HttpClient) { + if (parentModule) { + throw new Error('ApiModule is already loaded. Import in your base AppModule only.'); + } + if (!http) { + throw new Error('You need to import the HttpClientModule in your AppModule! \n' + + 'See also https://github.com/angular/angular/issues/20575'); + } + } +} diff --git a/packages/fineract-client/src/configuration.ts b/packages/fineract-client/src/configuration.ts new file mode 100644 index 0000000000..6acaf4a1d6 --- /dev/null +++ b/packages/fineract-client/src/configuration.ts @@ -0,0 +1,186 @@ +import { HttpParameterCodec } from '@angular/common/http'; +import { Param } from './param'; + +export interface ConfigurationParameters { + /** + * @deprecated Since 5.0. Use credentials instead + */ + apiKeys?: {[ key: string ]: string}; + username?: string; + password?: string; + /** + * @deprecated Since 5.0. Use credentials instead + */ + accessToken?: string | (() => string); + basePath?: string; + withCredentials?: boolean; + /** + * Takes care of encoding query- and form-parameters. + */ + encoder?: HttpParameterCodec; + /** + * Override the default method for encoding path parameters in various + * styles. + *

+ * See {@link README.md} for more details + *

+ */ + encodeParam?: (param: Param) => string; + /** + * The keys are the names in the securitySchemes section of the OpenAPI + * document. They should map to the value used for authentication + * minus any standard prefixes such as 'Basic' or 'Bearer'. + */ + credentials?: {[ key: string ]: string | (() => string | undefined)}; +} + +export class Configuration { + /** + * @deprecated Since 5.0. Use credentials instead + */ + apiKeys?: {[ key: string ]: string}; + username?: string; + password?: string; + /** + * @deprecated Since 5.0. Use credentials instead + */ + accessToken?: string | (() => string); + basePath?: string; + withCredentials?: boolean; + /** + * Takes care of encoding query- and form-parameters. + */ + encoder?: HttpParameterCodec; + /** + * Encoding of various path parameter + * styles. + *

+ * See {@link README.md} for more details + *

+ */ + encodeParam: (param: Param) => string; + /** + * The keys are the names in the securitySchemes section of the OpenAPI + * document. They should map to the value used for authentication + * minus any standard prefixes such as 'Basic' or 'Bearer'. + */ + credentials: {[ key: string ]: string | (() => string | undefined)}; + + constructor(configurationParameters: ConfigurationParameters = {}) { + this.apiKeys = configurationParameters.apiKeys; + this.username = configurationParameters.username; + this.password = configurationParameters.password; + this.accessToken = configurationParameters.accessToken; + this.basePath = configurationParameters.basePath; + this.withCredentials = configurationParameters.withCredentials; + this.encoder = configurationParameters.encoder; + if (configurationParameters.encodeParam) { + this.encodeParam = configurationParameters.encodeParam; + } + else { + this.encodeParam = param => this.defaultEncodeParam(param); + } + if (configurationParameters.credentials) { + this.credentials = configurationParameters.credentials; + } + else { + this.credentials = {}; + } + + // init default basicAuth credential + if (!this.credentials['basicAuth']) { + this.credentials['basicAuth'] = () => { + return (this.username || this.password) + ? btoa(this.username + ':' + this.password) + : undefined; + }; + } + + // init default tenantid credential + if (!this.credentials['tenantid']) { + this.credentials['tenantid'] = () => { + if (this.apiKeys === null || this.apiKeys === undefined) { + return undefined; + } else { + return this.apiKeys['tenantid'] || this.apiKeys['fineract-platform-tenantid']; + } + }; + } + } + + /** + * Select the correct content-type to use for a request. + * Uses {@link Configuration#isJsonMime} to determine the correct content-type. + * If no content type is found return the first found type if the contentTypes is not empty + * @param contentTypes - the array of content types that are available for selection + * @returns the selected content-type or undefined if no selection could be made. + */ + public selectHeaderContentType (contentTypes: string[]): string | undefined { + if (contentTypes.length === 0) { + return undefined; + } + + const type = contentTypes.find((x: string) => this.isJsonMime(x)); + if (type === undefined) { + return contentTypes[0]; + } + return type; + } + + /** + * Select the correct accept content-type to use for a request. + * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type. + * If no content type is found return the first found type if the contentTypes is not empty + * @param accepts - the array of content types that are available for selection. + * @returns the selected content-type or undefined if no selection could be made. + */ + public selectHeaderAccept(accepts: string[]): string | undefined { + if (accepts.length === 0) { + return undefined; + } + + const type = accepts.find((x: string) => this.isJsonMime(x)); + if (type === undefined) { + return accepts[0]; + } + return type; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } + + public lookupCredential(key: string): string | undefined { + const value = this.credentials[key]; + return typeof value === 'function' + ? value() + : value; + } + + private defaultEncodeParam(param: Param): string { + // This implementation exists as fallback for missing configuration + // and for backwards compatibility to older typescript-angular generator versions. + // It only works for the 'simple' parameter style. + // Date-handling only works for the 'date-time' format. + // All other styles and Date-formats are probably handled incorrectly. + // + // But: if that's all you need (i.e.: the most common use-case): no need for customization! + + const value = param.dataFormat === 'date-time' && param.value instanceof Date + ? (param.value as Date).toISOString() + : param.value; + + return encodeURIComponent(String(value)); + } +} diff --git a/packages/fineract-client/src/encoder.ts b/packages/fineract-client/src/encoder.ts new file mode 100644 index 0000000000..138c4d5cf2 --- /dev/null +++ b/packages/fineract-client/src/encoder.ts @@ -0,0 +1,20 @@ +import { HttpParameterCodec } from '@angular/common/http'; + +/** + * Custom HttpParameterCodec + * Workaround for https://github.com/angular/angular/issues/18261 + */ +export class CustomHttpParameterCodec implements HttpParameterCodec { + encodeKey(k: string): string { + return encodeURIComponent(k); + } + encodeValue(v: string): string { + return encodeURIComponent(v); + } + decodeKey(k: string): string { + return decodeURIComponent(k); + } + decodeValue(v: string): string { + return decodeURIComponent(v); + } +} diff --git a/packages/fineract-client/src/index.ts b/packages/fineract-client/src/index.ts new file mode 100644 index 0000000000..68d342fd75 --- /dev/null +++ b/packages/fineract-client/src/index.ts @@ -0,0 +1,6 @@ +export * from './services/api'; +export * from './models/models'; +export * from './variables'; +export * from './configuration'; +export * from './api.module'; +export * from './param'; diff --git a/packages/fineract-client/src/models/accountTransferData.ts b/packages/fineract-client/src/models/accountTransferData.ts new file mode 100644 index 0000000000..026baeea60 --- /dev/null +++ b/packages/fineract-client/src/models/accountTransferData.ts @@ -0,0 +1,43 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PortfolioAccountData } from './portfolioAccountData'; +import { CurrencyData } from './currencyData'; +import { ClientData } from './clientData'; +import { OfficeData } from './officeData'; +import { EnumOptionData } from './enumOptionData'; + + +export interface AccountTransferData { + currency?: CurrencyData; + fromAccount?: PortfolioAccountData; + fromAccountOptions?: Array; + fromAccountType?: EnumOptionData; + fromAccountTypeOptions?: Array; + fromClient?: ClientData; + fromClientOptions?: Array; + fromOffice?: OfficeData; + fromOfficeOptions?: Array; + id?: number; + reversed?: boolean; + toAccount?: PortfolioAccountData; + toAccountOptions?: Array; + toAccountType?: EnumOptionData; + toAccountTypeOptions?: Array; + toClient?: ClientData; + toClientOptions?: Array; + toOffice?: OfficeData; + toOfficeOptions?: Array; + transferAmount?: number; + transferDate?: string; + transferDescription?: string; +} + diff --git a/packages/fineract-client/src/models/accountingRuleData.ts b/packages/fineract-client/src/models/accountingRuleData.ts new file mode 100644 index 0000000000..8a93df6117 --- /dev/null +++ b/packages/fineract-client/src/models/accountingRuleData.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GLAccountDataForLookup } from './gLAccountDataForLookup'; +import { GLAccountData } from './gLAccountData'; +import { OfficeData } from './officeData'; +import { CodeValueData } from './codeValueData'; +import { AccountingTagRuleData } from './accountingTagRuleData'; + + +export interface AccountingRuleData { + allowMultipleCreditEntries?: boolean; + allowMultipleDebitEntries?: boolean; + allowedAccounts?: Array; + allowedCreditTagOptions?: Array; + allowedDebitTagOptions?: Array; + allowedOffices?: Array; + creditAccounts?: Array; + creditTags?: Array; + debitAccounts?: Array; + debitTags?: Array; + description?: string; + id?: number; + name?: string; + officeId?: number; + officeName?: string; + systemDefined?: boolean; +} + diff --git a/packages/fineract-client/src/models/accountingTagRuleData.ts b/packages/fineract-client/src/models/accountingTagRuleData.ts new file mode 100644 index 0000000000..fb1fa13fb8 --- /dev/null +++ b/packages/fineract-client/src/models/accountingTagRuleData.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CodeValueData } from './codeValueData'; +import { EnumOptionData } from './enumOptionData'; + + +export interface AccountingTagRuleData { + id?: number; + tag?: CodeValueData; + transactionType?: EnumOptionData; +} + diff --git a/packages/fineract-client/src/models/allowAttributeOverrides.ts b/packages/fineract-client/src/models/allowAttributeOverrides.ts new file mode 100644 index 0000000000..1b74aee552 --- /dev/null +++ b/packages/fineract-client/src/models/allowAttributeOverrides.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface AllowAttributeOverrides { + amortizationType?: boolean; + graceOnArrearsAgeing?: boolean; + graceOnPrincipalAndInterestPayment?: boolean; + inArrearsTolerance?: boolean; + interestCalculationPeriodType?: boolean; + interestType?: boolean; + repaymentEvery?: boolean; + transactionProcessingStrategyCode?: boolean; +} + diff --git a/packages/fineract-client/src/models/appUser.ts b/packages/fineract-client/src/models/appUser.ts new file mode 100644 index 0000000000..4bac8f2dc9 --- /dev/null +++ b/packages/fineract-client/src/models/appUser.ts @@ -0,0 +1,47 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Office } from './office'; +import { Role } from './role'; +import { GrantedAuthority } from './grantedAuthority'; +import { Staff } from './staff'; +import { AppUserClientMapping } from './appUserClientMapping'; + + +export interface AppUser { + accountNonExpired?: boolean; + accountNonLocked?: boolean; + appUserClientMappings?: Set; + authorities?: Array; + bypassUser?: boolean; + credentialsNonExpired?: boolean; + deleted?: boolean; + displayName?: string; + email?: string; + enabled?: boolean; + firstname?: string; + id?: number; + lastTimePasswordUpdated?: string; + lastname?: string; + _new?: boolean; + notEnabled?: boolean; + office?: Office; + password?: string; + passwordNeverExpires?: boolean; + roles?: Set; + selfServiceUser?: boolean; + staff?: Staff; + staffDisplayName?: string; + staffId?: number; + systemUser?: boolean; + username?: string; +} + diff --git a/packages/fineract-client/src/models/appUserClientMapping.ts b/packages/fineract-client/src/models/appUserClientMapping.ts new file mode 100644 index 0000000000..1fec9deb2c --- /dev/null +++ b/packages/fineract-client/src/models/appUserClientMapping.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { AppUser } from './appUser'; +import { Client } from './client'; + + +export interface AppUserClientMapping { + appUser?: AppUser; + client?: Client; + id?: number; + _new?: boolean; +} + diff --git a/packages/fineract-client/src/models/appUserData.ts b/packages/fineract-client/src/models/appUserData.ts new file mode 100644 index 0000000000..b38c085fec --- /dev/null +++ b/packages/fineract-client/src/models/appUserData.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ClientData } from './clientData'; + + +export interface AppUserData { + clients?: Set; + rowIndex?: number; + selfServiceUser?: boolean; +} + diff --git a/packages/fineract-client/src/models/batchRequest.ts b/packages/fineract-client/src/models/batchRequest.ts new file mode 100644 index 0000000000..95fdac01ea --- /dev/null +++ b/packages/fineract-client/src/models/batchRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Header } from './header'; + + +export interface BatchRequest { + body?: string; + headers?: Set
; + method?: string; + reference?: number; + relativeUrl?: string; + requestId?: number; +} + diff --git a/packages/fineract-client/src/models/batchResponse.ts b/packages/fineract-client/src/models/batchResponse.ts new file mode 100644 index 0000000000..b0742631a8 --- /dev/null +++ b/packages/fineract-client/src/models/batchResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Header } from './header'; + + +export interface BatchResponse { + body?: string; + headers?: Set
; + requestId?: number; + statusCode?: number; +} + diff --git a/packages/fineract-client/src/models/bodyPart.ts b/packages/fineract-client/src/models/bodyPart.ts new file mode 100644 index 0000000000..4bbcf78964 --- /dev/null +++ b/packages/fineract-client/src/models/bodyPart.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { MultiPart } from './multiPart'; +import { ContentDisposition } from './contentDisposition'; +import { MediaType } from './mediaType'; +import { BodyPartParameterizedHeaders } from './bodyPartParameterizedHeaders'; +import { BodyPartHeaders } from './bodyPartHeaders'; + + +export interface BodyPart { + contentDisposition?: ContentDisposition; + entity?: object; + headers?: BodyPartHeaders; + mediaType?: MediaType; + messageBodyWorkers?: object; + parameterizedHeaders?: BodyPartParameterizedHeaders; + parent?: MultiPart; + providers?: object; +} + diff --git a/packages/fineract-client/src/models/bodyPartHeaders.ts b/packages/fineract-client/src/models/bodyPartHeaders.ts new file mode 100644 index 0000000000..b53ff3b208 --- /dev/null +++ b/packages/fineract-client/src/models/bodyPartHeaders.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface BodyPartHeaders { + [key: string]: Array | any; + + + empty?: boolean; +} + diff --git a/packages/fineract-client/src/models/bodyPartParameterizedHeaders.ts b/packages/fineract-client/src/models/bodyPartParameterizedHeaders.ts new file mode 100644 index 0000000000..31a6f359f9 --- /dev/null +++ b/packages/fineract-client/src/models/bodyPartParameterizedHeaders.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ParameterizedHeader } from './parameterizedHeader'; + + +export interface BodyPartParameterizedHeaders { + [key: string]: Array | any; + + + empty?: boolean; +} + diff --git a/packages/fineract-client/src/models/businessDateRequest.ts b/packages/fineract-client/src/models/businessDateRequest.ts new file mode 100644 index 0000000000..aafd595841 --- /dev/null +++ b/packages/fineract-client/src/models/businessDateRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * BusinessDateRequest + */ +export interface BusinessDateRequest { + date?: string; + dateFormat?: string; + locale?: string; + type?: string; +} + diff --git a/packages/fineract-client/src/models/businessDateResponse.ts b/packages/fineract-client/src/models/businessDateResponse.ts new file mode 100644 index 0000000000..8ef5de1987 --- /dev/null +++ b/packages/fineract-client/src/models/businessDateResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * BusinessDateResponse + */ +export interface BusinessDateResponse { + date?: string; + description?: string; + type?: string; +} + diff --git a/packages/fineract-client/src/models/businessStep.ts b/packages/fineract-client/src/models/businessStep.ts new file mode 100644 index 0000000000..1c75964276 --- /dev/null +++ b/packages/fineract-client/src/models/businessStep.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * BusinessStep + */ +export interface BusinessStep { + order?: number; + stepName?: string; +} + diff --git a/packages/fineract-client/src/models/calendarData.ts b/packages/fineract-client/src/models/calendarData.ts new file mode 100644 index 0000000000..a8801bd35e --- /dev/null +++ b/packages/fineract-client/src/models/calendarData.ts @@ -0,0 +1,61 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { LocalTime } from './localTime'; +import { EnumOptionData } from './enumOptionData'; + + +export interface CalendarData { + calendarInstanceId?: number; + calendarTypeOptions?: Array; + centerId?: string; + createdByUserId?: number; + createdByUsername?: string; + createdDate?: string; + dateFormat?: string; + description?: string; + duration?: number; + endDate?: string; + entityId?: number; + entityType?: EnumOptionData; + entityTypeOptions?: Array; + firstReminder?: number; + frequency?: EnumOptionData; + frequencyNthDayTypeOptions?: Array; + frequencyOptions?: Array; + humanReadable?: string; + id?: number; + interval?: number; + lastUpdatedByUserId?: number; + lastUpdatedByUsername?: string; + lastUpdatedDate?: string; + locale?: string; + location?: string; + meetingTime?: LocalTime; + nextTenRecurringDates?: Array; + recentEligibleMeetingDate?: string; + recurrence?: string; + recurringDates?: Array; + remindBy?: EnumOptionData; + remindByOptions?: Array; + repeating?: boolean; + repeatsOnDay?: EnumOptionData; + repeatsOnDayOfMonth?: number; + repeatsOnDayOptions?: Array; + repeatsOnNthDayOfMonth?: EnumOptionData; + rowIndex?: number; + secondReminder?: number; + startDate?: string; + title?: string; + type?: EnumOptionData; + typeId?: string; +} + diff --git a/packages/fineract-client/src/models/cashierData.ts b/packages/fineract-client/src/models/cashierData.ts new file mode 100644 index 0000000000..5cef6d425d --- /dev/null +++ b/packages/fineract-client/src/models/cashierData.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { StaffData } from './staffData'; + + +export interface CashierData { + description?: string; + endDate?: string; + endTime?: string; + id?: number; + isFullDay?: boolean; + officeId?: number; + officeName?: string; + staffId?: number; + staffName?: string; + staffOptions?: Array; + startDate?: string; + startTime?: string; + tellerId?: number; + tellerName?: string; +} + diff --git a/packages/fineract-client/src/models/cashierTransactionData.ts b/packages/fineract-client/src/models/cashierTransactionData.ts new file mode 100644 index 0000000000..0523eb9a47 --- /dev/null +++ b/packages/fineract-client/src/models/cashierTransactionData.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CashierTxnType } from './cashierTxnType'; +import { CurrencyData } from './currencyData'; +import { CashierData } from './cashierData'; + + +export interface CashierTransactionData { + cashierData?: CashierData; + cashierId?: number; + cashierName?: string; + createdDate?: string; + currencyOptions?: Array; + endDate?: string; + entityId?: number; + entityType?: string; + id?: number; + officeId?: number; + officeName?: string; + startDate?: string; + tellerId?: number; + tellerName?: string; + txnAmount?: number; + txnDate?: string; + txnNote?: string; + txnType?: CashierTxnType; +} + diff --git a/packages/fineract-client/src/models/cashierTxnType.ts b/packages/fineract-client/src/models/cashierTxnType.ts new file mode 100644 index 0000000000..9d524c04e8 --- /dev/null +++ b/packages/fineract-client/src/models/cashierTxnType.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface CashierTxnType { + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/centerData.ts b/packages/fineract-client/src/models/centerData.ts new file mode 100644 index 0000000000..f6a739aa3d --- /dev/null +++ b/packages/fineract-client/src/models/centerData.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CalendarData } from './calendarData'; +import { DatatableData } from './datatableData'; + + +export interface CenterData { + accountNo?: string; + collectionMeetingCalendar?: CalendarData; + datatables?: Array; + hierarchy?: string; + id?: number; + name?: string; + officeName?: string; + rowIndex?: number; + staffName?: string; +} + diff --git a/packages/fineract-client/src/models/changeInstanceModeRequest.ts b/packages/fineract-client/src/models/changeInstanceModeRequest.ts new file mode 100644 index 0000000000..8171f23ca8 --- /dev/null +++ b/packages/fineract-client/src/models/changeInstanceModeRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * ChangeInstanceModeRequest + */ +export interface ChangeInstanceModeRequest { + batchManagerEnabled: boolean; + batchWorkerEnabled: boolean; + readEnabled: boolean; + writeEnabled: boolean; +} + diff --git a/packages/fineract-client/src/models/charge.ts b/packages/fineract-client/src/models/charge.ts new file mode 100644 index 0000000000..828671de4c --- /dev/null +++ b/packages/fineract-client/src/models/charge.ts @@ -0,0 +1,58 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TaxGroup } from './taxGroup'; +import { GLAccount } from './gLAccount'; +import { PaymentType } from './paymentType'; +import { ChargeFeeOnMonthDay } from './chargeFeeOnMonthDay'; + + +export interface Charge { + account?: GLAccount; + active?: boolean; + allowedClientChargeCalculationType?: boolean; + allowedClientChargeTime?: boolean; + allowedLoanChargeTime?: boolean; + allowedSavingsChargeCalculationType?: boolean; + allowedSavingsChargeTime?: boolean; + amount?: number; + annualFee?: boolean; + chargeCalculation?: number; + chargePaymentMode?: number; + chargeTimeType?: number; + clientCharge?: boolean; + currencyCode?: string; + deleted?: boolean; + disbursementCharge?: boolean; + enableFreeWithdrawal?: boolean; + enablePaymentType?: boolean; + feeInterval?: number; + feeOnMonthDay?: ChargeFeeOnMonthDay; + frequencyFreeWithdrawalCharge?: number; + id?: number; + incomeAccountId?: number; + loanCharge?: boolean; + maxCap?: number; + minCap?: number; + monthlyFee?: boolean; + name?: string; + _new?: boolean; + overdueInstallment?: boolean; + paymentType?: PaymentType; + penalty?: boolean; + percentageOfApprovedAmount?: boolean; + percentageOfDisbursementAmount?: boolean; + restartFrequency?: number; + restartFrequencyEnum?: number; + savingsCharge?: boolean; + taxGroup?: TaxGroup; +} + diff --git a/packages/fineract-client/src/models/chargeData.ts b/packages/fineract-client/src/models/chargeData.ts new file mode 100644 index 0000000000..74b82f0f18 --- /dev/null +++ b/packages/fineract-client/src/models/chargeData.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ChargeData { + id?: number; +} + diff --git a/packages/fineract-client/src/models/chargeFeeOnMonthDay.ts b/packages/fineract-client/src/models/chargeFeeOnMonthDay.ts new file mode 100644 index 0000000000..e0376e81bd --- /dev/null +++ b/packages/fineract-client/src/models/chargeFeeOnMonthDay.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ChargeFeeOnMonthDay { + dayOfMonth?: number; + month?: ChargeFeeOnMonthDay.MonthEnum; + monthValue?: number; +} +export namespace ChargeFeeOnMonthDay { + export type MonthEnum = 'JANUARY' | 'FEBRUARY' | 'MARCH' | 'APRIL' | 'MAY' | 'JUNE' | 'JULY' | 'AUGUST' | 'SEPTEMBER' | 'OCTOBER' | 'NOVEMBER' | 'DECEMBER'; + export const MonthEnum = { + January: 'JANUARY' as MonthEnum, + February: 'FEBRUARY' as MonthEnum, + March: 'MARCH' as MonthEnum, + April: 'APRIL' as MonthEnum, + May: 'MAY' as MonthEnum, + June: 'JUNE' as MonthEnum, + July: 'JULY' as MonthEnum, + August: 'AUGUST' as MonthEnum, + September: 'SEPTEMBER' as MonthEnum, + October: 'OCTOBER' as MonthEnum, + November: 'NOVEMBER' as MonthEnum, + December: 'DECEMBER' as MonthEnum + }; +} + + diff --git a/packages/fineract-client/src/models/chargeToGLAccountMapper.ts b/packages/fineract-client/src/models/chargeToGLAccountMapper.ts new file mode 100644 index 0000000000..2f484f49f2 --- /dev/null +++ b/packages/fineract-client/src/models/chargeToGLAccountMapper.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GLAccountData } from './gLAccountData'; +import { ChargeData } from './chargeData'; + + +export interface ChargeToGLAccountMapper { + charge?: ChargeData; + incomeAccount?: GLAccountData; +} + diff --git a/packages/fineract-client/src/models/client.ts b/packages/fineract-client/src/models/client.ts new file mode 100644 index 0000000000..e57364464c --- /dev/null +++ b/packages/fineract-client/src/models/client.ts @@ -0,0 +1,85 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Office } from './office'; +import { Group } from './group'; +import { ExternalId } from './externalId'; +import { Staff } from './staff'; +import { CodeValue } from './codeValue'; +import { AppUser } from './appUser'; +import { Image } from './image'; + + +export interface Client { + accountNumber?: string; + accountNumberRequiresAutoGeneration?: boolean; + activatedBy?: AppUser; + activationDate?: string; + activationLocalDate?: string; + active?: boolean; + clientClassification?: CodeValue; + clientType?: CodeValue; + closed?: boolean; + closedBy?: AppUser; + closureDate?: string; + closureReason?: CodeValue; + createdBy?: number; + createdDate?: string; + dateOfBirth?: string; + displayName?: string; + emailAddress?: string; + externalId?: ExternalId; + firstname?: string; + fullname?: string; + gender?: CodeValue; + groups?: Set; + id?: number; + image?: Image; + lastModifiedBy?: number; + lastModifiedDate?: string; + lastname?: string; + legalForm?: number; + middlename?: string; + mobileNo?: string; + _new?: boolean; + notActive?: boolean; + notPending?: boolean; + notStaff?: boolean; + office?: Office; + officeJoiningDate?: string; + officeJoiningLocalDate?: string; + pending?: boolean; + proposedTransferDate?: string; + reactivateDate?: string; + reactivatedBy?: AppUser; + rejected?: boolean; + rejectedBy?: AppUser; + rejectedDate?: string; + rejectionDate?: string; + rejectionReason?: CodeValue; + reopenedBy?: AppUser; + reopenedDate?: string; + savingsAccountId?: number; + savingsProductId?: number; + staff?: Staff; + status?: number; + subStatus?: CodeValue; + submittedOnDate?: string; + transferInProgress?: boolean; + transferInProgressOrOnHold?: boolean; + transferOnHold?: boolean; + transferToOffice?: Office; + withdrawalDate?: string; + withdrawalReason?: CodeValue; + withdrawn?: boolean; + withdrawnBy?: AppUser; +} + diff --git a/packages/fineract-client/src/models/clientCollateralManagementData.ts b/packages/fineract-client/src/models/clientCollateralManagementData.ts new file mode 100644 index 0000000000..f2ab14a47b --- /dev/null +++ b/packages/fineract-client/src/models/clientCollateralManagementData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ClientCollateralManagementData { + id?: number; + name?: string; + pctToBase?: number; + quantity?: number; + total?: number; + totalCollateral?: number; + unitPrice?: number; +} + diff --git a/packages/fineract-client/src/models/clientData.ts b/packages/fineract-client/src/models/clientData.ts new file mode 100644 index 0000000000..9d094daed2 --- /dev/null +++ b/packages/fineract-client/src/models/clientData.ts @@ -0,0 +1,86 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ClientTimelineData } from './clientTimelineData'; +import { ClientCollateralManagementData } from './clientCollateralManagementData'; +import { GroupGeneralData } from './groupGeneralData'; +import { OfficeData } from './officeData'; +import { ClientFamilyMembersData } from './clientFamilyMembersData'; +import { SavingsAccountData } from './savingsAccountData'; +import { ExternalId } from './externalId'; +import { CodeValueData } from './codeValueData'; +import { DatatableData } from './datatableData'; +import { StaffData } from './staffData'; +import { EnumOptionData } from './enumOptionData'; +import { SavingsProductData } from './savingsProductData'; + + +export interface ClientData { + accountNo?: string; + activationDate?: string; + active?: boolean; + address?: Array; + clientClassification?: CodeValueData; + clientClassificationId?: number; + clientClassificationOptions?: Array; + clientCollateralManagements?: Set; + clientLegalFormOptions?: Array; + clientNonPersonConstitutionOptions?: Array; + clientNonPersonDetails?: object; + clientNonPersonMainBusinessLineOptions?: Array; + clientType?: CodeValueData; + clientTypeId?: number; + clientTypeOptions?: Array; + datatables?: Array; + dateFormat?: string; + dateOfBirth?: string; + displayName?: string; + emailAddress?: string; + externalId?: ExternalId; + familyMemberOptions?: ClientFamilyMembersData; + firstname?: string; + fullname?: string; + gender?: CodeValueData; + genderId?: number; + genderOptions?: Array; + groups?: Array; + id?: number; + imageId?: number; + imagePresent?: boolean; + isAddressEnabled?: boolean; + isStaff?: boolean; + lastname?: string; + legalForm?: EnumOptionData; + legalFormId?: number; + locale?: string; + middlename?: string; + mobileNo?: string; + narrations?: Array; + officeId?: number; + officeName?: string; + officeOptions?: Array; + rowIndex?: number; + savingAccountOptions?: Array; + savingProductOptions?: Array; + savingsAccountId?: number; + savingsProductId?: number; + savingsProductName?: string; + staffId?: number; + staffName?: string; + staffOptions?: Array; + status?: EnumOptionData; + subStatus?: CodeValueData; + submittedOnDate?: string; + timeline?: ClientTimelineData; + transferToOfficeId?: number; + transferToOfficeName?: string; +} + diff --git a/packages/fineract-client/src/models/clientFamilyMembersData.ts b/packages/fineract-client/src/models/clientFamilyMembersData.ts new file mode 100644 index 0000000000..001f52ba22 --- /dev/null +++ b/packages/fineract-client/src/models/clientFamilyMembersData.ts @@ -0,0 +1,34 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ClientFamilyMembersData { + age?: number; + clientId?: number; + dateOfBirth?: string; + firstName?: string; + gender?: string; + genderId?: number; + id?: number; + isDependent?: boolean; + lastName?: string; + maritalStatus?: string; + maritalStatusId?: number; + middleName?: string; + mobileNumber?: string; + profession?: string; + professionId?: number; + qualification?: string; + relationship?: string; + relationshipId?: number; +} + diff --git a/packages/fineract-client/src/models/clientSearchData.ts b/packages/fineract-client/src/models/clientSearchData.ts new file mode 100644 index 0000000000..9b0aeac1a7 --- /dev/null +++ b/packages/fineract-client/src/models/clientSearchData.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalId } from './externalId'; +import { EnumOptionData } from './enumOptionData'; + + +export interface ClientSearchData { + accountNumber?: string; + activationDate?: string; + createdDate?: string; + displayName?: string; + externalId?: ExternalId; + id?: number; + mobileNo?: string; + officeId?: number; + officeName?: string; + status?: EnumOptionData; +} + diff --git a/packages/fineract-client/src/models/clientTextSearch.ts b/packages/fineract-client/src/models/clientTextSearch.ts new file mode 100644 index 0000000000..17559b6b59 --- /dev/null +++ b/packages/fineract-client/src/models/clientTextSearch.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ClientTextSearch { + text?: string; +} + diff --git a/packages/fineract-client/src/models/clientTimelineData.ts b/packages/fineract-client/src/models/clientTimelineData.ts new file mode 100644 index 0000000000..2c380bae22 --- /dev/null +++ b/packages/fineract-client/src/models/clientTimelineData.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ClientTimelineData { + activatedByFirstname?: string; + activatedByLastname?: string; + activatedByUsername?: string; + activatedOnDate?: string; + closedByFirstname?: string; + closedByLastname?: string; + closedByUsername?: string; + closedOnDate?: string; + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/code.ts b/packages/fineract-client/src/models/code.ts new file mode 100644 index 0000000000..680b6504f6 --- /dev/null +++ b/packages/fineract-client/src/models/code.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CodeValue } from './codeValue'; + + +export interface Code { + id?: number; + name?: string; + _new?: boolean; + systemDefined?: boolean; + values?: Set; +} + diff --git a/packages/fineract-client/src/models/codeValue.ts b/packages/fineract-client/src/models/codeValue.ts new file mode 100644 index 0000000000..fadb0ba001 --- /dev/null +++ b/packages/fineract-client/src/models/codeValue.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Code } from './code'; + + +export interface CodeValue { + active?: boolean; + code?: Code; + description?: string; + id?: number; + label?: string; + mandatory?: boolean; + _new?: boolean; + position?: number; +} + diff --git a/packages/fineract-client/src/models/codeValueData.ts b/packages/fineract-client/src/models/codeValueData.ts new file mode 100644 index 0000000000..45369e8d5e --- /dev/null +++ b/packages/fineract-client/src/models/codeValueData.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface CodeValueData { + active?: boolean; + description?: string; + id?: number; + mandatory?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/commandProcessingResult.ts b/packages/fineract-client/src/models/commandProcessingResult.ts new file mode 100644 index 0000000000..9f6afd1738 --- /dev/null +++ b/packages/fineract-client/src/models/commandProcessingResult.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalId } from './externalId'; + + +export interface CommandProcessingResult { + changes?: { [key: string]: object; }; + clientId?: number; + commandId?: number; + creditBureauReportData?: { [key: string]: object; }; + glimId?: number; + groupId?: number; + gsimId?: number; + loanId?: number; + officeId?: number; + productId?: number; + resourceExternalId?: ExternalId; + resourceId?: number; + resourceIdentifier?: string; + rollbackTransaction?: boolean; + savingsId?: number; + subResourceExternalId?: ExternalId; + subResourceId?: number; + transactionId?: string; +} + diff --git a/packages/fineract-client/src/models/commandWrapper.ts b/packages/fineract-client/src/models/commandWrapper.ts new file mode 100644 index 0000000000..2b38c48c99 --- /dev/null +++ b/packages/fineract-client/src/models/commandWrapper.ts @@ -0,0 +1,58 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface CommandWrapper { + cacheResource?: boolean; + clientId?: number; + create?: boolean; + createDatatable?: boolean; + creditBureauId?: number; + currencyResource?: boolean; + datatableResource?: boolean; + _delete?: boolean; + deleteDatatable?: boolean; + deleteMultiple?: boolean; + deleteOneToOne?: boolean; + deleteOperation?: boolean; + entityId?: number; + entityName?: string; + fullFilSurvey?: boolean; + groupId?: number; + href?: string; + idempotencyKey?: string; + jobName?: string; + json?: string; + loanDisburseDetailResource?: boolean; + loanId?: number; + noteResource?: boolean; + organisationCreditBureauId?: number; + passwordPreferencesResource?: boolean; + permissionResource?: boolean; + productId?: number; + registerDatatable?: boolean; + registerSurvey?: boolean; + savingsId?: number; + subentityId?: number; + surveyResource?: boolean; + taskPermissionName?: string; + transactionId?: string; + update?: boolean; + updateDatatable?: boolean; + updateDisbursementDate?: boolean; + updateMultiple?: boolean; + updateOneToOne?: boolean; + updateOperation?: boolean; + userResource?: boolean; + workingDaysResource?: boolean; +} + diff --git a/packages/fineract-client/src/models/component.ts b/packages/fineract-client/src/models/component.ts new file mode 100644 index 0000000000..64ebd639d0 --- /dev/null +++ b/packages/fineract-client/src/models/component.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Survey } from './survey'; + + +export interface Component { + description?: string; + id?: number; + key?: string; + _new?: boolean; + sequenceNo?: number; + survey?: Survey; + text?: string; +} + diff --git a/packages/fineract-client/src/models/componentData.ts b/packages/fineract-client/src/models/componentData.ts new file mode 100644 index 0000000000..b6b09670af --- /dev/null +++ b/packages/fineract-client/src/models/componentData.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ComponentData { + description?: string; + id?: number; + key?: string; + sequenceNo?: number; + text?: string; +} + diff --git a/packages/fineract-client/src/models/contentDisposition.ts b/packages/fineract-client/src/models/contentDisposition.ts new file mode 100644 index 0000000000..3228b1a5f0 --- /dev/null +++ b/packages/fineract-client/src/models/contentDisposition.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ContentDisposition { + creationDate?: string; + fileName?: string; + modificationDate?: string; + parameters?: { [key: string]: string; }; + readDate?: string; + size?: number; + type?: string; +} + diff --git a/packages/fineract-client/src/models/createStaffResponse.ts b/packages/fineract-client/src/models/createStaffResponse.ts new file mode 100644 index 0000000000..ad04b32d96 --- /dev/null +++ b/packages/fineract-client/src/models/createStaffResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostStaffResponse + */ +export interface CreateStaffResponse { + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/creditDebit.ts b/packages/fineract-client/src/models/creditDebit.ts new file mode 100644 index 0000000000..2d6dfbe104 --- /dev/null +++ b/packages/fineract-client/src/models/creditDebit.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface CreditDebit { + amount?: number; + glAccountId?: number; +} + diff --git a/packages/fineract-client/src/models/currencyData.ts b/packages/fineract-client/src/models/currencyData.ts new file mode 100644 index 0000000000..b716f40393 --- /dev/null +++ b/packages/fineract-client/src/models/currencyData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface CurrencyData { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/currencyItem.ts b/packages/fineract-client/src/models/currencyItem.ts new file mode 100644 index 0000000000..f80128223f --- /dev/null +++ b/packages/fineract-client/src/models/currencyItem.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface CurrencyItem { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/datatableData.ts b/packages/fineract-client/src/models/datatableData.ts new file mode 100644 index 0000000000..22ff795b82 --- /dev/null +++ b/packages/fineract-client/src/models/datatableData.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface DatatableData { + registeredTableName?: string; +} + diff --git a/packages/fineract-client/src/models/deleteAccountNumberFormatsResponse.ts b/packages/fineract-client/src/models/deleteAccountNumberFormatsResponse.ts new file mode 100644 index 0000000000..8f01a601d9 --- /dev/null +++ b/packages/fineract-client/src/models/deleteAccountNumberFormatsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteAccountNumberFormatsResponse + */ +export interface DeleteAccountNumberFormatsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteAccountingRulesResponse.ts b/packages/fineract-client/src/models/deleteAccountingRulesResponse.ts new file mode 100644 index 0000000000..c5828b3291 --- /dev/null +++ b/packages/fineract-client/src/models/deleteAccountingRulesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteAccountingRulesResponse + */ +export interface DeleteAccountingRulesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteCentersCenterIdResponse.ts b/packages/fineract-client/src/models/deleteCentersCenterIdResponse.ts new file mode 100644 index 0000000000..a04766ba2a --- /dev/null +++ b/packages/fineract-client/src/models/deleteCentersCenterIdResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteCentersCenterIdResponse + */ +export interface DeleteCentersCenterIdResponse { + changes?: object; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteChargesChargeIdResponse.ts b/packages/fineract-client/src/models/deleteChargesChargeIdResponse.ts new file mode 100644 index 0000000000..37a689f429 --- /dev/null +++ b/packages/fineract-client/src/models/deleteChargesChargeIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteChargesChargeIdResponse + */ +export interface DeleteChargesChargeIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteClientCollateralResponse.ts b/packages/fineract-client/src/models/deleteClientCollateralResponse.ts new file mode 100644 index 0000000000..2e7016cc0b --- /dev/null +++ b/packages/fineract-client/src/models/deleteClientCollateralResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteClientCollateralResponse + */ +export interface DeleteClientCollateralResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteClientsClientIdChargesChargeIdResponse.ts b/packages/fineract-client/src/models/deleteClientsClientIdChargesChargeIdResponse.ts new file mode 100644 index 0000000000..3d136708a6 --- /dev/null +++ b/packages/fineract-client/src/models/deleteClientsClientIdChargesChargeIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteClientsClientIdChargesChargeIdResponse + */ +export interface DeleteClientsClientIdChargesChargeIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteClientsClientIdIdentifiersIdentifierIdResponse.ts b/packages/fineract-client/src/models/deleteClientsClientIdIdentifiersIdentifierIdResponse.ts new file mode 100644 index 0000000000..1c446c9b10 --- /dev/null +++ b/packages/fineract-client/src/models/deleteClientsClientIdIdentifiersIdentifierIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteClientsClientIdIdentifiersIdentifierIdResponse + */ +export interface DeleteClientsClientIdIdentifiersIdentifierIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteClientsClientIdResponse.ts b/packages/fineract-client/src/models/deleteClientsClientIdResponse.ts new file mode 100644 index 0000000000..d8786cfddf --- /dev/null +++ b/packages/fineract-client/src/models/deleteClientsClientIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteClientsClientIdResponse + */ +export interface DeleteClientsClientIdResponse { + clientId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteCodeValueDataResponse.ts b/packages/fineract-client/src/models/deleteCodeValueDataResponse.ts new file mode 100644 index 0000000000..e4159b5560 --- /dev/null +++ b/packages/fineract-client/src/models/deleteCodeValueDataResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteCodeValueDataResponse + */ +export interface DeleteCodeValueDataResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteCodesResponse.ts b/packages/fineract-client/src/models/deleteCodesResponse.ts new file mode 100644 index 0000000000..d3671d3d59 --- /dev/null +++ b/packages/fineract-client/src/models/deleteCodesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteCodesResponse + */ +export interface DeleteCodesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteCollateralProductResponse.ts b/packages/fineract-client/src/models/deleteCollateralProductResponse.ts new file mode 100644 index 0000000000..9db8963c96 --- /dev/null +++ b/packages/fineract-client/src/models/deleteCollateralProductResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteCollateralProductResponse + */ +export interface DeleteCollateralProductResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteDataTablesDatatableAppTableIdDatatableIdResponse.ts b/packages/fineract-client/src/models/deleteDataTablesDatatableAppTableIdDatatableIdResponse.ts new file mode 100644 index 0000000000..98184ec375 --- /dev/null +++ b/packages/fineract-client/src/models/deleteDataTablesDatatableAppTableIdDatatableIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteDataTablesDatatableAppTableIdDatatableIdResponse + */ +export interface DeleteDataTablesDatatableAppTableIdDatatableIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteDataTablesDatatableAppTableIdResponse.ts b/packages/fineract-client/src/models/deleteDataTablesDatatableAppTableIdResponse.ts new file mode 100644 index 0000000000..96d2b83a52 --- /dev/null +++ b/packages/fineract-client/src/models/deleteDataTablesDatatableAppTableIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteDataTablesDatatableAppTableIdResponse + */ +export interface DeleteDataTablesDatatableAppTableIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteDataTablesResponse.ts b/packages/fineract-client/src/models/deleteDataTablesResponse.ts new file mode 100644 index 0000000000..eccaca1742 --- /dev/null +++ b/packages/fineract-client/src/models/deleteDataTablesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteDataTablesResponse + */ +export interface DeleteDataTablesResponse { + resourceIdentifier?: string; +} + diff --git a/packages/fineract-client/src/models/deleteDelinquencyBucketResponse.ts b/packages/fineract-client/src/models/deleteDelinquencyBucketResponse.ts new file mode 100644 index 0000000000..66d87138e1 --- /dev/null +++ b/packages/fineract-client/src/models/deleteDelinquencyBucketResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteDelinquencyBucketResponse + */ +export interface DeleteDelinquencyBucketResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteDelinquencyRangeResponse.ts b/packages/fineract-client/src/models/deleteDelinquencyRangeResponse.ts new file mode 100644 index 0000000000..f1fbad51a0 --- /dev/null +++ b/packages/fineract-client/src/models/deleteDelinquencyRangeResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteDelinquencyRangeResponse + */ +export interface DeleteDelinquencyRangeResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteEntityDatatableChecksTemplateResponse.ts b/packages/fineract-client/src/models/deleteEntityDatatableChecksTemplateResponse.ts new file mode 100644 index 0000000000..f8ff6c6d7b --- /dev/null +++ b/packages/fineract-client/src/models/deleteEntityDatatableChecksTemplateResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteEntityDatatableChecksTemplateResponse + */ +export interface DeleteEntityDatatableChecksTemplateResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteEntityTypeEntityIdDocumentsResponse.ts b/packages/fineract-client/src/models/deleteEntityTypeEntityIdDocumentsResponse.ts new file mode 100644 index 0000000000..a38bcbb9ae --- /dev/null +++ b/packages/fineract-client/src/models/deleteEntityTypeEntityIdDocumentsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteEntityTypeEntityIdDocumentsResponse + */ +export interface DeleteEntityTypeEntityIdDocumentsResponse { + changes?: object; + resourceId?: number; + resourceIdentifier?: string; +} + diff --git a/packages/fineract-client/src/models/deleteFinancialActivityAccountsResponse.ts b/packages/fineract-client/src/models/deleteFinancialActivityAccountsResponse.ts new file mode 100644 index 0000000000..acc27fad29 --- /dev/null +++ b/packages/fineract-client/src/models/deleteFinancialActivityAccountsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteFinancialActivityAccountsResponse + */ +export interface DeleteFinancialActivityAccountsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteFixedDepositAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/deleteFixedDepositAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..19b4f24dfb --- /dev/null +++ b/packages/fineract-client/src/models/deleteFixedDepositAccountsAccountIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteFixedDepositAccountsAccountIdResponse + */ +export interface DeleteFixedDepositAccountsAccountIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteFixedDepositProductsProductIdResponse.ts b/packages/fineract-client/src/models/deleteFixedDepositProductsProductIdResponse.ts new file mode 100644 index 0000000000..d49b96cceb --- /dev/null +++ b/packages/fineract-client/src/models/deleteFixedDepositProductsProductIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteFixedDepositProductsProductIdResponse + */ +export interface DeleteFixedDepositProductsProductIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteGLAccountsRequest.ts b/packages/fineract-client/src/models/deleteGLAccountsRequest.ts new file mode 100644 index 0000000000..2061d8b452 --- /dev/null +++ b/packages/fineract-client/src/models/deleteGLAccountsRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteGLAccountsRequest + */ +export interface DeleteGLAccountsRequest { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteGlClosuresResponse.ts b/packages/fineract-client/src/models/deleteGlClosuresResponse.ts new file mode 100644 index 0000000000..7e033842e2 --- /dev/null +++ b/packages/fineract-client/src/models/deleteGlClosuresResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteGlClosuresResponse + */ +export interface DeleteGlClosuresResponse { + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteGroupsGroupIdResponse.ts b/packages/fineract-client/src/models/deleteGroupsGroupIdResponse.ts new file mode 100644 index 0000000000..86cdbc0c71 --- /dev/null +++ b/packages/fineract-client/src/models/deleteGroupsGroupIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteGroupsGroupIdResponse + */ +export interface DeleteGroupsGroupIdResponse { + groupId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteHolidaysHolidayIdResponse.ts b/packages/fineract-client/src/models/deleteHolidaysHolidayIdResponse.ts new file mode 100644 index 0000000000..db7b507ce5 --- /dev/null +++ b/packages/fineract-client/src/models/deleteHolidaysHolidayIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteHolidaysHolidayIdResponse + */ +export interface DeleteHolidaysHolidayIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteHookResponse.ts b/packages/fineract-client/src/models/deleteHookResponse.ts new file mode 100644 index 0000000000..2a0cec0cd9 --- /dev/null +++ b/packages/fineract-client/src/models/deleteHookResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteHookResponse + */ +export interface DeleteHookResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteInterestRateChartsChartIdChartSlabsResponse.ts b/packages/fineract-client/src/models/deleteInterestRateChartsChartIdChartSlabsResponse.ts new file mode 100644 index 0000000000..4776934318 --- /dev/null +++ b/packages/fineract-client/src/models/deleteInterestRateChartsChartIdChartSlabsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteInterestRateChartsChartIdChartSlabsResponse + */ +export interface DeleteInterestRateChartsChartIdChartSlabsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteInterestRateChartsChartIdResponse.ts b/packages/fineract-client/src/models/deleteInterestRateChartsChartIdResponse.ts new file mode 100644 index 0000000000..f818aad6d9 --- /dev/null +++ b/packages/fineract-client/src/models/deleteInterestRateChartsChartIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteInterestRateChartsChartIdResponse + */ +export interface DeleteInterestRateChartsChartIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteLoansLoanIdChargesChargeIdResponse.ts b/packages/fineract-client/src/models/deleteLoansLoanIdChargesChargeIdResponse.ts new file mode 100644 index 0000000000..52ad4c0999 --- /dev/null +++ b/packages/fineract-client/src/models/deleteLoansLoanIdChargesChargeIdResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteLoansLoanIdChargesChargeIdResponse + */ +export interface DeleteLoansLoanIdChargesChargeIdResponse { + clientId?: number; + loanId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteLoansLoanIdCollateralsCollateralIdResponse.ts b/packages/fineract-client/src/models/deleteLoansLoanIdCollateralsCollateralIdResponse.ts new file mode 100644 index 0000000000..914c6fb0d7 --- /dev/null +++ b/packages/fineract-client/src/models/deleteLoansLoanIdCollateralsCollateralIdResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteLoansLoanIdCollateralsCollateralIdResponse + */ +export interface DeleteLoansLoanIdCollateralsCollateralIdResponse { + loanId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteLoansLoanIdResponse.ts b/packages/fineract-client/src/models/deleteLoansLoanIdResponse.ts new file mode 100644 index 0000000000..4d3e4eab78 --- /dev/null +++ b/packages/fineract-client/src/models/deleteLoansLoanIdResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteLoansLoanIdResponse + */ +export interface DeleteLoansLoanIdResponse { + clientId?: number; + loanId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deletePaymentTypesPaymentTypeIdResponse.ts b/packages/fineract-client/src/models/deletePaymentTypesPaymentTypeIdResponse.ts new file mode 100644 index 0000000000..9c0e8a8b3e --- /dev/null +++ b/packages/fineract-client/src/models/deletePaymentTypesPaymentTypeIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeletePaymentTypesPaymentTypeIdResponse + */ +export interface DeletePaymentTypesPaymentTypeIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deletePostDatedCheck.ts b/packages/fineract-client/src/models/deletePostDatedCheck.ts new file mode 100644 index 0000000000..24a2cc32bc --- /dev/null +++ b/packages/fineract-client/src/models/deletePostDatedCheck.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeletePostDatedCheck + */ +export interface DeletePostDatedCheck { + loanId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteProvisioningCriteriaResponse.ts b/packages/fineract-client/src/models/deleteProvisioningCriteriaResponse.ts new file mode 100644 index 0000000000..17e66d9cb1 --- /dev/null +++ b/packages/fineract-client/src/models/deleteProvisioningCriteriaResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteProvisioningCriteriaResponse + */ +export interface DeleteProvisioningCriteriaResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteRecurringDepositAccountsResponse.ts b/packages/fineract-client/src/models/deleteRecurringDepositAccountsResponse.ts new file mode 100644 index 0000000000..3ee2d28378 --- /dev/null +++ b/packages/fineract-client/src/models/deleteRecurringDepositAccountsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteRecurringDepositAccountsResponse + */ +export interface DeleteRecurringDepositAccountsResponse { + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteRecurringDepositProductsProductIdResponse.ts b/packages/fineract-client/src/models/deleteRecurringDepositProductsProductIdResponse.ts new file mode 100644 index 0000000000..0ec2df8d73 --- /dev/null +++ b/packages/fineract-client/src/models/deleteRecurringDepositProductsProductIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteRecurringDepositProductsProductIdResponse + */ +export interface DeleteRecurringDepositProductsProductIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteReportMailingJobsResponse.ts b/packages/fineract-client/src/models/deleteReportMailingJobsResponse.ts new file mode 100644 index 0000000000..177e3f4efa --- /dev/null +++ b/packages/fineract-client/src/models/deleteReportMailingJobsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteReportMailingJobsResponse + */ +export interface DeleteReportMailingJobsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteReportsResponse.ts b/packages/fineract-client/src/models/deleteReportsResponse.ts new file mode 100644 index 0000000000..edbe6e8b09 --- /dev/null +++ b/packages/fineract-client/src/models/deleteReportsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteReportsResponse + */ +export interface DeleteReportsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteResourceTypeResourceIdNotesNoteIdResponse.ts b/packages/fineract-client/src/models/deleteResourceTypeResourceIdNotesNoteIdResponse.ts new file mode 100644 index 0000000000..cb8842692c --- /dev/null +++ b/packages/fineract-client/src/models/deleteResourceTypeResourceIdNotesNoteIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteResourceTypeResourceIdNotesNoteIdResponse + */ +export interface DeleteResourceTypeResourceIdNotesNoteIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteRolesRoleIdResponse.ts b/packages/fineract-client/src/models/deleteRolesRoleIdResponse.ts new file mode 100644 index 0000000000..787e2e16d7 --- /dev/null +++ b/packages/fineract-client/src/models/deleteRolesRoleIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteRolesRoleIdResponse + */ +export interface DeleteRolesRoleIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteSavingsAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/deleteSavingsAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..6e43dea687 --- /dev/null +++ b/packages/fineract-client/src/models/deleteSavingsAccountsAccountIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteSavingsAccountsAccountIdResponse + */ +export interface DeleteSavingsAccountsAccountIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts b/packages/fineract-client/src/models/deleteSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts new file mode 100644 index 0000000000..2163aeb72f --- /dev/null +++ b/packages/fineract-client/src/models/deleteSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse + */ +export interface DeleteSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteSavingsProductsProductIdResponse.ts b/packages/fineract-client/src/models/deleteSavingsProductsProductIdResponse.ts new file mode 100644 index 0000000000..3895c18f1f --- /dev/null +++ b/packages/fineract-client/src/models/deleteSavingsProductsProductIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteSavingsProductsProductIdResponse + */ +export interface DeleteSavingsProductsProductIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteSelfBeneficiariesTPTBeneficiaryIdResponse.ts b/packages/fineract-client/src/models/deleteSelfBeneficiariesTPTBeneficiaryIdResponse.ts new file mode 100644 index 0000000000..f2e2ca57c4 --- /dev/null +++ b/packages/fineract-client/src/models/deleteSelfBeneficiariesTPTBeneficiaryIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteSelfBeneficiariesTPTBeneficiaryIdResponse + */ +export interface DeleteSelfBeneficiariesTPTBeneficiaryIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteTellersTellerIdCashiersCashierIdResponse.ts b/packages/fineract-client/src/models/deleteTellersTellerIdCashiersCashierIdResponse.ts new file mode 100644 index 0000000000..6ca4060cb2 --- /dev/null +++ b/packages/fineract-client/src/models/deleteTellersTellerIdCashiersCashierIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteTellersTellerIdCashiersCashierIdResponse + */ +export interface DeleteTellersTellerIdCashiersCashierIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteTemplatesTemplateIdResponse.ts b/packages/fineract-client/src/models/deleteTemplatesTemplateIdResponse.ts new file mode 100644 index 0000000000..82fdc412a6 --- /dev/null +++ b/packages/fineract-client/src/models/deleteTemplatesTemplateIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteTemplatesTemplateIdResponse + */ +export interface DeleteTemplatesTemplateIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/deleteUsersUserIdResponse.ts b/packages/fineract-client/src/models/deleteUsersUserIdResponse.ts new file mode 100644 index 0000000000..82fc09b22b --- /dev/null +++ b/packages/fineract-client/src/models/deleteUsersUserIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * DeleteUsersUserIdResponse + */ +export interface DeleteUsersUserIdResponse { + changes?: object; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/delinquencyBucket.ts b/packages/fineract-client/src/models/delinquencyBucket.ts new file mode 100644 index 0000000000..8d785d5b3a --- /dev/null +++ b/packages/fineract-client/src/models/delinquencyBucket.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { DelinquencyRange } from './delinquencyRange'; + + +export interface DelinquencyBucket { + createdBy?: number; + createdDate?: string; + id?: number; + lastModifiedBy?: number; + lastModifiedDate?: string; + name?: string; + _new?: boolean; + ranges?: Array; + version?: number; +} + diff --git a/packages/fineract-client/src/models/delinquencyBucketData.ts b/packages/fineract-client/src/models/delinquencyBucketData.ts new file mode 100644 index 0000000000..2fa5608efc --- /dev/null +++ b/packages/fineract-client/src/models/delinquencyBucketData.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { DelinquencyRangeData } from './delinquencyRangeData'; + + +export interface DelinquencyBucketData { + id?: number; + name?: string; + ranges?: Array; +} + diff --git a/packages/fineract-client/src/models/delinquencyRange.ts b/packages/fineract-client/src/models/delinquencyRange.ts new file mode 100644 index 0000000000..dbe1654ba7 --- /dev/null +++ b/packages/fineract-client/src/models/delinquencyRange.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface DelinquencyRange { + classification?: string; + createdBy?: number; + createdDate?: string; + id?: number; + lastModifiedBy?: number; + lastModifiedDate?: string; + maximumAgeDays?: number; + minimumAgeDays?: number; + _new?: boolean; + version?: number; +} + diff --git a/packages/fineract-client/src/models/delinquencyRangeData.ts b/packages/fineract-client/src/models/delinquencyRangeData.ts new file mode 100644 index 0000000000..94597f9689 --- /dev/null +++ b/packages/fineract-client/src/models/delinquencyRangeData.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface DelinquencyRangeData { + classification?: string; + id?: number; + maximumAgeDays?: number; + minimumAgeDays?: number; +} + diff --git a/packages/fineract-client/src/models/entity.ts b/packages/fineract-client/src/models/entity.ts new file mode 100644 index 0000000000..4c6dd24d39 --- /dev/null +++ b/packages/fineract-client/src/models/entity.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface Entity { + actions?: Array; + name?: string; +} + diff --git a/packages/fineract-client/src/models/enumOptionData.ts b/packages/fineract-client/src/models/enumOptionData.ts new file mode 100644 index 0000000000..10e0c1f8ae --- /dev/null +++ b/packages/fineract-client/src/models/enumOptionData.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface EnumOptionData { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/enumOptionType.ts b/packages/fineract-client/src/models/enumOptionType.ts new file mode 100644 index 0000000000..8796c8cc0b --- /dev/null +++ b/packages/fineract-client/src/models/enumOptionType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface EnumOptionType { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/event.ts b/packages/fineract-client/src/models/event.ts new file mode 100644 index 0000000000..c608377fbe --- /dev/null +++ b/packages/fineract-client/src/models/event.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface Event { + actionName?: string; + entityName?: string; +} + diff --git a/packages/fineract-client/src/models/executeJobRequest.ts b/packages/fineract-client/src/models/executeJobRequest.ts new file mode 100644 index 0000000000..b87336e326 --- /dev/null +++ b/packages/fineract-client/src/models/executeJobRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { JobParameterDTO } from './jobParameterDTO'; + + +/** + * ExecuteJobRequest + */ +export interface ExecuteJobRequest { + jobParameters?: Array; +} + diff --git a/packages/fineract-client/src/models/extensionData.ts b/packages/fineract-client/src/models/extensionData.ts new file mode 100644 index 0000000000..385ba127f2 --- /dev/null +++ b/packages/fineract-client/src/models/extensionData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ExtensionData { + key: string; + value?: string; +} + diff --git a/packages/fineract-client/src/models/externalAssetOwnerTransferChangesData.ts b/packages/fineract-client/src/models/externalAssetOwnerTransferChangesData.ts new file mode 100644 index 0000000000..91224f4c22 --- /dev/null +++ b/packages/fineract-client/src/models/externalAssetOwnerTransferChangesData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * ExternalAssetOwnerTransferChangesData + */ +export interface ExternalAssetOwnerTransferChangesData { + ownerExternalId?: string; + purchasePriceRatio?: string; + settlementDate?: string; + transferExternalId?: string; +} + diff --git a/packages/fineract-client/src/models/externalEventConfigurationItemData.ts b/packages/fineract-client/src/models/externalEventConfigurationItemData.ts new file mode 100644 index 0000000000..e7934072a2 --- /dev/null +++ b/packages/fineract-client/src/models/externalEventConfigurationItemData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ExternalEventConfigurationItemData { + enabled?: boolean; + type?: string; +} + diff --git a/packages/fineract-client/src/models/externalId.ts b/packages/fineract-client/src/models/externalId.ts new file mode 100644 index 0000000000..680bb45668 --- /dev/null +++ b/packages/fineract-client/src/models/externalId.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ExternalId { + empty?: boolean; + value?: string; +} + diff --git a/packages/fineract-client/src/models/externalOwnerJournalEntryData.ts b/packages/fineract-client/src/models/externalOwnerJournalEntryData.ts new file mode 100644 index 0000000000..7434744691 --- /dev/null +++ b/packages/fineract-client/src/models/externalOwnerJournalEntryData.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PageJournalEntryData } from './pageJournalEntryData'; +import { ExternalTransferOwnerData } from './externalTransferOwnerData'; + + +export interface ExternalOwnerJournalEntryData { + journalEntryData?: PageJournalEntryData; + ownerData?: ExternalTransferOwnerData; +} + diff --git a/packages/fineract-client/src/models/externalOwnerTransferJournalEntryData.ts b/packages/fineract-client/src/models/externalOwnerTransferJournalEntryData.ts new file mode 100644 index 0000000000..4ee752f2f9 --- /dev/null +++ b/packages/fineract-client/src/models/externalOwnerTransferJournalEntryData.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalTransferData } from './externalTransferData'; +import { PageJournalEntryData } from './pageJournalEntryData'; + + +export interface ExternalOwnerTransferJournalEntryData { + journalEntryData?: PageJournalEntryData; + transferData?: ExternalTransferData; +} + diff --git a/packages/fineract-client/src/models/externalServicesPropertiesData.ts b/packages/fineract-client/src/models/externalServicesPropertiesData.ts new file mode 100644 index 0000000000..03d1a1d7b9 --- /dev/null +++ b/packages/fineract-client/src/models/externalServicesPropertiesData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ExternalServicesPropertiesData { + name?: string; + value?: string; +} + diff --git a/packages/fineract-client/src/models/externalTransferData.ts b/packages/fineract-client/src/models/externalTransferData.ts new file mode 100644 index 0000000000..bb78b3b7a6 --- /dev/null +++ b/packages/fineract-client/src/models/externalTransferData.ts @@ -0,0 +1,48 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalTransferDataDetails } from './externalTransferDataDetails'; +import { ExternalTransferLoanData } from './externalTransferLoanData'; +import { ExternalTransferOwnerData } from './externalTransferOwnerData'; + + +export interface ExternalTransferData { + details?: ExternalTransferDataDetails; + effectiveFrom?: string; + effectiveTo?: string; + loan?: ExternalTransferLoanData; + owner?: ExternalTransferOwnerData; + purchasePriceRatio?: string; + settlementDate?: string; + status?: ExternalTransferData.StatusEnum; + subStatus?: ExternalTransferData.SubStatusEnum; + transferExternalId?: string; + transferId?: number; +} +export namespace ExternalTransferData { + export type StatusEnum = 'ACTIVE' | 'DECLINED' | 'PENDING' | 'BUYBACK' | 'CANCELLED'; + export const StatusEnum = { + Active: 'ACTIVE' as StatusEnum, + Declined: 'DECLINED' as StatusEnum, + Pending: 'PENDING' as StatusEnum, + Buyback: 'BUYBACK' as StatusEnum, + Cancelled: 'CANCELLED' as StatusEnum + }; + export type SubStatusEnum = 'BALANCE_ZERO' | 'BALANCE_NEGATIVE' | 'SAMEDAY_TRANSFERS' | 'USER_REQUESTED'; + export const SubStatusEnum = { + BalanceZero: 'BALANCE_ZERO' as SubStatusEnum, + BalanceNegative: 'BALANCE_NEGATIVE' as SubStatusEnum, + SamedayTransfers: 'SAMEDAY_TRANSFERS' as SubStatusEnum, + UserRequested: 'USER_REQUESTED' as SubStatusEnum + }; +} + + diff --git a/packages/fineract-client/src/models/externalTransferDataDetails.ts b/packages/fineract-client/src/models/externalTransferDataDetails.ts new file mode 100644 index 0000000000..10cdcdaf45 --- /dev/null +++ b/packages/fineract-client/src/models/externalTransferDataDetails.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ExternalTransferDataDetails { + detailsId?: number; + totalFeeChargesOutstanding?: number; + totalInterestOutstanding?: number; + totalOutstanding?: number; + totalOverpaid?: number; + totalPenaltyChargesOutstanding?: number; + totalPrincipalOutstanding?: number; +} + diff --git a/packages/fineract-client/src/models/externalTransferLoanData.ts b/packages/fineract-client/src/models/externalTransferLoanData.ts new file mode 100644 index 0000000000..04034f2c56 --- /dev/null +++ b/packages/fineract-client/src/models/externalTransferLoanData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ExternalTransferLoanData { + externalId?: string; + loanId?: number; +} + diff --git a/packages/fineract-client/src/models/externalTransferOwnerData.ts b/packages/fineract-client/src/models/externalTransferOwnerData.ts new file mode 100644 index 0000000000..253476741d --- /dev/null +++ b/packages/fineract-client/src/models/externalTransferOwnerData.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ExternalTransferOwnerData { + externalId?: string; +} + diff --git a/packages/fineract-client/src/models/field.ts b/packages/fineract-client/src/models/field.ts new file mode 100644 index 0000000000..cbe34ddd83 --- /dev/null +++ b/packages/fineract-client/src/models/field.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface Field { + fieldName?: string; + fieldType?: string; + fieldValue?: string; + optional?: boolean; + placeholder?: string; +} + diff --git a/packages/fineract-client/src/models/filters.ts b/packages/fineract-client/src/models/filters.ts new file mode 100644 index 0000000000..89a6b661c1 --- /dev/null +++ b/packages/fineract-client/src/models/filters.ts @@ -0,0 +1,46 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { RangeFilterBigDecimal } from './rangeFilterBigDecimal'; +import { RangeFilterLocalDate } from './rangeFilterLocalDate'; + + +export interface Filters { + transactionAmount?: Array; + transactionDate?: Array; + transactionType?: Array; +} +export namespace Filters { + export type TransactionTypeEnum = 'INVALID' | 'DEPOSIT' | 'WITHDRAWAL' | 'INTEREST_POSTING' | 'WITHDRAWAL_FEE' | 'ANNUAL_FEE' | 'WAIVE_CHARGES' | 'PAY_CHARGE' | 'DIVIDEND_PAYOUT' | 'INITIATE_TRANSFER' | 'APPROVE_TRANSFER' | 'WITHDRAW_TRANSFER' | 'REJECT_TRANSFER' | 'WRITTEN_OFF' | 'OVERDRAFT_INTEREST' | 'WITHHOLD_TAX' | 'ESCHEAT' | 'AMOUNT_HOLD' | 'AMOUNT_RELEASE'; + export const TransactionTypeEnum = { + Invalid: 'INVALID' as TransactionTypeEnum, + Deposit: 'DEPOSIT' as TransactionTypeEnum, + Withdrawal: 'WITHDRAWAL' as TransactionTypeEnum, + InterestPosting: 'INTEREST_POSTING' as TransactionTypeEnum, + WithdrawalFee: 'WITHDRAWAL_FEE' as TransactionTypeEnum, + AnnualFee: 'ANNUAL_FEE' as TransactionTypeEnum, + WaiveCharges: 'WAIVE_CHARGES' as TransactionTypeEnum, + PayCharge: 'PAY_CHARGE' as TransactionTypeEnum, + DividendPayout: 'DIVIDEND_PAYOUT' as TransactionTypeEnum, + InitiateTransfer: 'INITIATE_TRANSFER' as TransactionTypeEnum, + ApproveTransfer: 'APPROVE_TRANSFER' as TransactionTypeEnum, + WithdrawTransfer: 'WITHDRAW_TRANSFER' as TransactionTypeEnum, + RejectTransfer: 'REJECT_TRANSFER' as TransactionTypeEnum, + WrittenOff: 'WRITTEN_OFF' as TransactionTypeEnum, + OverdraftInterest: 'OVERDRAFT_INTEREST' as TransactionTypeEnum, + WithholdTax: 'WITHHOLD_TAX' as TransactionTypeEnum, + Escheat: 'ESCHEAT' as TransactionTypeEnum, + AmountHold: 'AMOUNT_HOLD' as TransactionTypeEnum, + AmountRelease: 'AMOUNT_RELEASE' as TransactionTypeEnum + }; +} + + diff --git a/packages/fineract-client/src/models/financialActivityData.ts b/packages/fineract-client/src/models/financialActivityData.ts new file mode 100644 index 0000000000..45f80cbb28 --- /dev/null +++ b/packages/fineract-client/src/models/financialActivityData.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface FinancialActivityData { + id?: number; + mappedGLAccountType?: FinancialActivityData.MappedGLAccountTypeEnum; + name?: string; +} +export namespace FinancialActivityData { + export type MappedGLAccountTypeEnum = 'ASSET' | 'LIABILITY' | 'EQUITY' | 'INCOME' | 'EXPENSE'; + export const MappedGLAccountTypeEnum = { + Asset: 'ASSET' as MappedGLAccountTypeEnum, + Liability: 'LIABILITY' as MappedGLAccountTypeEnum, + Equity: 'EQUITY' as MappedGLAccountTypeEnum, + Income: 'INCOME' as MappedGLAccountTypeEnum, + Expense: 'EXPENSE' as MappedGLAccountTypeEnum + }; +} + + diff --git a/packages/fineract-client/src/models/floatingRate.ts b/packages/fineract-client/src/models/floatingRate.ts new file mode 100644 index 0000000000..9d3ed69588 --- /dev/null +++ b/packages/fineract-client/src/models/floatingRate.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { FloatingRatePeriod } from './floatingRatePeriod'; + + +export interface FloatingRate { + active?: boolean; + baseLendingRate?: boolean; + createdBy?: number; + createdDate?: string; + floatingRatePeriods?: Array; + id?: number; + lastModifiedBy?: number; + lastModifiedDate?: string; + name?: string; + _new?: boolean; +} + diff --git a/packages/fineract-client/src/models/floatingRateData.ts b/packages/fineract-client/src/models/floatingRateData.ts new file mode 100644 index 0000000000..1cdffaf2e4 --- /dev/null +++ b/packages/fineract-client/src/models/floatingRateData.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { FloatingRatePeriodData } from './floatingRatePeriodData'; + + +export interface FloatingRateData { + active?: boolean; + baseLendingRate?: boolean; + createdBy?: string; + createdOn?: string; + id?: number; + modifiedBy?: string; + modifiedOn?: string; + name?: string; + ratePeriods?: Array; +} + diff --git a/packages/fineract-client/src/models/floatingRatePeriod.ts b/packages/fineract-client/src/models/floatingRatePeriod.ts new file mode 100644 index 0000000000..90796c182f --- /dev/null +++ b/packages/fineract-client/src/models/floatingRatePeriod.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { FloatingRate } from './floatingRate'; + + +export interface FloatingRatePeriod { + active?: boolean; + createdBy?: number; + createdDate?: string; + differentialToBaseLendingRate?: boolean; + floatingRate?: FloatingRate; + fromDate?: string; + id?: number; + interestRate?: number; + lastModifiedBy?: number; + lastModifiedDate?: string; + _new?: boolean; +} + diff --git a/packages/fineract-client/src/models/floatingRatePeriodData.ts b/packages/fineract-client/src/models/floatingRatePeriodData.ts new file mode 100644 index 0000000000..499339a9a8 --- /dev/null +++ b/packages/fineract-client/src/models/floatingRatePeriodData.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface FloatingRatePeriodData { + active?: boolean; + createdBy?: string; + createdOn?: string; + differentialToBaseLendingRate?: boolean; + fromDate?: string; + fromDateAsLocalDate?: string; + id?: number; + interestRate?: number; + modifiedBy?: string; + modifiedOn?: string; +} + diff --git a/packages/fineract-client/src/models/formDataBodyPart.ts b/packages/fineract-client/src/models/formDataBodyPart.ts new file mode 100644 index 0000000000..969d99b12e --- /dev/null +++ b/packages/fineract-client/src/models/formDataBodyPart.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { MultiPart } from './multiPart'; +import { ContentDisposition } from './contentDisposition'; +import { MediaType } from './mediaType'; +import { BodyPartParameterizedHeaders } from './bodyPartParameterizedHeaders'; +import { FormDataContentDisposition } from './formDataContentDisposition'; +import { BodyPartHeaders } from './bodyPartHeaders'; + + +export interface FormDataBodyPart { + content?: object; + contentDisposition?: ContentDisposition; + entity?: object; + fileName?: string; + formDataContentDisposition?: FormDataContentDisposition; + headers?: BodyPartHeaders; + mediaType?: MediaType; + messageBodyWorkers?: object; + name?: string; + parameterizedHeaders?: BodyPartParameterizedHeaders; + parent?: MultiPart; + providers?: object; + simple?: boolean; + value?: string; +} + diff --git a/packages/fineract-client/src/models/formDataContentDisposition.ts b/packages/fineract-client/src/models/formDataContentDisposition.ts new file mode 100644 index 0000000000..7adf5d068a --- /dev/null +++ b/packages/fineract-client/src/models/formDataContentDisposition.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface FormDataContentDisposition { + creationDate?: string; + fileName?: string; + modificationDate?: string; + name?: string; + parameters?: { [key: string]: string; }; + readDate?: string; + size?: number; + type?: string; +} + diff --git a/packages/fineract-client/src/models/fundData.ts b/packages/fineract-client/src/models/fundData.ts new file mode 100644 index 0000000000..6ea55371b3 --- /dev/null +++ b/packages/fineract-client/src/models/fundData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface FundData { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/gLAccount.ts b/packages/fineract-client/src/models/gLAccount.ts new file mode 100644 index 0000000000..e5439d4c7f --- /dev/null +++ b/packages/fineract-client/src/models/gLAccount.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CodeValue } from './codeValue'; + + +export interface GLAccount { + children?: Array; + description?: string; + detailAccount?: boolean; + disabled?: boolean; + glCode?: string; + headerAccount?: boolean; + hierarchy?: string; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + _new?: boolean; + parent?: GLAccount; + tagId?: CodeValue; + type?: number; + usage?: number; +} + diff --git a/packages/fineract-client/src/models/gLAccountData.ts b/packages/fineract-client/src/models/gLAccountData.ts new file mode 100644 index 0000000000..6ee4b5bf6a --- /dev/null +++ b/packages/fineract-client/src/models/gLAccountData.ts @@ -0,0 +1,43 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CodeValueData } from './codeValueData'; +import { EnumOptionData } from './enumOptionData'; + + +export interface GLAccountData { + accountTypeOptions?: Array; + allowedAssetsTagOptions?: Array; + allowedEquityTagOptions?: Array; + allowedExpensesTagOptions?: Array; + allowedIncomeTagOptions?: Array; + allowedLiabilitiesTagOptions?: Array; + assetHeaderAccountOptions?: Array; + description?: string; + disabled?: boolean; + equityHeaderAccountOptions?: Array; + expenseHeaderAccountOptions?: Array; + glCode?: string; + id?: number; + incomeHeaderAccountOptions?: Array; + liabilityHeaderAccountOptions?: Array; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + organizationRunningBalance?: number; + parentId?: number; + rowIndex?: number; + tagId?: CodeValueData; + type?: EnumOptionData; + usage?: EnumOptionData; + usageOptions?: Array; +} + diff --git a/packages/fineract-client/src/models/gLAccountDataForLookup.ts b/packages/fineract-client/src/models/gLAccountDataForLookup.ts new file mode 100644 index 0000000000..cdb1fcde43 --- /dev/null +++ b/packages/fineract-client/src/models/gLAccountDataForLookup.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GLAccountDataForLookup { + glCode?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/geoCodeData.ts b/packages/fineract-client/src/models/geoCodeData.ts new file mode 100644 index 0000000000..d2f86d0a8e --- /dev/null +++ b/packages/fineract-client/src/models/geoCodeData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GeoCodeData { + latitude: string; + longitude: string; +} + diff --git a/packages/fineract-client/src/models/getAccountNumberFormatsIdResponse.ts b/packages/fineract-client/src/models/getAccountNumberFormatsIdResponse.ts new file mode 100644 index 0000000000..479db8ce8f --- /dev/null +++ b/packages/fineract-client/src/models/getAccountNumberFormatsIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +/** + * GetAccountNumberFormatsIdResponse + */ +export interface GetAccountNumberFormatsIdResponse { + accountType?: EnumOptionData; + id?: number; + prefixType?: EnumOptionData; +} + diff --git a/packages/fineract-client/src/models/getAccountNumberFormatsResponseTemplate.ts b/packages/fineract-client/src/models/getAccountNumberFormatsResponseTemplate.ts new file mode 100644 index 0000000000..1658d1cd4a --- /dev/null +++ b/packages/fineract-client/src/models/getAccountNumberFormatsResponseTemplate.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +/** + * GetAccountNumberFormatsResponseTemplate + */ +export interface GetAccountNumberFormatsResponseTemplate { + accountTypeOptions?: Array; + prefixTypeOptions?: { [key: string]: Array; }; +} + diff --git a/packages/fineract-client/src/models/getAccountOptions.ts b/packages/fineract-client/src/models/getAccountOptions.ts new file mode 100644 index 0000000000..b57de92cef --- /dev/null +++ b/packages/fineract-client/src/models/getAccountOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountOptions { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountRulesResponse.ts b/packages/fineract-client/src/models/getAccountRulesResponse.ts new file mode 100644 index 0000000000..4a8680b481 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountRulesResponse.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { AccountingTagRuleData } from './accountingTagRuleData'; + + +/** + * GetAccountRulesResponse + */ +export interface GetAccountRulesResponse { + allowMultipleCreditEntries?: boolean; + allowMultipleDebitEntries?: boolean; + creditTags?: Array; + debitTags?: Array; + description?: string; + id?: number; + name?: string; + officeId?: number; + officeName?: string; + systemDefined?: boolean; +} + diff --git a/packages/fineract-client/src/models/getAccountRulesTemplateResponse.ts b/packages/fineract-client/src/models/getAccountRulesTemplateResponse.ts new file mode 100644 index 0000000000..c3756fdcbe --- /dev/null +++ b/packages/fineract-client/src/models/getAccountRulesTemplateResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GLAccountData } from './gLAccountData'; +import { OfficeData } from './officeData'; + + +/** + * GetAccountRulesTemplateResponse + */ +export interface GetAccountRulesTemplateResponse { + allowedAccounts?: Array; + allowedOffices?: Array; + systemDefined?: boolean; +} + diff --git a/packages/fineract-client/src/models/getAccountTransferTemplateResponse.ts b/packages/fineract-client/src/models/getAccountTransferTemplateResponse.ts new file mode 100644 index 0000000000..e72018fbe2 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransferTemplateResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFromAccountOptions } from './getFromAccountOptions'; +import { GetAccountOptions } from './getAccountOptions'; + + +/** + * GetAccountTransferTemplateResponse + */ +export interface GetAccountTransferTemplateResponse { + accountTypeOptions?: Set; + fromAccountTypeOptions?: Set; + toAccountTypeOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersFromAccountType.ts b/packages/fineract-client/src/models/getAccountTransfersFromAccountType.ts new file mode 100644 index 0000000000..b69e3ffcc5 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersFromAccountType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersFromAccountType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersFromAccountTypeOptions.ts b/packages/fineract-client/src/models/getAccountTransfersFromAccountTypeOptions.ts new file mode 100644 index 0000000000..a7e9cb336d --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersFromAccountTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersFromAccountTypeOptions { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersFromClientOptions.ts b/packages/fineract-client/src/models/getAccountTransfersFromClientOptions.ts new file mode 100644 index 0000000000..7a67297975 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersFromClientOptions.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersFromClientOptions { + displayName?: string; + id?: number; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersFromOffice.ts b/packages/fineract-client/src/models/getAccountTransfersFromOffice.ts new file mode 100644 index 0000000000..a07186101d --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersFromOffice.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersFromOffice { + externalId?: number; + hierarchy?: string; + id?: number; + name?: string; + nameDecorated?: string; + openingDate?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersFromOfficeOptions.ts b/packages/fineract-client/src/models/getAccountTransfersFromOfficeOptions.ts new file mode 100644 index 0000000000..866963db24 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersFromOfficeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersFromOfficeOptions { + id?: number; + name?: string; + nameDecorated?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersPageItems.ts b/packages/fineract-client/src/models/getAccountTransfersPageItems.ts new file mode 100644 index 0000000000..19b408b6e1 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersPageItems.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountTransfersPageItemsFromAccount } from './getAccountTransfersPageItemsFromAccount'; +import { GetAccountTransfersPageItemsCurrency } from './getAccountTransfersPageItemsCurrency'; +import { GetAccountTransfersFromClientOptions } from './getAccountTransfersFromClientOptions'; +import { GetAccountTransfersPageItemsToAccountType } from './getAccountTransfersPageItemsToAccountType'; +import { GetAccountTransfersPageItemsFromOffice } from './getAccountTransfersPageItemsFromOffice'; +import { GetAccountTransfersFromAccountType } from './getAccountTransfersFromAccountType'; + + +export interface GetAccountTransfersPageItems { + currency?: GetAccountTransfersPageItemsCurrency; + fromAccount?: GetAccountTransfersPageItemsFromAccount; + fromAccountType?: GetAccountTransfersFromAccountType; + fromClient?: GetAccountTransfersFromClientOptions; + fromOffice?: GetAccountTransfersPageItemsFromOffice; + id?: number; + reversed?: boolean; + toAccount?: GetAccountTransfersPageItemsFromAccount; + toAccountType?: GetAccountTransfersPageItemsToAccountType; + toClient?: GetAccountTransfersFromClientOptions; + toOffice?: GetAccountTransfersPageItemsFromOffice; + transferAmount?: number; + transferDate?: string; + transferDescription?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersPageItemsCurrency.ts b/packages/fineract-client/src/models/getAccountTransfersPageItemsCurrency.ts new file mode 100644 index 0000000000..8a0931a9e5 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersPageItemsCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersPageItemsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersPageItemsFromAccount.ts b/packages/fineract-client/src/models/getAccountTransfersPageItemsFromAccount.ts new file mode 100644 index 0000000000..bc4468d78c --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersPageItemsFromAccount.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersPageItemsFromAccount { + accountNo?: number; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersPageItemsFromOffice.ts b/packages/fineract-client/src/models/getAccountTransfersPageItemsFromOffice.ts new file mode 100644 index 0000000000..1541fa0ce3 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersPageItemsFromOffice.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersPageItemsFromOffice { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersPageItemsToAccountType.ts b/packages/fineract-client/src/models/getAccountTransfersPageItemsToAccountType.ts new file mode 100644 index 0000000000..e495924c30 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersPageItemsToAccountType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersPageItemsToAccountType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersResponse.ts b/packages/fineract-client/src/models/getAccountTransfersResponse.ts new file mode 100644 index 0000000000..a1b52b0be0 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountTransfersPageItems } from './getAccountTransfersPageItems'; + + +/** + * GetAccountTransfersResponse + */ +export interface GetAccountTransfersResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersStatus.ts b/packages/fineract-client/src/models/getAccountTransfersStatus.ts new file mode 100644 index 0000000000..3c4a39a670 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersStatus.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersStatus { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferCurrency.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferCurrency.ts new file mode 100644 index 0000000000..b49ebc624f --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersTemplateRefundByTransferCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromAccount.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromAccount.ts new file mode 100644 index 0000000000..e8a824f86f --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromAccount.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountTransfersTemplateRefundByTransferCurrency } from './getAccountTransfersTemplateRefundByTransferCurrency'; + + +export interface GetAccountTransfersTemplateRefundByTransferFromAccount { + accountNo?: number; + amtForTransfer?: number; + clientId?: number; + clientName?: string; + currency?: GetAccountTransfersTemplateRefundByTransferCurrency; + fieldOfficerId?: number; + id?: number; + productId?: number; + productName?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromAccountOptions.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromAccountOptions.ts new file mode 100644 index 0000000000..3649631883 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromAccountOptions.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountTransfersTemplateRefundByTransferCurrency } from './getAccountTransfersTemplateRefundByTransferCurrency'; + + +export interface GetAccountTransfersTemplateRefundByTransferFromAccountOptions { + accountNo?: number; + clientId?: number; + clientName?: string; + currency?: GetAccountTransfersTemplateRefundByTransferCurrency; + fieldOfficerId?: number; + id?: number; + productId?: number; + productName?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromClient.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromClient.ts new file mode 100644 index 0000000000..c7087e1a14 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromClient.ts @@ -0,0 +1,33 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountTransfersStatus } from './getAccountTransfersStatus'; +import { GetAccountTransfersTimeline } from './getAccountTransfersTimeline'; + + +export interface GetAccountTransfersTemplateRefundByTransferFromClient { + accountNo?: number; + activationDate?: string; + active?: boolean; + clientClassification?: object; + clientType?: object; + displayName?: string; + firstname?: string; + gender?: object; + groups?: object; + id?: number; + lastname?: string; + officeId?: number; + officeName?: string; + status?: GetAccountTransfersStatus; + timeline?: GetAccountTransfersTimeline; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromClientOptions.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromClientOptions.ts new file mode 100644 index 0000000000..44aad1c177 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromClientOptions.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersTemplateRefundByTransferFromClientOptions { + displayName?: string; + id?: number; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromOffice.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromOffice.ts new file mode 100644 index 0000000000..d19fee323b --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromOffice.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersTemplateRefundByTransferFromOffice { + externalId?: number; + hierarchy?: string; + id?: number; + name?: string; + nameDecorated?: string; + openingDate?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromOfficeOptions.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromOfficeOptions.ts new file mode 100644 index 0000000000..8cbbcc3dbc --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferFromOfficeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersTemplateRefundByTransferFromOfficeOptions { + id?: number; + name?: string; + nameDecorated?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferResponse.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferResponse.ts new file mode 100644 index 0000000000..d436f77c62 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferResponse.ts @@ -0,0 +1,49 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountTransfersTemplateRefundByTransferFromOffice } from './getAccountTransfersTemplateRefundByTransferFromOffice'; +import { GetAccountTransfersTemplateRefundByTransferToAccount } from './getAccountTransfersTemplateRefundByTransferToAccount'; +import { GetAccountTransfersTemplateRefundByTransferFromAccountOptions } from './getAccountTransfersTemplateRefundByTransferFromAccountOptions'; +import { GetAccountTransfersPageItemsToAccountType } from './getAccountTransfersPageItemsToAccountType'; +import { GetAccountTransfersTemplateRefundByTransferCurrency } from './getAccountTransfersTemplateRefundByTransferCurrency'; +import { GetAccountTransfersTemplateRefundByTransferFromOfficeOptions } from './getAccountTransfersTemplateRefundByTransferFromOfficeOptions'; +import { GetAccountTransfersTemplateRefundByTransferFromAccount } from './getAccountTransfersTemplateRefundByTransferFromAccount'; +import { GetAccountTransfersTemplateRefundByTransferFromClientOptions } from './getAccountTransfersTemplateRefundByTransferFromClientOptions'; +import { GetAccountTransfersFromAccountType } from './getAccountTransfersFromAccountType'; +import { GetAccountTransfersTemplateRefundByTransferFromClient } from './getAccountTransfersTemplateRefundByTransferFromClient'; +import { GetAccountTransfersTemplateRefundByTransferToClient } from './getAccountTransfersTemplateRefundByTransferToClient'; + + +/** + * GetAccountTransfersTemplateRefundByTransferResponse + */ +export interface GetAccountTransfersTemplateRefundByTransferResponse { + currency?: GetAccountTransfersTemplateRefundByTransferCurrency; + fromAccount?: GetAccountTransfersTemplateRefundByTransferFromAccount; + fromAccountOptions?: Set; + fromAccountType?: GetAccountTransfersPageItemsToAccountType; + fromAccountTypeOptions?: Set; + fromClient?: GetAccountTransfersTemplateRefundByTransferFromClient; + fromClientOptions?: Set; + fromOffice?: GetAccountTransfersTemplateRefundByTransferFromOffice; + fromOfficeOptions?: Set; + toAccount?: GetAccountTransfersTemplateRefundByTransferToAccount; + toAccountOptions?: Set; + toAccountType?: GetAccountTransfersFromAccountType; + toAccountTypeOptions?: Set; + toClient?: GetAccountTransfersTemplateRefundByTransferToClient; + toClientOptions?: Set; + toOffice?: GetAccountTransfersTemplateRefundByTransferFromOffice; + toOfficeOptions?: Set; + transferAmount?: number; + transferDate?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferToAccount.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferToAccount.ts new file mode 100644 index 0000000000..c002ca2569 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferToAccount.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountTransfersTemplateRefundByTransferCurrency } from './getAccountTransfersTemplateRefundByTransferCurrency'; + + +export interface GetAccountTransfersTemplateRefundByTransferToAccount { + accountNo?: number; + clientId?: number; + clientName?: string; + currency?: GetAccountTransfersTemplateRefundByTransferCurrency; + fieldOfficerId?: number; + id?: number; + productId?: number; + productName?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferToClient.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferToClient.ts new file mode 100644 index 0000000000..44a80b8155 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateRefundByTransferToClient.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersTemplateRefundByTransferToClient { + displayName?: string; + id?: number; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTemplateResponse.ts b/packages/fineract-client/src/models/getAccountTransfersTemplateResponse.ts new file mode 100644 index 0000000000..75c6405909 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTemplateResponse.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountTransfersFromAccountTypeOptions } from './getAccountTransfersFromAccountTypeOptions'; +import { GetAccountTransfersFromOffice } from './getAccountTransfersFromOffice'; +import { GetAccountTransfersFromClientOptions } from './getAccountTransfersFromClientOptions'; +import { GetAccountTransfersFromOfficeOptions } from './getAccountTransfersFromOfficeOptions'; +import { GetAccountTransfersToAccountTypeOptions } from './getAccountTransfersToAccountTypeOptions'; +import { GetAccountTransfersToOfficeOptions } from './getAccountTransfersToOfficeOptions'; +import { GetAccountTransfersFromAccountType } from './getAccountTransfersFromAccountType'; + + +/** + * GetAccountTransfersTemplateResponse + */ +export interface GetAccountTransfersTemplateResponse { + fromAccountType?: GetAccountTransfersFromAccountType; + fromAccountTypeOptions?: Set; + fromClientOptions?: Set; + fromOffice?: GetAccountTransfersFromOffice; + fromOfficeOptions?: Set; + toAccountTypeOptions?: Set; + toOfficeOptions?: Set; + transferAmount?: number; + transferDate?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersTimeline.ts b/packages/fineract-client/src/models/getAccountTransfersTimeline.ts new file mode 100644 index 0000000000..130c1b85f5 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersTimeline.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersTimeline { + activatedByFirstname?: string; + activatedByLastname?: string; + activatedByUsername?: string; + activatedOnDate?: string; + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersToAccountTypeOptions.ts b/packages/fineract-client/src/models/getAccountTransfersToAccountTypeOptions.ts new file mode 100644 index 0000000000..8934d884ff --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersToAccountTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersToAccountTypeOptions { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountTransfersToOfficeOptions.ts b/packages/fineract-client/src/models/getAccountTransfersToOfficeOptions.ts new file mode 100644 index 0000000000..a955467757 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountTransfersToOfficeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountTransfersToOfficeOptions { + id?: number; + name?: string; + nameDecorated?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountsChargeCalculationType.ts b/packages/fineract-client/src/models/getAccountsChargeCalculationType.ts new file mode 100644 index 0000000000..4dbedaaa5e --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountsChargeTimeType.ts b/packages/fineract-client/src/models/getAccountsChargeTimeType.ts new file mode 100644 index 0000000000..a7dbbc386d --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountsCharges.ts b/packages/fineract-client/src/models/getAccountsCharges.ts new file mode 100644 index 0000000000..f1429fb854 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsCharges.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountsChargeTimeType } from './getAccountsChargeTimeType'; +import { GetAccountsChargesCurrency } from './getAccountsChargesCurrency'; +import { GetAccountsChargeCalculationType } from './getAccountsChargeCalculationType'; + + +export interface GetAccountsCharges { + accountId?: number; + amount?: number; + amountOrPercentage?: number; + amountOutstanding?: number; + amountPaid?: number; + amountPercentageAppliedTo?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetAccountsChargeCalculationType; + chargeId?: number; + chargeTimeType?: GetAccountsChargeTimeType; + currency?: GetAccountsChargesCurrency; + id?: number; + isActive?: boolean; + name?: string; + percentage?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountsChargesCurrency.ts b/packages/fineract-client/src/models/getAccountsChargesCurrency.ts new file mode 100644 index 0000000000..ab4f436546 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsChargesCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsChargesCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountsCurrency.ts b/packages/fineract-client/src/models/getAccountsCurrency.ts new file mode 100644 index 0000000000..9f879e5c0d --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountsLinkedToPocketResponse.ts b/packages/fineract-client/src/models/getAccountsLinkedToPocketResponse.ts new file mode 100644 index 0000000000..f4d66fcba0 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsLinkedToPocketResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetPocketSavingAccounts } from './getPocketSavingAccounts'; +import { GetPocketLoanAccounts } from './getPocketLoanAccounts'; + + +/** + * GetAccountsLinkedToPocketResponse + */ +export interface GetAccountsLinkedToPocketResponse { + loanAccounts?: Set; + savingAccounts?: Set; + shareAccounts?: Set; +} + diff --git a/packages/fineract-client/src/models/getAccountsLockPeriodTypeEnum.ts b/packages/fineract-client/src/models/getAccountsLockPeriodTypeEnum.ts new file mode 100644 index 0000000000..68514b320b --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsLockPeriodTypeEnum.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsLockPeriodTypeEnum { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountsPageItems.ts b/packages/fineract-client/src/models/getAccountsPageItems.ts new file mode 100644 index 0000000000..6e9cb6ef62 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsPageItems.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountsTypeTimeline } from './getAccountsTypeTimeline'; +import { GetAccountsChargesCurrency } from './getAccountsChargesCurrency'; +import { GetAccountsTypeSummary } from './getAccountsTypeSummary'; +import { GetAccountsTypeStatus } from './getAccountsTypeStatus'; +import { GetAccountsTypePurchasedShares } from './getAccountsTypePurchasedShares'; + + +export interface GetAccountsPageItems { + accountNo?: number; + clientId?: number; + clientName?: string; + currency?: GetAccountsChargesCurrency; + id?: number; + productId?: number; + productName?: string; + purchasedShares?: Set; + status?: GetAccountsTypeStatus; + summary?: GetAccountsTypeSummary; + timeline?: GetAccountsTypeTimeline; +} + diff --git a/packages/fineract-client/src/models/getAccountsPurchasedShares.ts b/packages/fineract-client/src/models/getAccountsPurchasedShares.ts new file mode 100644 index 0000000000..7bef1b0fac --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsPurchasedShares.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountsPurchasedSharesType } from './getAccountsPurchasedSharesType'; +import { GetAccountsPurchasedSharesStatus } from './getAccountsPurchasedSharesStatus'; + + +export interface GetAccountsPurchasedShares { + accountId?: number; + amount?: number; + amountPaid?: number; + chargeAmount?: number; + id?: number; + numberOfShares?: number; + purchasedDate?: string; + purchasedPrice?: number; + status?: GetAccountsPurchasedSharesStatus; + type?: GetAccountsPurchasedSharesType; +} + diff --git a/packages/fineract-client/src/models/getAccountsPurchasedSharesStatus.ts b/packages/fineract-client/src/models/getAccountsPurchasedSharesStatus.ts new file mode 100644 index 0000000000..fe96a5dd06 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsPurchasedSharesStatus.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsPurchasedSharesStatus { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountsPurchasedSharesType.ts b/packages/fineract-client/src/models/getAccountsPurchasedSharesType.ts new file mode 100644 index 0000000000..154e91261e --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsPurchasedSharesType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsPurchasedSharesType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountsStatus.ts b/packages/fineract-client/src/models/getAccountsStatus.ts new file mode 100644 index 0000000000..c4903e6168 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsStatus.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsStatus { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + description?: string; + id?: number; + rejected?: boolean; + submittedAndPendingApproval?: boolean; +} + diff --git a/packages/fineract-client/src/models/getAccountsSummary.ts b/packages/fineract-client/src/models/getAccountsSummary.ts new file mode 100644 index 0000000000..594b48baef --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsSummary.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountsTimeline } from './getAccountsTimeline'; +import { GetAccountsStatus } from './getAccountsStatus'; +import { GetAccountsCurrency } from './getAccountsCurrency'; + + +export interface GetAccountsSummary { + accountNo?: number; + currency?: GetAccountsCurrency; + id?: number; + productId?: number; + productName?: string; + status?: GetAccountsStatus; + timeline?: GetAccountsTimeline; + totalApprovedShares?: number; + totalPendingForApprovalShares?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountsTimeline.ts b/packages/fineract-client/src/models/getAccountsTimeline.ts new file mode 100644 index 0000000000..74589e0d76 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsTimeline.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsTimeline { + activatedDate?: string; + approvedByFirstname?: string; + approvedByLastname?: string; + approvedByUsername?: string; + approvedDate?: string; + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getAccountsTypeAccountIdResponse.ts b/packages/fineract-client/src/models/getAccountsTypeAccountIdResponse.ts new file mode 100644 index 0000000000..4401eef525 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsTypeAccountIdResponse.ts @@ -0,0 +1,47 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountsCharges } from './getAccountsCharges'; +import { GetAccountsTimeline } from './getAccountsTimeline'; +import { GetAccountsStatus } from './getAccountsStatus'; +import { GetAccountsPurchasedShares } from './getAccountsPurchasedShares'; +import { GetAccountsSummary } from './getAccountsSummary'; +import { GetAccountsLockPeriodTypeEnum } from './getAccountsLockPeriodTypeEnum'; +import { GetAccountsCurrency } from './getAccountsCurrency'; + + +/** + * GetAccountsTypeAccountIdResponse + */ +export interface GetAccountsTypeAccountIdResponse { + accountNo?: number; + allowDividendCalculationForInactiveClients?: boolean; + charges?: Set; + clientId?: number; + clientName?: string; + currency?: GetAccountsCurrency; + currentMarketPrice?: number; + dividends?: Array; + id?: number; + lockPeriodTypeEnum?: GetAccountsLockPeriodTypeEnum; + lockinPeriod?: number; + minimumActivePeriod?: number; + minimumActivePeriodTypeEnum?: GetAccountsLockPeriodTypeEnum; + productId?: number; + productName?: string; + purchasedShares?: Set; + savingsAccountId?: number; + savingsAccountNumber?: number; + status?: GetAccountsStatus; + summary?: GetAccountsSummary; + timeline?: GetAccountsTimeline; +} + diff --git a/packages/fineract-client/src/models/getAccountsTypeProductOptions.ts b/packages/fineract-client/src/models/getAccountsTypeProductOptions.ts new file mode 100644 index 0000000000..0d1fb1f267 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsTypeProductOptions.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsTypeProductOptions { + id?: number; + name?: string; + shortName?: string; + totalShares?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountsTypePurchasedShares.ts b/packages/fineract-client/src/models/getAccountsTypePurchasedShares.ts new file mode 100644 index 0000000000..fbc9047b2c --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsTypePurchasedShares.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsTypePurchasedShares { + id?: number; + numberOfShares?: number; + purchasedDate?: string; + purchasedPrice?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountsTypeResponse.ts b/packages/fineract-client/src/models/getAccountsTypeResponse.ts new file mode 100644 index 0000000000..4f9c18b6c0 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsTypeResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountsPageItems } from './getAccountsPageItems'; + + +/** + * GetAccountsTypeResponse + */ +export interface GetAccountsTypeResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getAccountsTypeStatus.ts b/packages/fineract-client/src/models/getAccountsTypeStatus.ts new file mode 100644 index 0000000000..59cd937d1e --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsTypeStatus.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsTypeStatus { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + description?: string; + id?: number; + rejected?: boolean; + submittedAndPendingApproval?: boolean; +} + diff --git a/packages/fineract-client/src/models/getAccountsTypeSummary.ts b/packages/fineract-client/src/models/getAccountsTypeSummary.ts new file mode 100644 index 0000000000..f41867dc3f --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsTypeSummary.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountsChargesCurrency } from './getAccountsChargesCurrency'; + + +export interface GetAccountsTypeSummary { + currency?: GetAccountsChargesCurrency; +} + diff --git a/packages/fineract-client/src/models/getAccountsTypeTemplateResponse.ts b/packages/fineract-client/src/models/getAccountsTypeTemplateResponse.ts new file mode 100644 index 0000000000..0119c0e487 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsTypeTemplateResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountsTypeProductOptions } from './getAccountsTypeProductOptions'; + + +/** + * GetAccountsTypeTemplateResponse + */ +export interface GetAccountsTypeTemplateResponse { + clientId?: number; + clientName?: string; + productOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getAccountsTypeTimeline.ts b/packages/fineract-client/src/models/getAccountsTypeTimeline.ts new file mode 100644 index 0000000000..46da6cc716 --- /dev/null +++ b/packages/fineract-client/src/models/getAccountsTypeTimeline.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAccountsTypeTimeline { + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getAssetType.ts b/packages/fineract-client/src/models/getAssetType.ts new file mode 100644 index 0000000000..18ee99e5b2 --- /dev/null +++ b/packages/fineract-client/src/models/getAssetType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetAssetType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getBusinessJobConfigResponse.ts b/packages/fineract-client/src/models/getBusinessJobConfigResponse.ts new file mode 100644 index 0000000000..fb8bf1e311 --- /dev/null +++ b/packages/fineract-client/src/models/getBusinessJobConfigResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetBusinessJobConfigResponse + */ +export interface GetBusinessJobConfigResponse { + businessJobs?: Array; +} + diff --git a/packages/fineract-client/src/models/getBusinessStepConfigResponse.ts b/packages/fineract-client/src/models/getBusinessStepConfigResponse.ts new file mode 100644 index 0000000000..f255b7d789 --- /dev/null +++ b/packages/fineract-client/src/models/getBusinessStepConfigResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { BusinessStep } from './businessStep'; + + +/** + * GetBusinessStepConfigResponse + */ +export interface GetBusinessStepConfigResponse { + businessSteps?: Array; + jobName?: string; +} + diff --git a/packages/fineract-client/src/models/getCachesResponse.ts b/packages/fineract-client/src/models/getCachesResponse.ts new file mode 100644 index 0000000000..0e62f2e3af --- /dev/null +++ b/packages/fineract-client/src/models/getCachesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +/** + * GetCachesResponse + */ +export interface GetCachesResponse { + cacheType?: EnumOptionData; + enabled?: boolean; +} + diff --git a/packages/fineract-client/src/models/getCentersAccountType.ts b/packages/fineract-client/src/models/getCentersAccountType.ts new file mode 100644 index 0000000000..9a91a59b69 --- /dev/null +++ b/packages/fineract-client/src/models/getCentersAccountType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCentersAccountType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getCentersCenterIdAccountsResponse.ts b/packages/fineract-client/src/models/getCentersCenterIdAccountsResponse.ts new file mode 100644 index 0000000000..2caf3b5f95 --- /dev/null +++ b/packages/fineract-client/src/models/getCentersCenterIdAccountsResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetCentersSavingsAccounts } from './getCentersSavingsAccounts'; + + +/** + * GetCentersCenterIdAccountsResponse + */ +export interface GetCentersCenterIdAccountsResponse { + savingsAccounts?: Set; +} + diff --git a/packages/fineract-client/src/models/getCentersCenterIdCurrency.ts b/packages/fineract-client/src/models/getCentersCenterIdCurrency.ts new file mode 100644 index 0000000000..651c15a301 --- /dev/null +++ b/packages/fineract-client/src/models/getCentersCenterIdCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCentersCenterIdCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getCentersCenterIdResponse.ts b/packages/fineract-client/src/models/getCentersCenterIdResponse.ts new file mode 100644 index 0000000000..20aa707f2b --- /dev/null +++ b/packages/fineract-client/src/models/getCentersCenterIdResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetCentersStatus } from './getCentersStatus'; + + +/** + * GetCentersCenterIdResponse + */ +export interface GetCentersCenterIdResponse { + active?: boolean; + hierarchy?: string; + id?: number; + name?: string; + officeId?: number; + officeName?: string; + status?: GetCentersStatus; +} + diff --git a/packages/fineract-client/src/models/getCentersCenterIdStatus.ts b/packages/fineract-client/src/models/getCentersCenterIdStatus.ts new file mode 100644 index 0000000000..0db53e6e84 --- /dev/null +++ b/packages/fineract-client/src/models/getCentersCenterIdStatus.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCentersCenterIdStatus { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + description?: string; + id?: number; + prematureClosed?: boolean; + rejected?: boolean; + submittedAndPendingApproval?: boolean; + transferInProgress?: boolean; + transferOnHold?: boolean; + withdrawnByApplicant?: boolean; +} + diff --git a/packages/fineract-client/src/models/getCentersDepositType.ts b/packages/fineract-client/src/models/getCentersDepositType.ts new file mode 100644 index 0000000000..baf03daeab --- /dev/null +++ b/packages/fineract-client/src/models/getCentersDepositType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCentersDepositType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getCentersOfficeOptions.ts b/packages/fineract-client/src/models/getCentersOfficeOptions.ts new file mode 100644 index 0000000000..9f811218c6 --- /dev/null +++ b/packages/fineract-client/src/models/getCentersOfficeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCentersOfficeOptions { + id?: number; + name?: string; + nameDecorated?: string; +} + diff --git a/packages/fineract-client/src/models/getCentersPageItems.ts b/packages/fineract-client/src/models/getCentersPageItems.ts new file mode 100644 index 0000000000..b28ebbeb23 --- /dev/null +++ b/packages/fineract-client/src/models/getCentersPageItems.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetCentersStatus } from './getCentersStatus'; + + +export interface GetCentersPageItems { + active?: boolean; + hierarchy?: string; + id?: number; + name?: string; + officeId?: number; + officeName?: string; + status?: GetCentersStatus; +} + diff --git a/packages/fineract-client/src/models/getCentersResponse.ts b/packages/fineract-client/src/models/getCentersResponse.ts new file mode 100644 index 0000000000..726a83863a --- /dev/null +++ b/packages/fineract-client/src/models/getCentersResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetCentersPageItems } from './getCentersPageItems'; + + +/** + * GetCentersResponse + */ +export interface GetCentersResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getCentersSavingsAccounts.ts b/packages/fineract-client/src/models/getCentersSavingsAccounts.ts new file mode 100644 index 0000000000..641d230da8 --- /dev/null +++ b/packages/fineract-client/src/models/getCentersSavingsAccounts.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetCentersTimeline } from './getCentersTimeline'; +import { GetCentersCenterIdCurrency } from './getCentersCenterIdCurrency'; +import { GetCentersAccountType } from './getCentersAccountType'; +import { GetCentersCenterIdStatus } from './getCentersCenterIdStatus'; +import { GetCentersDepositType } from './getCentersDepositType'; + + +export interface GetCentersSavingsAccounts { + accountNo?: number; + accountType?: GetCentersAccountType; + currency?: GetCentersCenterIdCurrency; + depositType?: GetCentersDepositType; + id?: number; + productId?: number; + productName?: string; + status?: GetCentersCenterIdStatus; + timeline?: GetCentersTimeline; +} + diff --git a/packages/fineract-client/src/models/getCentersStaffOptions.ts b/packages/fineract-client/src/models/getCentersStaffOptions.ts new file mode 100644 index 0000000000..1ef36907ad --- /dev/null +++ b/packages/fineract-client/src/models/getCentersStaffOptions.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCentersStaffOptions { + displayName?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getCentersStatus.ts b/packages/fineract-client/src/models/getCentersStatus.ts new file mode 100644 index 0000000000..c1af538aa0 --- /dev/null +++ b/packages/fineract-client/src/models/getCentersStatus.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCentersStatus { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getCentersTemplateResponse.ts b/packages/fineract-client/src/models/getCentersTemplateResponse.ts new file mode 100644 index 0000000000..de6515100f --- /dev/null +++ b/packages/fineract-client/src/models/getCentersTemplateResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetCentersOfficeOptions } from './getCentersOfficeOptions'; +import { GetCentersStaffOptions } from './getCentersStaffOptions'; + + +/** + * GetCentersTemplateResponse + */ +export interface GetCentersTemplateResponse { + activationDate?: string; + active?: boolean; + officeId?: number; + officeOptions?: Set; + staffOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getCentersTimeline.ts b/packages/fineract-client/src/models/getCentersTimeline.ts new file mode 100644 index 0000000000..f3fa5413ad --- /dev/null +++ b/packages/fineract-client/src/models/getCentersTimeline.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCentersTimeline { + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getChargeAppliesTo.ts b/packages/fineract-client/src/models/getChargeAppliesTo.ts new file mode 100644 index 0000000000..4502a0f310 --- /dev/null +++ b/packages/fineract-client/src/models/getChargeAppliesTo.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargeAppliesTo { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargeCalculationType.ts b/packages/fineract-client/src/models/getChargeCalculationType.ts new file mode 100644 index 0000000000..6c2e1320e0 --- /dev/null +++ b/packages/fineract-client/src/models/getChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargePaymentMode.ts b/packages/fineract-client/src/models/getChargePaymentMode.ts new file mode 100644 index 0000000000..c1c0e392dd --- /dev/null +++ b/packages/fineract-client/src/models/getChargePaymentMode.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargePaymentMode { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargeTimeType.ts b/packages/fineract-client/src/models/getChargeTimeType.ts new file mode 100644 index 0000000000..55a4386fb7 --- /dev/null +++ b/packages/fineract-client/src/models/getChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargesAppliesTo.ts b/packages/fineract-client/src/models/getChargesAppliesTo.ts new file mode 100644 index 0000000000..6590204bf4 --- /dev/null +++ b/packages/fineract-client/src/models/getChargesAppliesTo.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesAppliesTo { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargesAppliesToResponse.ts b/packages/fineract-client/src/models/getChargesAppliesToResponse.ts new file mode 100644 index 0000000000..6d1aaab4ee --- /dev/null +++ b/packages/fineract-client/src/models/getChargesAppliesToResponse.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesAppliesToResponse { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargesCalculationTypeResponse.ts b/packages/fineract-client/src/models/getChargesCalculationTypeResponse.ts new file mode 100644 index 0000000000..1e504892af --- /dev/null +++ b/packages/fineract-client/src/models/getChargesCalculationTypeResponse.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesCalculationTypeResponse { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargesChargeCalculationType.ts b/packages/fineract-client/src/models/getChargesChargeCalculationType.ts new file mode 100644 index 0000000000..b9b68b4914 --- /dev/null +++ b/packages/fineract-client/src/models/getChargesChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargesChargeTimeType.ts b/packages/fineract-client/src/models/getChargesChargeTimeType.ts new file mode 100644 index 0000000000..dd904ec68d --- /dev/null +++ b/packages/fineract-client/src/models/getChargesChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargesCurrency.ts b/packages/fineract-client/src/models/getChargesCurrency.ts new file mode 100644 index 0000000000..d8c9c360fc --- /dev/null +++ b/packages/fineract-client/src/models/getChargesCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getChargesCurrencyResponse.ts b/packages/fineract-client/src/models/getChargesCurrencyResponse.ts new file mode 100644 index 0000000000..6b32ad7cf8 --- /dev/null +++ b/packages/fineract-client/src/models/getChargesCurrencyResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesCurrencyResponse { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getChargesPaymentModeResponse.ts b/packages/fineract-client/src/models/getChargesPaymentModeResponse.ts new file mode 100644 index 0000000000..e742f8991b --- /dev/null +++ b/packages/fineract-client/src/models/getChargesPaymentModeResponse.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesPaymentModeResponse { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargesResponse.ts b/packages/fineract-client/src/models/getChargesResponse.ts new file mode 100644 index 0000000000..89c7ee796b --- /dev/null +++ b/packages/fineract-client/src/models/getChargesResponse.ts @@ -0,0 +1,34 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetChargesAppliesToResponse } from './getChargesAppliesToResponse'; +import { GetChargesPaymentModeResponse } from './getChargesPaymentModeResponse'; +import { GetChargesCalculationTypeResponse } from './getChargesCalculationTypeResponse'; +import { GetChargesTimeTypeResponse } from './getChargesTimeTypeResponse'; +import { GetChargesCurrencyResponse } from './getChargesCurrencyResponse'; + + +/** + * GetChargesResponse + */ +export interface GetChargesResponse { + active?: boolean; + amount?: number; + chargeAppliesTo?: GetChargesAppliesToResponse; + chargeCalculationType?: GetChargesCalculationTypeResponse; + chargePaymentMode?: GetChargesPaymentModeResponse; + chargeTimeType?: GetChargesTimeTypeResponse; + currency?: GetChargesCurrencyResponse; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getChargesTemplateFeeFrequencyOptions.ts b/packages/fineract-client/src/models/getChargesTemplateFeeFrequencyOptions.ts new file mode 100644 index 0000000000..019c8dcd21 --- /dev/null +++ b/packages/fineract-client/src/models/getChargesTemplateFeeFrequencyOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesTemplateFeeFrequencyOptions { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargesTemplateLoanChargeCalculationTypeOptions.ts b/packages/fineract-client/src/models/getChargesTemplateLoanChargeCalculationTypeOptions.ts new file mode 100644 index 0000000000..ffb676e575 --- /dev/null +++ b/packages/fineract-client/src/models/getChargesTemplateLoanChargeCalculationTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesTemplateLoanChargeCalculationTypeOptions { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargesTemplateLoanChargeTimeTypeOptions.ts b/packages/fineract-client/src/models/getChargesTemplateLoanChargeTimeTypeOptions.ts new file mode 100644 index 0000000000..e792ae998c --- /dev/null +++ b/packages/fineract-client/src/models/getChargesTemplateLoanChargeTimeTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesTemplateLoanChargeTimeTypeOptions { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getChargesTemplateResponse.ts b/packages/fineract-client/src/models/getChargesTemplateResponse.ts new file mode 100644 index 0000000000..1356537d97 --- /dev/null +++ b/packages/fineract-client/src/models/getChargesTemplateResponse.ts @@ -0,0 +1,39 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetChargesTemplateLoanChargeCalculationTypeOptions } from './getChargesTemplateLoanChargeCalculationTypeOptions'; +import { GetChargesAppliesToResponse } from './getChargesAppliesToResponse'; +import { GetChargesPaymentModeResponse } from './getChargesPaymentModeResponse'; +import { GetChargesTemplateLoanChargeTimeTypeOptions } from './getChargesTemplateLoanChargeTimeTypeOptions'; +import { GetChargesCalculationTypeResponse } from './getChargesCalculationTypeResponse'; +import { GetChargesTemplateFeeFrequencyOptions } from './getChargesTemplateFeeFrequencyOptions'; +import { GetChargesTimeTypeResponse } from './getChargesTimeTypeResponse'; +import { GetChargesCurrencyResponse } from './getChargesCurrencyResponse'; + + +/** + * GetChargesTemplateResponse + */ +export interface GetChargesTemplateResponse { + active?: boolean; + chargeAppliesToOptions?: Set; + chargeCalculationTypeOptions?: Set; + chargePaymentModeOptions?: Set; + chargeTimeTypeOptions?: Set; + currencyOptions?: Set; + feeFrequencyOptions?: Set; + loanChargeCalculationTypeOptions?: Set; + loanChargeTimeTypeOptions?: Set; + penalty?: boolean; + savingsChargeCalculationTypeOptions?: Set; + savingsChargeTimeTypeOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getChargesTimeTypeResponse.ts b/packages/fineract-client/src/models/getChargesTimeTypeResponse.ts new file mode 100644 index 0000000000..861cfcdf57 --- /dev/null +++ b/packages/fineract-client/src/models/getChargesTimeTypeResponse.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetChargesTimeTypeResponse { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getClientChargeCalculationType.ts b/packages/fineract-client/src/models/getClientChargeCalculationType.ts new file mode 100644 index 0000000000..3be3a65839 --- /dev/null +++ b/packages/fineract-client/src/models/getClientChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getClientChargeCurrency.ts b/packages/fineract-client/src/models/getClientChargeCurrency.ts new file mode 100644 index 0000000000..cc38f9e837 --- /dev/null +++ b/packages/fineract-client/src/models/getClientChargeCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientChargeCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getClientChargeTimeType.ts b/packages/fineract-client/src/models/getClientChargeTimeType.ts new file mode 100644 index 0000000000..7f66a70a7f --- /dev/null +++ b/packages/fineract-client/src/models/getClientChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getClientClientIdAddressesResponse.ts b/packages/fineract-client/src/models/getClientClientIdAddressesResponse.ts new file mode 100644 index 0000000000..2ee176fe88 --- /dev/null +++ b/packages/fineract-client/src/models/getClientClientIdAddressesResponse.ts @@ -0,0 +1,38 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetClientClientIdAddressesResponse + */ +export interface GetClientClientIdAddressesResponse { + addressId?: number; + addressLine1?: string; + addressLine2?: string; + addressLine3?: string; + addressType?: string; + addressTypeId?: number; + city?: string; + client_id?: number; + countryId?: number; + countryName?: string; + countyDistrict?: string; + createdBy?: string; + isActive?: boolean; + postalCode?: number; + stateName?: string; + stateProvinceId?: number; + street?: string; + townVillage?: string; + updatedBy?: string; +} + diff --git a/packages/fineract-client/src/models/getClientIdProductIdAccountingMappings.ts b/packages/fineract-client/src/models/getClientIdProductIdAccountingMappings.ts new file mode 100644 index 0000000000..f585e5db3f --- /dev/null +++ b/packages/fineract-client/src/models/getClientIdProductIdAccountingMappings.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetShareAccountsIncomeFromFeeAccountId } from './getShareAccountsIncomeFromFeeAccountId'; +import { GetShareAccountsShareReferenceId } from './getShareAccountsShareReferenceId'; +import { GetShareAccountsShareEquityId } from './getShareAccountsShareEquityId'; +import { GetShareAccountsShareSuspenseId } from './getShareAccountsShareSuspenseId'; + + +export interface GetClientIdProductIdAccountingMappings { + ShareEquityId?: GetShareAccountsShareEquityId; + incomeFromFeeAccountId?: GetShareAccountsIncomeFromFeeAccountId; + shareReferenceId?: GetShareAccountsShareReferenceId; + shareSuspenseId?: GetShareAccountsShareSuspenseId; +} + diff --git a/packages/fineract-client/src/models/getClientIdProductIdChargeOptions.ts b/packages/fineract-client/src/models/getClientIdProductIdChargeOptions.ts new file mode 100644 index 0000000000..3b5fe9a990 --- /dev/null +++ b/packages/fineract-client/src/models/getClientIdProductIdChargeOptions.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetShareAccountsChargeOptions } from './getShareAccountsChargeOptions'; + + +export interface GetClientIdProductIdChargeOptions { + chargeOptions?: GetShareAccountsChargeOptions; +} + diff --git a/packages/fineract-client/src/models/getClientIdProductIdLockinPeriodFrequencyTypeOptions.ts b/packages/fineract-client/src/models/getClientIdProductIdLockinPeriodFrequencyTypeOptions.ts new file mode 100644 index 0000000000..438fb2a559 --- /dev/null +++ b/packages/fineract-client/src/models/getClientIdProductIdLockinPeriodFrequencyTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientIdProductIdLockinPeriodFrequencyTypeOptions { + code?: string; + description?: number; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getClientIdProductIdMinimumActivePeriodFrequencyTypeOptions.ts b/packages/fineract-client/src/models/getClientIdProductIdMinimumActivePeriodFrequencyTypeOptions.ts new file mode 100644 index 0000000000..930a16c7f7 --- /dev/null +++ b/packages/fineract-client/src/models/getClientIdProductIdMinimumActivePeriodFrequencyTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientIdProductIdMinimumActivePeriodFrequencyTypeOptions { + code?: string; + description?: number; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getClientIdProductIdProductOptions.ts b/packages/fineract-client/src/models/getClientIdProductIdProductOptions.ts new file mode 100644 index 0000000000..663a692368 --- /dev/null +++ b/packages/fineract-client/src/models/getClientIdProductIdProductOptions.ts @@ -0,0 +1,50 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetShareAccountsClientIdProductIdAccountingRule } from './getShareAccountsClientIdProductIdAccountingRule'; +import { GetShareAccountsCurrency } from './getShareAccountsCurrency'; +import { GetClientIdProductIdMinimumActivePeriodFrequencyTypeOptions } from './getClientIdProductIdMinimumActivePeriodFrequencyTypeOptions'; +import { GetShareAccountsClientIdProductIdLockPeriodTypeEnum } from './getShareAccountsClientIdProductIdLockPeriodTypeEnum'; +import { GetClientIdProductIdAccountingMappings } from './getClientIdProductIdAccountingMappings'; +import { GetShareAccountsChargeOptions } from './getShareAccountsChargeOptions'; +import { GetClientIdProductIdLockinPeriodFrequencyTypeOptions } from './getClientIdProductIdLockinPeriodFrequencyTypeOptions'; +import { GetShareAccountsClientIdProductIdMinimumActivePeriodForDividendsTypeEnum } from './getShareAccountsClientIdProductIdMinimumActivePeriodForDividendsTypeEnum'; + + +export interface GetClientIdProductIdProductOptions { + accountingMappingOptions?: object; + accountingMappings?: GetClientIdProductIdAccountingMappings; + accountingRule?: GetShareAccountsClientIdProductIdAccountingRule; + allowDividendCalculationForInactiveClients?: boolean; + chargeOptions?: GetShareAccountsChargeOptions; + charges?: string; + currency?: GetShareAccountsCurrency; + currencyOptions?: GetShareAccountsCurrency; + description?: string; + id?: number; + lockinPeriod?: number; + lockinPeriodEnum?: GetShareAccountsClientIdProductIdLockPeriodTypeEnum; + lockinPeriodFrequencyTypeOptions?: GetClientIdProductIdLockinPeriodFrequencyTypeOptions; + marketPrice?: string; + maximumShares?: number; + minimumActivePeriod?: number; + minimumActivePeriodForDividendsTypeEnum?: GetShareAccountsClientIdProductIdMinimumActivePeriodForDividendsTypeEnum; + minimumActivePeriodFrequencyTypeOptions?: GetClientIdProductIdMinimumActivePeriodFrequencyTypeOptions; + minimumShares?: number; + name?: string; + norminalShares?: number; + shareCapital?: number; + shortName?: string; + totalShares?: number; + totalSharesIssued?: number; + unitPrice?: number; +} + diff --git a/packages/fineract-client/src/models/getClientObligeeDetailsResponse.ts b/packages/fineract-client/src/models/getClientObligeeDetailsResponse.ts new file mode 100644 index 0000000000..4b5bfc7a83 --- /dev/null +++ b/packages/fineract-client/src/models/getClientObligeeDetailsResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetObligeeData } from './getObligeeData'; + + +/** + * GetClientObligeeDetailsResponse + */ +export interface GetClientObligeeDetailsResponse { + obligees?: Set; +} + diff --git a/packages/fineract-client/src/models/getClientStatus.ts b/packages/fineract-client/src/models/getClientStatus.ts new file mode 100644 index 0000000000..d2eb760c6e --- /dev/null +++ b/packages/fineract-client/src/models/getClientStatus.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientStatus { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getClientTransactionsCurrency.ts b/packages/fineract-client/src/models/getClientTransactionsCurrency.ts new file mode 100644 index 0000000000..14868e233d --- /dev/null +++ b/packages/fineract-client/src/models/getClientTransactionsCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientTransactionsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getClientTransferProposalDateResponse.ts b/packages/fineract-client/src/models/getClientTransferProposalDateResponse.ts new file mode 100644 index 0000000000..275d7047d3 --- /dev/null +++ b/packages/fineract-client/src/models/getClientTransferProposalDateResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetClientTransferProposalDateResponse + */ +export interface GetClientTransferProposalDateResponse { + proposedTransferDate?: string; +} + diff --git a/packages/fineract-client/src/models/getClientsAllowedDocumentTypes.ts b/packages/fineract-client/src/models/getClientsAllowedDocumentTypes.ts new file mode 100644 index 0000000000..41b67e3dd8 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsAllowedDocumentTypes.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsAllowedDocumentTypes { + id?: number; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/getClientsChargesPageItems.ts b/packages/fineract-client/src/models/getClientsChargesPageItems.ts new file mode 100644 index 0000000000..d666bfb30e --- /dev/null +++ b/packages/fineract-client/src/models/getClientsChargesPageItems.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientChargeCurrency } from './getClientChargeCurrency'; +import { GetClientChargeTimeType } from './getClientChargeTimeType'; +import { GetClientChargeCalculationType } from './getClientChargeCalculationType'; + + +export interface GetClientsChargesPageItems { + amount?: number; + amountOutstanding?: number; + amountPaid?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetClientChargeCalculationType; + chargeId?: number; + chargeTimeType?: GetClientChargeTimeType; + clientId?: number; + currency?: GetClientChargeCurrency; + dueDate?: string; + id?: number; + isActive?: boolean; + isPaid?: boolean; + isWaived?: boolean; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getClientsClientIdAccountsResponse.ts b/packages/fineract-client/src/models/getClientsClientIdAccountsResponse.ts new file mode 100644 index 0000000000..f636532bff --- /dev/null +++ b/packages/fineract-client/src/models/getClientsClientIdAccountsResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsLoanAccounts } from './getClientsLoanAccounts'; +import { GetClientsSavingsAccounts } from './getClientsSavingsAccounts'; + + +/** + * GetClientsClientIdAccountsResponse + */ +export interface GetClientsClientIdAccountsResponse { + loanAccounts?: Set; + savingsAccounts?: Set; +} + diff --git a/packages/fineract-client/src/models/getClientsClientIdChargesResponse.ts b/packages/fineract-client/src/models/getClientsClientIdChargesResponse.ts new file mode 100644 index 0000000000..8cd02355b4 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsClientIdChargesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsChargesPageItems } from './getClientsChargesPageItems'; + + +/** + * GetClientsClientIdChargesResponse + */ +export interface GetClientsClientIdChargesResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getClientsClientIdIdentifiersResponse.ts b/packages/fineract-client/src/models/getClientsClientIdIdentifiersResponse.ts new file mode 100644 index 0000000000..5e22fd88d9 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsClientIdIdentifiersResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsDocumentType } from './getClientsDocumentType'; + + +/** + * GetClientsClientIdIdentifiersResponse + */ +export interface GetClientsClientIdIdentifiersResponse { + clientId?: number; + description?: string; + documentKey?: string; + documentType?: GetClientsDocumentType; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getClientsClientIdIdentifiersTemplateResponse.ts b/packages/fineract-client/src/models/getClientsClientIdIdentifiersTemplateResponse.ts new file mode 100644 index 0000000000..22e03dd0d0 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsClientIdIdentifiersTemplateResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsAllowedDocumentTypes } from './getClientsAllowedDocumentTypes'; + + +/** + * GetClientsClientIdIdentifiersTemplateResponse + */ +export interface GetClientsClientIdIdentifiersTemplateResponse { + allowedDocumentTypes?: Set; +} + diff --git a/packages/fineract-client/src/models/getClientsClientIdResponse.ts b/packages/fineract-client/src/models/getClientsClientIdResponse.ts new file mode 100644 index 0000000000..5a740c65cf --- /dev/null +++ b/packages/fineract-client/src/models/getClientsClientIdResponse.ts @@ -0,0 +1,38 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsGroups } from './getClientsGroups'; +import { GetClientsTimeline } from './getClientsTimeline'; +import { GetClientsClientIdStatus } from './getClientsClientIdStatus'; + + +/** + * GetClientsClientIdResponse + */ +export interface GetClientsClientIdResponse { + accountNo?: string; + activationDate?: string; + active?: boolean; + displayName?: string; + emailAddress?: string; + externalId?: string; + firstname?: string; + groups?: Array; + id?: number; + lastname?: string; + officeId?: number; + officeName?: string; + savingsProductId?: number; + savingsProductName?: string; + status?: GetClientsClientIdStatus; + timeline?: GetClientsTimeline; +} + diff --git a/packages/fineract-client/src/models/getClientsClientIdStatus.ts b/packages/fineract-client/src/models/getClientsClientIdStatus.ts new file mode 100644 index 0000000000..94655d7f2b --- /dev/null +++ b/packages/fineract-client/src/models/getClientsClientIdStatus.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsClientIdStatus { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getClientsClientIdTransactionsResponse.ts b/packages/fineract-client/src/models/getClientsClientIdTransactionsResponse.ts new file mode 100644 index 0000000000..27c8e33cec --- /dev/null +++ b/packages/fineract-client/src/models/getClientsClientIdTransactionsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsPageItems } from './getClientsPageItems'; + + +/** + * GetClientsClientIdTransactionsResponse + */ +export interface GetClientsClientIdTransactionsResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getClientsClientIdTransactionsTransactionIdResponse.ts b/packages/fineract-client/src/models/getClientsClientIdTransactionsTransactionIdResponse.ts new file mode 100644 index 0000000000..963fcb6799 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsClientIdTransactionsTransactionIdResponse.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsClientIdTransactionsType } from './getClientsClientIdTransactionsType'; +import { GetClientTransactionsCurrency } from './getClientTransactionsCurrency'; + + +/** + * GetClientsClientIdTransactionsTransactionIdResponse + */ +export interface GetClientsClientIdTransactionsTransactionIdResponse { + amount?: number; + currency?: GetClientTransactionsCurrency; + date?: string; + id?: number; + officeId?: number; + officeName?: string; + reversed?: boolean; + submittedOnDate?: string; + type?: GetClientsClientIdTransactionsType; +} + diff --git a/packages/fineract-client/src/models/getClientsClientIdTransactionsType.ts b/packages/fineract-client/src/models/getClientsClientIdTransactionsType.ts new file mode 100644 index 0000000000..6224d7cb42 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsClientIdTransactionsType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsClientIdTransactionsType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getClientsColumnHeaderData.ts b/packages/fineract-client/src/models/getClientsColumnHeaderData.ts new file mode 100644 index 0000000000..0da6967568 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsColumnHeaderData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsColumnHeaderData { + columnDisplayType?: string; + columnLength?: number; + columnName?: string; + columnType?: string; + columnValues?: Array; + isColumnNullable?: boolean; + isColumnPrimaryKey?: boolean; +} + diff --git a/packages/fineract-client/src/models/getClientsDataTables.ts b/packages/fineract-client/src/models/getClientsDataTables.ts new file mode 100644 index 0000000000..199418624f --- /dev/null +++ b/packages/fineract-client/src/models/getClientsDataTables.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsColumnHeaderData } from './getClientsColumnHeaderData'; + + +export interface GetClientsDataTables { + applicationTableName?: string; + columnHeaderData?: Set; + registeredTableName?: string; +} + diff --git a/packages/fineract-client/src/models/getClientsDocumentType.ts b/packages/fineract-client/src/models/getClientsDocumentType.ts new file mode 100644 index 0000000000..712a1fe4ca --- /dev/null +++ b/packages/fineract-client/src/models/getClientsDocumentType.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsDocumentType { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getClientsGroups.ts b/packages/fineract-client/src/models/getClientsGroups.ts new file mode 100644 index 0000000000..5c7ddcfd42 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsGroups.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsGroups { + accountNo?: string; + externalId?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getClientsLoanAccounts.ts b/packages/fineract-client/src/models/getClientsLoanAccounts.ts new file mode 100644 index 0000000000..486750a553 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsLoanAccounts.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsLoanAccountsType } from './getClientsLoanAccountsType'; +import { GetClientsLoanAccountsStatus } from './getClientsLoanAccountsStatus'; + + +export interface GetClientsLoanAccounts { + accountNo?: string; + externalId?: number; + id?: number; + loanCycle?: number; + loanType?: GetClientsLoanAccountsType; + productId?: number; + productName?: string; + status?: GetClientsLoanAccountsStatus; +} + diff --git a/packages/fineract-client/src/models/getClientsLoanAccountsStatus.ts b/packages/fineract-client/src/models/getClientsLoanAccountsStatus.ts new file mode 100644 index 0000000000..0d32021bb6 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsLoanAccountsStatus.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsLoanAccountsStatus { + active?: boolean; + closed?: boolean; + closedObligationsMet?: boolean; + closedRescheduled?: boolean; + closedWrittenOff?: boolean; + code?: string; + description?: string; + id?: number; + overpaid?: boolean; + pendingApproval?: boolean; + waitingForDisbursal?: boolean; +} + diff --git a/packages/fineract-client/src/models/getClientsLoanAccountsType.ts b/packages/fineract-client/src/models/getClientsLoanAccountsType.ts new file mode 100644 index 0000000000..b21bf5c4e7 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsLoanAccountsType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsLoanAccountsType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getClientsOfficeOptions.ts b/packages/fineract-client/src/models/getClientsOfficeOptions.ts new file mode 100644 index 0000000000..2ffb1a52c0 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsOfficeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsOfficeOptions { + id?: number; + name?: string; + nameDecorated?: string; +} + diff --git a/packages/fineract-client/src/models/getClientsPageItems.ts b/packages/fineract-client/src/models/getClientsPageItems.ts new file mode 100644 index 0000000000..76ee994fc0 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsPageItems.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsClientIdTransactionsType } from './getClientsClientIdTransactionsType'; +import { GetClientTransactionsCurrency } from './getClientTransactionsCurrency'; + + +export interface GetClientsPageItems { + amount?: number; + currency?: GetClientTransactionsCurrency; + date?: string; + id?: number; + officeId?: number; + officeName?: string; + reversed?: boolean; + submittedOnDate?: string; + type?: GetClientsClientIdTransactionsType; +} + diff --git a/packages/fineract-client/src/models/getClientsPageItemsResponse.ts b/packages/fineract-client/src/models/getClientsPageItemsResponse.ts new file mode 100644 index 0000000000..217b38a7ba --- /dev/null +++ b/packages/fineract-client/src/models/getClientsPageItemsResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientStatus } from './getClientStatus'; + + +export interface GetClientsPageItemsResponse { + accountNo?: string; + active?: boolean; + displayName?: string; + emailAddress?: string; + fullname?: string; + id?: number; + officeId?: number; + officeName?: string; + status?: GetClientStatus; +} + diff --git a/packages/fineract-client/src/models/getClientsResponse.ts b/packages/fineract-client/src/models/getClientsResponse.ts new file mode 100644 index 0000000000..fa49940c04 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsPageItemsResponse } from './getClientsPageItemsResponse'; + + +/** + * GetClientsResponse + */ +export interface GetClientsResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getClientsSavingProductOptions.ts b/packages/fineract-client/src/models/getClientsSavingProductOptions.ts new file mode 100644 index 0000000000..4b13415b48 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsSavingProductOptions.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsSavingProductOptions { + allowOverdraft?: boolean; + id?: number; + name?: string; + withdrawalFeeForTransfers?: boolean; +} + diff --git a/packages/fineract-client/src/models/getClientsSavingsAccounts.ts b/packages/fineract-client/src/models/getClientsSavingsAccounts.ts new file mode 100644 index 0000000000..46018fdc25 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsSavingsAccounts.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsSavingsAccountsDepositType } from './getClientsSavingsAccountsDepositType'; +import { GetClientsSavingsAccountsStatus } from './getClientsSavingsAccountsStatus'; +import { GetClientsSavingsAccountsCurrency } from './getClientsSavingsAccountsCurrency'; + + +export interface GetClientsSavingsAccounts { + accountNo?: string; + currency?: GetClientsSavingsAccountsCurrency; + depositType?: GetClientsSavingsAccountsDepositType; + id?: number; + productId?: number; + productName?: string; + shortProductName?: string; + status?: GetClientsSavingsAccountsStatus; +} + diff --git a/packages/fineract-client/src/models/getClientsSavingsAccountsCurrency.ts b/packages/fineract-client/src/models/getClientsSavingsAccountsCurrency.ts new file mode 100644 index 0000000000..0fa8ecb20d --- /dev/null +++ b/packages/fineract-client/src/models/getClientsSavingsAccountsCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsSavingsAccountsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getClientsSavingsAccountsDepositType.ts b/packages/fineract-client/src/models/getClientsSavingsAccountsDepositType.ts new file mode 100644 index 0000000000..80d964ca9c --- /dev/null +++ b/packages/fineract-client/src/models/getClientsSavingsAccountsDepositType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsSavingsAccountsDepositType { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getClientsSavingsAccountsStatus.ts b/packages/fineract-client/src/models/getClientsSavingsAccountsStatus.ts new file mode 100644 index 0000000000..7e9013dd2c --- /dev/null +++ b/packages/fineract-client/src/models/getClientsSavingsAccountsStatus.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsSavingsAccountsStatus { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + id?: number; + matured?: boolean; + prematureClosed?: boolean; + rejected?: boolean; + submittedAndPendingApproval?: boolean; + transferInProgress?: boolean; + transferOnHold?: boolean; + value?: string; + withdrawnByApplicant?: boolean; +} + diff --git a/packages/fineract-client/src/models/getClientsStaffOptions.ts b/packages/fineract-client/src/models/getClientsStaffOptions.ts new file mode 100644 index 0000000000..ade06efc45 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsStaffOptions.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsStaffOptions { + displayName?: string; + firstname?: string; + id?: number; + isActive?: boolean; + isLoanOfficer?: boolean; + lastname?: string; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getClientsTemplateResponse.ts b/packages/fineract-client/src/models/getClientsTemplateResponse.ts new file mode 100644 index 0000000000..d39b519072 --- /dev/null +++ b/packages/fineract-client/src/models/getClientsTemplateResponse.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientsOfficeOptions } from './getClientsOfficeOptions'; +import { GetClientsSavingProductOptions } from './getClientsSavingProductOptions'; +import { GetClientsStaffOptions } from './getClientsStaffOptions'; +import { GetClientsDataTables } from './getClientsDataTables'; + + +/** + * GetClientsTemplateResponse + */ +export interface GetClientsTemplateResponse { + activationDate?: string; + datatables?: Set; + officeId?: number; + officeOptions?: Set; + savingProductOptions?: Set; + staffOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getClientsTimeline.ts b/packages/fineract-client/src/models/getClientsTimeline.ts new file mode 100644 index 0000000000..3d5bd102ef --- /dev/null +++ b/packages/fineract-client/src/models/getClientsTimeline.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetClientsTimeline { + activatedByFirstname?: string; + activatedByLastname?: string; + activatedByUsername?: string; + activatedOnDate?: string; + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getCodeValuesDataResponse.ts b/packages/fineract-client/src/models/getCodeValuesDataResponse.ts new file mode 100644 index 0000000000..c6bfe137d0 --- /dev/null +++ b/packages/fineract-client/src/models/getCodeValuesDataResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetCodeValuesDataResponse + */ +export interface GetCodeValuesDataResponse { + description?: string; + id?: number; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/getCodesResponse.ts b/packages/fineract-client/src/models/getCodesResponse.ts new file mode 100644 index 0000000000..d81b220de5 --- /dev/null +++ b/packages/fineract-client/src/models/getCodesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetCodesResponse + */ +export interface GetCodesResponse { + id?: number; + name?: string; + systemDefined?: boolean; +} + diff --git a/packages/fineract-client/src/models/getCollateralCurrencyResponse.ts b/packages/fineract-client/src/models/getCollateralCurrencyResponse.ts new file mode 100644 index 0000000000..4c61f9def6 --- /dev/null +++ b/packages/fineract-client/src/models/getCollateralCurrencyResponse.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCollateralCurrencyResponse { + code?: string; +} + diff --git a/packages/fineract-client/src/models/getCollateralManagementsResponse.ts b/packages/fineract-client/src/models/getCollateralManagementsResponse.ts new file mode 100644 index 0000000000..16ce317aff --- /dev/null +++ b/packages/fineract-client/src/models/getCollateralManagementsResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetCollateralCurrencyResponse } from './getCollateralCurrencyResponse'; + + +/** + * GetCollateralManagementsResponse + */ +export interface GetCollateralManagementsResponse { + basePrice?: number; + currency?: GetCollateralCurrencyResponse; + id?: number; + name?: string; + pctToBase?: number; + unitType?: string; +} + diff --git a/packages/fineract-client/src/models/getCollateralProductTemplate.ts b/packages/fineract-client/src/models/getCollateralProductTemplate.ts new file mode 100644 index 0000000000..1751d5efa2 --- /dev/null +++ b/packages/fineract-client/src/models/getCollateralProductTemplate.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetCurrencyData } from './getCurrencyData'; + + +/** + * GetCollateralProductTemplate + */ +export interface GetCollateralProductTemplate { + currency?: GetCurrencyData; +} + diff --git a/packages/fineract-client/src/models/getCollateralTypeResponse.ts b/packages/fineract-client/src/models/getCollateralTypeResponse.ts new file mode 100644 index 0000000000..2ce4f0cce1 --- /dev/null +++ b/packages/fineract-client/src/models/getCollateralTypeResponse.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCollateralTypeResponse { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getCollateralsTemplateAllowedTypes.ts b/packages/fineract-client/src/models/getCollateralsTemplateAllowedTypes.ts new file mode 100644 index 0000000000..b3ad5b4dc1 --- /dev/null +++ b/packages/fineract-client/src/models/getCollateralsTemplateAllowedTypes.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCollateralsTemplateAllowedTypes { + id?: number; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/getCurrenciesResponse.ts b/packages/fineract-client/src/models/getCurrenciesResponse.ts new file mode 100644 index 0000000000..648cef26a9 --- /dev/null +++ b/packages/fineract-client/src/models/getCurrenciesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CurrencyData } from './currencyData'; + + +/** + * GetCurrenciesResponse + */ +export interface GetCurrenciesResponse { + currencyOptions?: Array; + selectedCurrencyOptions?: Array; +} + diff --git a/packages/fineract-client/src/models/getCurrencyData.ts b/packages/fineract-client/src/models/getCurrencyData.ts new file mode 100644 index 0000000000..79085bb1c2 --- /dev/null +++ b/packages/fineract-client/src/models/getCurrencyData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetCurrencyData { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getDataTablesResponse.ts b/packages/fineract-client/src/models/getDataTablesResponse.ts new file mode 100644 index 0000000000..88537f38c8 --- /dev/null +++ b/packages/fineract-client/src/models/getDataTablesResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ResultsetColumnHeaderData } from './resultsetColumnHeaderData'; + + +/** + * GetDataTablesResponse + */ +export interface GetDataTablesResponse { + applicationTableName?: string; + columnHeaderData?: Array; + registeredTableName?: string; +} + diff --git a/packages/fineract-client/src/models/getDelinquencyBucketsResponse.ts b/packages/fineract-client/src/models/getDelinquencyBucketsResponse.ts new file mode 100644 index 0000000000..063b1d4796 --- /dev/null +++ b/packages/fineract-client/src/models/getDelinquencyBucketsResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetDelinquencyRangesResponse } from './getDelinquencyRangesResponse'; + + +/** + * GetDelinquencyBucketsResponse + */ +export interface GetDelinquencyBucketsResponse { + id?: number; + name?: string; + ranges?: Array; +} + diff --git a/packages/fineract-client/src/models/getDelinquencyRangesResponse.ts b/packages/fineract-client/src/models/getDelinquencyRangesResponse.ts new file mode 100644 index 0000000000..532494d5e5 --- /dev/null +++ b/packages/fineract-client/src/models/getDelinquencyRangesResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetDelinquencyRangesResponse + */ +export interface GetDelinquencyRangesResponse { + classification?: string; + id?: number; + maximumAgeDays?: number; + minimumAgeDays?: number; +} + diff --git a/packages/fineract-client/src/models/getDelinquencyTagHistoryResponse.ts b/packages/fineract-client/src/models/getDelinquencyTagHistoryResponse.ts new file mode 100644 index 0000000000..6a6259ace2 --- /dev/null +++ b/packages/fineract-client/src/models/getDelinquencyTagHistoryResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetDelinquencyRangesResponse } from './getDelinquencyRangesResponse'; + + +/** + * GetDelinquencyTagHistoryResponse + */ +export interface GetDelinquencyTagHistoryResponse { + addedOnDate?: string; + delinquencyRange?: GetDelinquencyRangesResponse; + id?: number; + liftedOnDate?: string; + loanId?: number; +} + diff --git a/packages/fineract-client/src/models/getEntityDatatableChecksResponse.ts b/packages/fineract-client/src/models/getEntityDatatableChecksResponse.ts new file mode 100644 index 0000000000..42312a9db9 --- /dev/null +++ b/packages/fineract-client/src/models/getEntityDatatableChecksResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +/** + * GetEntityDatatableChecksResponse + */ +export interface GetEntityDatatableChecksResponse { + datatableName?: string; + entity?: string; + id?: number; + order?: number; + productId?: number; + productName?: string; + status?: EnumOptionData; + systemDefined?: boolean; +} + diff --git a/packages/fineract-client/src/models/getEntityDatatableChecksTemplateResponse.ts b/packages/fineract-client/src/models/getEntityDatatableChecksTemplateResponse.ts new file mode 100644 index 0000000000..799ac5073f --- /dev/null +++ b/packages/fineract-client/src/models/getEntityDatatableChecksTemplateResponse.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { LoanProductData } from './loanProductData'; +import { SavingsProductData } from './savingsProductData'; + + +/** + * GetEntityDatatableChecksTemplateResponse + */ +export interface GetEntityDatatableChecksTemplateResponse { + datatables?: Array; + entities?: Array; + loanProductDatas?: Array; + savingsProductDatas?: Array; + statusClient?: Array; + statusGroup?: Array; + statusLoans?: Array; + statusSavings?: Array; +} + diff --git a/packages/fineract-client/src/models/getEntityTypeEntityIdDocumentsResponse.ts b/packages/fineract-client/src/models/getEntityTypeEntityIdDocumentsResponse.ts new file mode 100644 index 0000000000..1ab2a2bca2 --- /dev/null +++ b/packages/fineract-client/src/models/getEntityTypeEntityIdDocumentsResponse.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetEntityTypeEntityIdDocumentsResponse + */ +export interface GetEntityTypeEntityIdDocumentsResponse { + description?: string; + fileName?: string; + id?: number; + location?: string; + name?: string; + parentEntityId?: number; + parentEntityType?: string; + size?: number; + storageType?: number; + type?: string; +} + diff --git a/packages/fineract-client/src/models/getEquityType.ts b/packages/fineract-client/src/models/getEquityType.ts new file mode 100644 index 0000000000..d630d6f3dd --- /dev/null +++ b/packages/fineract-client/src/models/getEquityType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetEquityType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getExternalEventConfigurationsResponse.ts b/packages/fineract-client/src/models/getExternalEventConfigurationsResponse.ts new file mode 100644 index 0000000000..537bfb4c8d --- /dev/null +++ b/packages/fineract-client/src/models/getExternalEventConfigurationsResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalEventConfigurationItemData } from './externalEventConfigurationItemData'; + + +/** + * GetExternalEventConfigurationsResponse + */ +export interface GetExternalEventConfigurationsResponse { + externalEventConfiguration?: Array; +} + diff --git a/packages/fineract-client/src/models/getFieldConfigurationEntityResponse.ts b/packages/fineract-client/src/models/getFieldConfigurationEntityResponse.ts new file mode 100644 index 0000000000..09877f5cb4 --- /dev/null +++ b/packages/fineract-client/src/models/getFieldConfigurationEntityResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetFieldConfigurationEntityResponse + */ +export interface GetFieldConfigurationEntityResponse { + entity?: string; + field?: string; + fieldConfigurationId?: number; + is_enabled?: string; + is_mandatory?: string; + subentity?: string; + validation_regex?: string; +} + diff --git a/packages/fineract-client/src/models/getFinancialActivityAccountsResponse.ts b/packages/fineract-client/src/models/getFinancialActivityAccountsResponse.ts new file mode 100644 index 0000000000..e906e62e6a --- /dev/null +++ b/packages/fineract-client/src/models/getFinancialActivityAccountsResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GLAccountData } from './gLAccountData'; +import { FinancialActivityData } from './financialActivityData'; + + +/** + * GetFinancialActivityAccountsResponse + */ +export interface GetFinancialActivityAccountsResponse { + financialActivityData?: FinancialActivityData; + glAccountData?: GLAccountData; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsAccountChart.ts b/packages/fineract-client/src/models/getFixedDepositAccountsAccountChart.ts new file mode 100644 index 0000000000..0ea764f1c4 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsAccountChart.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositAccountsPeriodTypes } from './getFixedDepositAccountsPeriodTypes'; +import { GetFixedDepositAccountsChartSlabs } from './getFixedDepositAccountsChartSlabs'; + + +export interface GetFixedDepositAccountsAccountChart { + accountId?: number; + accountNumber?: number; + chartSlabs?: Set; + fromDate?: string; + id?: number; + periodTypes?: Set; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsAccountChartCurrency.ts b/packages/fineract-client/src/models/getFixedDepositAccountsAccountChartCurrency.ts new file mode 100644 index 0000000000..71ff1d1b9f --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsAccountChartCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsAccountChartCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsAccountIdCurrency.ts b/packages/fineract-client/src/models/getFixedDepositAccountsAccountIdCurrency.ts new file mode 100644 index 0000000000..f6675c5ef6 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsAccountIdCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsAccountIdCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/getFixedDepositAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..9e3ba7b1c6 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsAccountIdResponse.ts @@ -0,0 +1,59 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositAccountsAccountChart } from './getFixedDepositAccountsAccountChart'; +import { GetFixedDepositAccountsInterestCompoundingPeriodType } from './getFixedDepositAccountsInterestCompoundingPeriodType'; +import { GetFixedDepositAccountsInterestCalculationDaysInYearType } from './getFixedDepositAccountsInterestCalculationDaysInYearType'; +import { GetFixedDepositAccountsMaxDepositTermType } from './getFixedDepositAccountsMaxDepositTermType'; +import { GetFixedDepositAccountsDepositPeriodFrequency } from './getFixedDepositAccountsDepositPeriodFrequency'; +import { GetFixedDepositAccountsInterestCalculationType } from './getFixedDepositAccountsInterestCalculationType'; +import { GetFixedDepositAccountsInterestPostingPeriodType } from './getFixedDepositAccountsInterestPostingPeriodType'; +import { GetFixedDepositAccountsStatus } from './getFixedDepositAccountsStatus'; +import { GetFixedDepositAccountsMinDepositTermType } from './getFixedDepositAccountsMinDepositTermType'; +import { GetFixedDepositAccountsAccountIdSummary } from './getFixedDepositAccountsAccountIdSummary'; +import { GetFixedDepositAccountsAccountIdCurrency } from './getFixedDepositAccountsAccountIdCurrency'; +import { GetFixedDepositAccountsTimeline } from './getFixedDepositAccountsTimeline'; + + +/** + * GetFixedDepositAccountsAccountIdResponse + */ +export interface GetFixedDepositAccountsAccountIdResponse { + accountChart?: GetFixedDepositAccountsAccountChart; + accountNo?: number; + clientId?: number; + clientName?: string; + currency?: GetFixedDepositAccountsAccountIdCurrency; + depositAmount?: number; + depositPeriod?: number; + depositPeriodFrequency?: GetFixedDepositAccountsDepositPeriodFrequency; + externalId?: string; + fieldOfficerId?: number; + id?: number; + interestCalculationDaysInYearType?: GetFixedDepositAccountsInterestCalculationDaysInYearType; + interestCalculationType?: GetFixedDepositAccountsInterestCalculationType; + interestCompoundingPeriodType?: GetFixedDepositAccountsInterestCompoundingPeriodType; + interestFreePeriodApplicable?: boolean; + interestPostingPeriodType?: GetFixedDepositAccountsInterestPostingPeriodType; + maturityAmount?: number; + maturityDate?: string; + maxDepositTerm?: number; + maxDepositTermType?: GetFixedDepositAccountsMaxDepositTermType; + minDepositTerm?: number; + minDepositTermType?: GetFixedDepositAccountsMinDepositTermType; + preClosurePenalApplicable?: boolean; + savingsProductId?: number; + savingsProductName?: string; + status?: GetFixedDepositAccountsStatus; + summary?: GetFixedDepositAccountsAccountIdSummary; + timeline?: GetFixedDepositAccountsTimeline; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsAccountIdSummary.ts b/packages/fineract-client/src/models/getFixedDepositAccountsAccountIdSummary.ts new file mode 100644 index 0000000000..a5a4d465b4 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsAccountIdSummary.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositAccountsAccountIdCurrency } from './getFixedDepositAccountsAccountIdCurrency'; + + +export interface GetFixedDepositAccountsAccountIdSummary { + accountBalance?: number; + currency?: GetFixedDepositAccountsAccountIdCurrency; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsChartSlabs.ts b/packages/fineract-client/src/models/getFixedDepositAccountsChartSlabs.ts new file mode 100644 index 0000000000..8208df1e71 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsChartSlabs.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositAccountsPeriodType } from './getFixedDepositAccountsPeriodType'; +import { GetFixedDepositAccountsAccountChartCurrency } from './getFixedDepositAccountsAccountChartCurrency'; + + +export interface GetFixedDepositAccountsChartSlabs { + annualInterestRate?: number; + currency?: GetFixedDepositAccountsAccountChartCurrency; + fromPeriod?: number; + id?: number; + periodType?: GetFixedDepositAccountsPeriodType; + toPeriod?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsCurrency.ts b/packages/fineract-client/src/models/getFixedDepositAccountsCurrency.ts new file mode 100644 index 0000000000..a77c8d0d1e --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsDepositPeriodFrequency.ts b/packages/fineract-client/src/models/getFixedDepositAccountsDepositPeriodFrequency.ts new file mode 100644 index 0000000000..0d1f220e2b --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsDepositPeriodFrequency.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsDepositPeriodFrequency { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsInterestCalculationDaysInYearType.ts b/packages/fineract-client/src/models/getFixedDepositAccountsInterestCalculationDaysInYearType.ts new file mode 100644 index 0000000000..c7cadfe561 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsInterestCalculationDaysInYearType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsInterestCalculationDaysInYearType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsInterestCalculationType.ts b/packages/fineract-client/src/models/getFixedDepositAccountsInterestCalculationType.ts new file mode 100644 index 0000000000..78db64995f --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsInterestCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsInterestCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsInterestCompoundingPeriodType.ts b/packages/fineract-client/src/models/getFixedDepositAccountsInterestCompoundingPeriodType.ts new file mode 100644 index 0000000000..82243d40a1 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsInterestCompoundingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsInterestCompoundingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsInterestPostingPeriodType.ts b/packages/fineract-client/src/models/getFixedDepositAccountsInterestPostingPeriodType.ts new file mode 100644 index 0000000000..e5e4644318 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsInterestPostingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsInterestPostingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsMaxDepositTermType.ts b/packages/fineract-client/src/models/getFixedDepositAccountsMaxDepositTermType.ts new file mode 100644 index 0000000000..30d105844e --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsMaxDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsMaxDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsMinDepositTermType.ts b/packages/fineract-client/src/models/getFixedDepositAccountsMinDepositTermType.ts new file mode 100644 index 0000000000..e1930acb85 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsMinDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsMinDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsPeriodType.ts b/packages/fineract-client/src/models/getFixedDepositAccountsPeriodType.ts new file mode 100644 index 0000000000..91592b1968 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsPeriodTypes.ts b/packages/fineract-client/src/models/getFixedDepositAccountsPeriodTypes.ts new file mode 100644 index 0000000000..7395999b72 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsPeriodTypes.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsPeriodTypes { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsProductOptions.ts b/packages/fineract-client/src/models/getFixedDepositAccountsProductOptions.ts new file mode 100644 index 0000000000..b1388e0851 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsProductOptions.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsProductOptions { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsResponse.ts b/packages/fineract-client/src/models/getFixedDepositAccountsResponse.ts new file mode 100644 index 0000000000..b492305007 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsResponse.ts @@ -0,0 +1,56 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositAccountsInterestCompoundingPeriodType } from './getFixedDepositAccountsInterestCompoundingPeriodType'; +import { GetFixedDepositAccountsInterestCalculationDaysInYearType } from './getFixedDepositAccountsInterestCalculationDaysInYearType'; +import { GetFixedDepositAccountsMaxDepositTermType } from './getFixedDepositAccountsMaxDepositTermType'; +import { GetFixedDepositAccountsSummary } from './getFixedDepositAccountsSummary'; +import { GetFixedDepositAccountsDepositPeriodFrequency } from './getFixedDepositAccountsDepositPeriodFrequency'; +import { GetFixedDepositAccountsInterestCalculationType } from './getFixedDepositAccountsInterestCalculationType'; +import { GetFixedDepositAccountsInterestPostingPeriodType } from './getFixedDepositAccountsInterestPostingPeriodType'; +import { GetFixedDepositAccountsStatus } from './getFixedDepositAccountsStatus'; +import { GetFixedDepositAccountsMinDepositTermType } from './getFixedDepositAccountsMinDepositTermType'; +import { GetFixedDepositAccountsCurrency } from './getFixedDepositAccountsCurrency'; +import { GetFixedDepositAccountsTimeline } from './getFixedDepositAccountsTimeline'; + + +/** + * GetFixedDepositAccountsResponse + */ +export interface GetFixedDepositAccountsResponse { + accountNo?: number; + clientId?: number; + clientName?: string; + currency?: GetFixedDepositAccountsCurrency; + depositAmount?: number; + depositPeriod?: number; + depositPeriodFrequency?: GetFixedDepositAccountsDepositPeriodFrequency; + fieldOfficerId?: number; + id?: number; + interestCalculationDaysInYearType?: GetFixedDepositAccountsInterestCalculationDaysInYearType; + interestCalculationType?: GetFixedDepositAccountsInterestCalculationType; + interestCompoundingPeriodType?: GetFixedDepositAccountsInterestCompoundingPeriodType; + interestFreePeriodApplicable?: boolean; + interestPostingPeriodType?: GetFixedDepositAccountsInterestPostingPeriodType; + maturityAmount?: number; + maturityDate?: string; + maxDepositTerm?: number; + maxDepositTermType?: GetFixedDepositAccountsMaxDepositTermType; + minDepositTerm?: number; + minDepositTermType?: GetFixedDepositAccountsMinDepositTermType; + preClosurePenalApplicable?: boolean; + savingsProductId?: number; + savingsProductName?: string; + status?: GetFixedDepositAccountsStatus; + summary?: GetFixedDepositAccountsSummary; + timeline?: GetFixedDepositAccountsTimeline; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsStatus.ts b/packages/fineract-client/src/models/getFixedDepositAccountsStatus.ts new file mode 100644 index 0000000000..e30fa25ead --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsStatus.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsStatus { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + description?: string; + id?: number; + prematureClosed?: boolean; + rejected?: boolean; + submittedAndPendingApproval?: boolean; + transferInProgress?: boolean; + transferOnHold?: boolean; + withdrawnByApplicant?: boolean; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsSummary.ts b/packages/fineract-client/src/models/getFixedDepositAccountsSummary.ts new file mode 100644 index 0000000000..55ab25e498 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsSummary.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositAccountsCurrency } from './getFixedDepositAccountsCurrency'; + + +export interface GetFixedDepositAccountsSummary { + accountBalance?: number; + currency?: GetFixedDepositAccountsCurrency; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsTemplateResponse.ts b/packages/fineract-client/src/models/getFixedDepositAccountsTemplateResponse.ts new file mode 100644 index 0000000000..2c9cd2c3b0 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsTemplateResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositAccountsProductOptions } from './getFixedDepositAccountsProductOptions'; + + +/** + * GetFixedDepositAccountsTemplateResponse + */ +export interface GetFixedDepositAccountsTemplateResponse { + clientId?: number; + clientName?: string; + productOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositAccountsTimeline.ts b/packages/fineract-client/src/models/getFixedDepositAccountsTimeline.ts new file mode 100644 index 0000000000..4f7cc96b9f --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositAccountsTimeline.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositAccountsTimeline { + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsAccountingRule.ts b/packages/fineract-client/src/models/getFixedDepositProductsAccountingRule.ts new file mode 100644 index 0000000000..1e934968f8 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsAccountingRule.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsAccountingRule { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsCurrency.ts b/packages/fineract-client/src/models/getFixedDepositProductsCurrency.ts new file mode 100644 index 0000000000..f956a0af84 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsInterestCalculationDaysInYearType.ts b/packages/fineract-client/src/models/getFixedDepositProductsInterestCalculationDaysInYearType.ts new file mode 100644 index 0000000000..238cfa56ae --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsInterestCalculationDaysInYearType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsInterestCalculationDaysInYearType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsInterestCalculationType.ts b/packages/fineract-client/src/models/getFixedDepositProductsInterestCalculationType.ts new file mode 100644 index 0000000000..d7a94f04b8 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsInterestCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsInterestCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsInterestCompoundingPeriodType.ts b/packages/fineract-client/src/models/getFixedDepositProductsInterestCompoundingPeriodType.ts new file mode 100644 index 0000000000..44b05f8f93 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsInterestCompoundingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsInterestCompoundingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsInterestPostingPeriodType.ts b/packages/fineract-client/src/models/getFixedDepositProductsInterestPostingPeriodType.ts new file mode 100644 index 0000000000..9be76422dc --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsInterestPostingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsInterestPostingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsMaxDepositTermType.ts b/packages/fineract-client/src/models/getFixedDepositProductsMaxDepositTermType.ts new file mode 100644 index 0000000000..b3fff6e8bb --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsMaxDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsMaxDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsMinDepositTermType.ts b/packages/fineract-client/src/models/getFixedDepositProductsMinDepositTermType.ts new file mode 100644 index 0000000000..8cb4320216 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsMinDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsMinDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdAccountingMappings.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdAccountingMappings.ts new file mode 100644 index 0000000000..61a1439831 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdAccountingMappings.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositProductsProductIdTransfersInSuspenseAccount } from './getFixedDepositProductsProductIdTransfersInSuspenseAccount'; +import { GetFixedDepositProductsProductIdSavingsReferenceAccount } from './getFixedDepositProductsProductIdSavingsReferenceAccount'; +import { GetFixedDepositProductsProductIdSavingsControlAccount } from './getFixedDepositProductsProductIdSavingsControlAccount'; +import { GetFixedDepositProductsProductIdIncomeFromFeeAccount } from './getFixedDepositProductsProductIdIncomeFromFeeAccount'; +import { GetFixedDepositProductsProductIdIncomeFromPenaltyAccount } from './getFixedDepositProductsProductIdIncomeFromPenaltyAccount'; +import { GetFixedDepositProductsProductIdInterestOnSavingsAccount } from './getFixedDepositProductsProductIdInterestOnSavingsAccount'; + + +export interface GetFixedDepositProductsProductIdAccountingMappings { + incomeFromFeeAccount?: GetFixedDepositProductsProductIdIncomeFromFeeAccount; + incomeFromPenaltyAccount?: GetFixedDepositProductsProductIdIncomeFromPenaltyAccount; + interestOnSavingsAccount?: GetFixedDepositProductsProductIdInterestOnSavingsAccount; + savingsControlAccount?: GetFixedDepositProductsProductIdSavingsControlAccount; + savingsReferenceAccount?: GetFixedDepositProductsProductIdSavingsReferenceAccount; + transfersInSuspenseAccount?: GetFixedDepositProductsProductIdTransfersInSuspenseAccount; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdActiveChart.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdActiveChart.ts new file mode 100644 index 0000000000..a48ea7e90b --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdActiveChart.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositProductsProductIdChartSlabs } from './getFixedDepositProductsProductIdChartSlabs'; +import { GetFixedDepositProductsProductIdPeriodType } from './getFixedDepositProductsProductIdPeriodType'; + + +export interface GetFixedDepositProductsProductIdActiveChart { + chartSlabs?: Set; + fromDate?: string; + id?: number; + periodTypes?: Set; + savingsProductId?: number; + savingsProductName?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdChartSlabs.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdChartSlabs.ts new file mode 100644 index 0000000000..d72be2adb9 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdChartSlabs.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositProductsProductIdCurrency } from './getFixedDepositProductsProductIdCurrency'; +import { GetFixedDepositProductsProductIdPeriodType } from './getFixedDepositProductsProductIdPeriodType'; + + +export interface GetFixedDepositProductsProductIdChartSlabs { + annualInterestRate?: number; + currency?: GetFixedDepositProductsProductIdCurrency; + description?: string; + fromPeriod?: number; + id?: number; + periodType?: GetFixedDepositProductsProductIdPeriodType; + toPeriod?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdCurrency.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdCurrency.ts new file mode 100644 index 0000000000..9d894f9fdc --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappings.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappings.ts new file mode 100644 index 0000000000..6583dc534d --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappings.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount } from './getFixedDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount'; +import { GetFixedDepositProductsProductIdFeeToIncomeAccountMappingsCharge } from './getFixedDepositProductsProductIdFeeToIncomeAccountMappingsCharge'; + + +export interface GetFixedDepositProductsProductIdFeeToIncomeAccountMappings { + charge?: GetFixedDepositProductsProductIdFeeToIncomeAccountMappingsCharge; + incomeAccount?: GetFixedDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappingsCharge.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappingsCharge.ts new file mode 100644 index 0000000000..fe28b465bd --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappingsCharge.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdFeeToIncomeAccountMappingsCharge { + active?: boolean; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount.ts new file mode 100644 index 0000000000..57f27c3bda --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdIncomeFromFeeAccount.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdIncomeFromFeeAccount.ts new file mode 100644 index 0000000000..869f4ec5df --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdIncomeFromFeeAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdIncomeFromFeeAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdIncomeFromPenaltyAccount.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdIncomeFromPenaltyAccount.ts new file mode 100644 index 0000000000..28b64a11e0 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdIncomeFromPenaltyAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdIncomeFromPenaltyAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdInterestCompoundingPeriodType.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdInterestCompoundingPeriodType.ts new file mode 100644 index 0000000000..2489fc09e6 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdInterestCompoundingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdInterestCompoundingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdInterestOnSavingsAccount.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdInterestOnSavingsAccount.ts new file mode 100644 index 0000000000..b7a6f519c4 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdInterestOnSavingsAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdInterestOnSavingsAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdMaxDepositTermType.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdMaxDepositTermType.ts new file mode 100644 index 0000000000..012795cee4 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdMaxDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdMaxDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdMinDepositTermType.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdMinDepositTermType.ts new file mode 100644 index 0000000000..1818d6b9b1 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdMinDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdMinDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdPenaltyToIncomeAccountMappings.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdPenaltyToIncomeAccountMappings.ts new file mode 100644 index 0000000000..14a52e060e --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdPenaltyToIncomeAccountMappings.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge } from './getFixedDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge'; +import { GetFixedDepositProductsProductIdIncomeFromPenaltyAccount } from './getFixedDepositProductsProductIdIncomeFromPenaltyAccount'; + + +export interface GetFixedDepositProductsProductIdPenaltyToIncomeAccountMappings { + charge?: GetFixedDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge; + incomeAccount?: GetFixedDepositProductsProductIdIncomeFromPenaltyAccount; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge.ts new file mode 100644 index 0000000000..efd886ac7b --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge { + active?: boolean; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdPeriodType.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdPeriodType.ts new file mode 100644 index 0000000000..dc6173bf67 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdPreClosurePenalInterestOnType.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdPreClosurePenalInterestOnType.ts new file mode 100644 index 0000000000..def466815f --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdPreClosurePenalInterestOnType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdPreClosurePenalInterestOnType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdResponse.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdResponse.ts new file mode 100644 index 0000000000..49a6b22143 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdResponse.ts @@ -0,0 +1,51 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositProductsInterestCalculationType } from './getFixedDepositProductsInterestCalculationType'; +import { GetFixedDepositProductsProductIdPreClosurePenalInterestOnType } from './getFixedDepositProductsProductIdPreClosurePenalInterestOnType'; +import { GetFixedDepositProductsProductIdInterestCompoundingPeriodType } from './getFixedDepositProductsProductIdInterestCompoundingPeriodType'; +import { GetFixedDepositProductsProductIdMaxDepositTermType } from './getFixedDepositProductsProductIdMaxDepositTermType'; +import { GetFixedDepositProductsProductIdAccountingMappings } from './getFixedDepositProductsProductIdAccountingMappings'; +import { GetFixedDepositProductsProductIdFeeToIncomeAccountMappings } from './getFixedDepositProductsProductIdFeeToIncomeAccountMappings'; +import { GetFixedDepositProductsInterestCalculationDaysInYearType } from './getFixedDepositProductsInterestCalculationDaysInYearType'; +import { GetFixedDepositProductsProductIdActiveChart } from './getFixedDepositProductsProductIdActiveChart'; +import { GetFixedDepositProductsProductIdPenaltyToIncomeAccountMappings } from './getFixedDepositProductsProductIdPenaltyToIncomeAccountMappings'; +import { GetFixedDepositProductsProductIdMinDepositTermType } from './getFixedDepositProductsProductIdMinDepositTermType'; +import { GetFixedDepositProductsInterestPostingPeriodType } from './getFixedDepositProductsInterestPostingPeriodType'; +import { GetFixedDepositProductsProductIdCurrency } from './getFixedDepositProductsProductIdCurrency'; + + +/** + * GetFixedDepositProductsProductIdResponse + */ +export interface GetFixedDepositProductsProductIdResponse { + accountingMappings?: GetFixedDepositProductsProductIdAccountingMappings; + activeChart?: GetFixedDepositProductsProductIdActiveChart; + currency?: GetFixedDepositProductsProductIdCurrency; + description?: string; + feeToIncomeAccountMappings?: Set; + id?: number; + interestCalculationDaysInYearType?: GetFixedDepositProductsInterestCalculationDaysInYearType; + interestCalculationType?: GetFixedDepositProductsInterestCalculationType; + interestCompoundingPeriodType?: GetFixedDepositProductsProductIdInterestCompoundingPeriodType; + interestPostingPeriodType?: GetFixedDepositProductsInterestPostingPeriodType; + maxDepositTerm?: number; + maxDepositTermType?: GetFixedDepositProductsProductIdMaxDepositTermType; + minDepositTerm?: number; + minDepositTermType?: GetFixedDepositProductsProductIdMinDepositTermType; + name?: string; + penaltyToIncomeAccountMappings?: Set; + preClosurePenalApplicable?: boolean; + preClosurePenalInterest?: number; + preClosurePenalInterestOnType?: GetFixedDepositProductsProductIdPreClosurePenalInterestOnType; + shortName?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdSavingsControlAccount.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdSavingsControlAccount.ts new file mode 100644 index 0000000000..c6fc50b5fd --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdSavingsControlAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdSavingsControlAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdSavingsReferenceAccount.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdSavingsReferenceAccount.ts new file mode 100644 index 0000000000..046263efe8 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdSavingsReferenceAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdSavingsReferenceAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsProductIdTransfersInSuspenseAccount.ts b/packages/fineract-client/src/models/getFixedDepositProductsProductIdTransfersInSuspenseAccount.ts new file mode 100644 index 0000000000..a6d2c2a599 --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsProductIdTransfersInSuspenseAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFixedDepositProductsProductIdTransfersInSuspenseAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getFixedDepositProductsResponse.ts b/packages/fineract-client/src/models/getFixedDepositProductsResponse.ts new file mode 100644 index 0000000000..f4f19d32da --- /dev/null +++ b/packages/fineract-client/src/models/getFixedDepositProductsResponse.ts @@ -0,0 +1,43 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFixedDepositProductsInterestCalculationType } from './getFixedDepositProductsInterestCalculationType'; +import { GetFixedDepositProductsMaxDepositTermType } from './getFixedDepositProductsMaxDepositTermType'; +import { GetFixedDepositProductsInterestCompoundingPeriodType } from './getFixedDepositProductsInterestCompoundingPeriodType'; +import { GetFixedDepositProductsAccountingRule } from './getFixedDepositProductsAccountingRule'; +import { GetFixedDepositProductsCurrency } from './getFixedDepositProductsCurrency'; +import { GetFixedDepositProductsInterestCalculationDaysInYearType } from './getFixedDepositProductsInterestCalculationDaysInYearType'; +import { GetFixedDepositProductsMinDepositTermType } from './getFixedDepositProductsMinDepositTermType'; +import { GetFixedDepositProductsInterestPostingPeriodType } from './getFixedDepositProductsInterestPostingPeriodType'; + + +/** + * GetFixedDepositProductsResponse + */ +export interface GetFixedDepositProductsResponse { + accountingRule?: GetFixedDepositProductsAccountingRule; + currency?: GetFixedDepositProductsCurrency; + description?: string; + id?: number; + interestCalculationDaysInYearType?: GetFixedDepositProductsInterestCalculationDaysInYearType; + interestCalculationType?: GetFixedDepositProductsInterestCalculationType; + interestCompoundingPeriodType?: GetFixedDepositProductsInterestCompoundingPeriodType; + interestPostingPeriodType?: GetFixedDepositProductsInterestPostingPeriodType; + maxDepositTerm?: number; + maxDepositTermType?: GetFixedDepositProductsMaxDepositTermType; + minDepositTerm?: number; + minDepositTermType?: GetFixedDepositProductsMinDepositTermType; + name?: string; + nominalAnnualInterestRate?: number; + preClosurePenalApplicable?: boolean; + shortName?: string; +} + diff --git a/packages/fineract-client/src/models/getFloatingRatesFloatingRateIdResponse.ts b/packages/fineract-client/src/models/getFloatingRatesFloatingRateIdResponse.ts new file mode 100644 index 0000000000..958613b037 --- /dev/null +++ b/packages/fineract-client/src/models/getFloatingRatesFloatingRateIdResponse.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetFloatingRatesRatePeriods } from './getFloatingRatesRatePeriods'; + + +/** + * GetFloatingRatesFloatingRateIdResponse + */ +export interface GetFloatingRatesFloatingRateIdResponse { + createdBy?: string; + createdOn?: string; + id?: number; + isActive?: boolean; + isBaseLendingRate?: boolean; + modifiedBy?: string; + modifiedOn?: string; + name?: string; + ratePeriods?: Set; +} + diff --git a/packages/fineract-client/src/models/getFloatingRatesRatePeriods.ts b/packages/fineract-client/src/models/getFloatingRatesRatePeriods.ts new file mode 100644 index 0000000000..acee6790d0 --- /dev/null +++ b/packages/fineract-client/src/models/getFloatingRatesRatePeriods.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFloatingRatesRatePeriods { + createdBy?: string; + createdOn?: string; + fromDate?: string; + id?: number; + interestRate?: number; + isActive?: boolean; + isDifferentialToBaseLendingRate?: boolean; + modifiedBy?: string; + modifiedOn?: string; +} + diff --git a/packages/fineract-client/src/models/getFloatingRatesResponse.ts b/packages/fineract-client/src/models/getFloatingRatesResponse.ts new file mode 100644 index 0000000000..5419babf37 --- /dev/null +++ b/packages/fineract-client/src/models/getFloatingRatesResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetFloatingRatesResponse + */ +export interface GetFloatingRatesResponse { + createdBy?: string; + createdOn?: string; + id?: number; + isActive?: boolean; + isBaseLendingRate?: boolean; + modifiedBy?: string; + modifiedOn?: string; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getFromAccountOptions.ts b/packages/fineract-client/src/models/getFromAccountOptions.ts new file mode 100644 index 0000000000..9628337c46 --- /dev/null +++ b/packages/fineract-client/src/models/getFromAccountOptions.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAccountOptions } from './getAccountOptions'; + + +export interface GetFromAccountOptions { + accountId?: number; + accountNo?: number; + accountType?: GetAccountOptions; + clientId?: number; + clientName?: string; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getFromAccountStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getFromAccountStandingInstructionSwagger.ts new file mode 100644 index 0000000000..58b475bfac --- /dev/null +++ b/packages/fineract-client/src/models/getFromAccountStandingInstructionSwagger.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFromAccountStandingInstructionSwagger { + accountNo?: number; + id?: number; + productId?: number; + productName?: string; +} + diff --git a/packages/fineract-client/src/models/getFromAccountTypeOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getFromAccountTypeOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..6e9c124a4d --- /dev/null +++ b/packages/fineract-client/src/models/getFromAccountTypeOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFromAccountTypeOptionsResponseStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFromAccountTypeResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getFromAccountTypeResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..b719d545c7 --- /dev/null +++ b/packages/fineract-client/src/models/getFromAccountTypeResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFromAccountTypeResponseStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFromAccountTypeStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getFromAccountTypeStandingInstructionSwagger.ts new file mode 100644 index 0000000000..0ea8e85b03 --- /dev/null +++ b/packages/fineract-client/src/models/getFromAccountTypeStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFromAccountTypeStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getFromClientOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getFromClientOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..df0e83e3d4 --- /dev/null +++ b/packages/fineract-client/src/models/getFromClientOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFromClientOptionsResponseStandingInstructionSwagger { + displayName?: string; + id?: number; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getFromClientStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getFromClientStandingInstructionSwagger.ts new file mode 100644 index 0000000000..0cdf51c4d0 --- /dev/null +++ b/packages/fineract-client/src/models/getFromClientStandingInstructionSwagger.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFromClientStandingInstructionSwagger { + displayName?: string; + id?: number; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getFromOfficeOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getFromOfficeOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..934527ece4 --- /dev/null +++ b/packages/fineract-client/src/models/getFromOfficeOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFromOfficeOptionsResponseStandingInstructionSwagger { + id?: number; + name?: string; + nameDecorated?: string; +} + diff --git a/packages/fineract-client/src/models/getFromOfficeResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getFromOfficeResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..8b32526162 --- /dev/null +++ b/packages/fineract-client/src/models/getFromOfficeResponseStandingInstructionSwagger.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFromOfficeResponseStandingInstructionSwagger { + decoratedName?: string; + externalId?: number; + hierarchy?: string; + id?: number; + name?: string; + openingDate?: string; +} + diff --git a/packages/fineract-client/src/models/getFromOfficeStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getFromOfficeStandingInstructionSwagger.ts new file mode 100644 index 0000000000..7979e8298c --- /dev/null +++ b/packages/fineract-client/src/models/getFromOfficeStandingInstructionSwagger.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetFromOfficeStandingInstructionSwagger { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getFundsResponse.ts b/packages/fineract-client/src/models/getFundsResponse.ts new file mode 100644 index 0000000000..c6898005a0 --- /dev/null +++ b/packages/fineract-client/src/models/getFundsResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetFundsResponse + */ +export interface GetFundsResponse { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getGLAccountsResponse.ts b/packages/fineract-client/src/models/getGLAccountsResponse.ts new file mode 100644 index 0000000000..b329ad25cd --- /dev/null +++ b/packages/fineract-client/src/models/getGLAccountsResponse.ts @@ -0,0 +1,33 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CodeValueData } from './codeValueData'; +import { EnumOptionData } from './enumOptionData'; + + +/** + * GetGLAccountsResponse + */ +export interface GetGLAccountsResponse { + description?: string; + disabled?: boolean; + glCode?: string; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + organizationRunningBalance?: number; + parentId?: number; + tagId?: CodeValueData; + type?: EnumOptionData; + usage?: EnumOptionData; +} + diff --git a/packages/fineract-client/src/models/getGLAccountsTemplateResponse.ts b/packages/fineract-client/src/models/getGLAccountsTemplateResponse.ts new file mode 100644 index 0000000000..9be90ea038 --- /dev/null +++ b/packages/fineract-client/src/models/getGLAccountsTemplateResponse.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GLAccountData } from './gLAccountData'; +import { CodeValueData } from './codeValueData'; +import { EnumOptionData } from './enumOptionData'; + + +/** + * GetGLAccountsTemplateResponse + */ +export interface GetGLAccountsTemplateResponse { + accountTypeOptions?: Array; + allowedAssetsTagOptions?: Array; + allowedEquityTagOptions?: Array; + allowedExpensesTagOptions?: Array; + allowedIncomeTagOptions?: Array; + allowedLiabilitiesTagOptions?: Array; + assetHeaderAccountOptions?: Array; + disabled?: boolean; + equityHeaderAccountOptions?: Array; + expenseHeaderAccountOptions?: Array; + liabilityHeaderAccountOptions?: Array; + manualEntriesAllowed?: boolean; + type?: EnumOptionData; + usage?: EnumOptionData; + usageOptions?: Array; +} + diff --git a/packages/fineract-client/src/models/getGlAccountMapping.ts b/packages/fineract-client/src/models/getGlAccountMapping.ts new file mode 100644 index 0000000000..101a5c90d5 --- /dev/null +++ b/packages/fineract-client/src/models/getGlAccountMapping.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGlAccountMapping { + glCode?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getGlClosureResponse.ts b/packages/fineract-client/src/models/getGlClosureResponse.ts new file mode 100644 index 0000000000..7982465513 --- /dev/null +++ b/packages/fineract-client/src/models/getGlClosureResponse.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetGLClosureResponse + */ +export interface GetGlClosureResponse { + closingDate?: string; + comments?: string; + createdByUserId?: number; + createdByUsername?: string; + createdDate?: string; + deleted?: boolean; + id?: number; + lastUpdatedByUserId?: number; + lastUpdatedByUsername?: string; + lastUpdatedDate?: string; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getGlobalConfigurationsResponse.ts b/packages/fineract-client/src/models/getGlobalConfigurationsResponse.ts new file mode 100644 index 0000000000..c17bed182b --- /dev/null +++ b/packages/fineract-client/src/models/getGlobalConfigurationsResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GlobalConfigurationPropertyData } from './globalConfigurationPropertyData'; + + +/** + * GetGlobalConfigurationsResponse + */ +export interface GetGlobalConfigurationsResponse { + globalConfiguration?: Array; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsLoanAccounts.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsLoanAccounts.ts new file mode 100644 index 0000000000..e4aacffc2c --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsLoanAccounts.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGroupsGroupIdAccountsLoanType } from './getGroupsGroupIdAccountsLoanType'; +import { GetGroupsGroupIdAccountsStatus } from './getGroupsGroupIdAccountsStatus'; + + +export interface GetGroupsGroupIdAccountsLoanAccounts { + accountNo?: number; + id?: number; + loanType?: GetGroupsGroupIdAccountsLoanType; + productId?: number; + productName?: string; + status?: GetGroupsGroupIdAccountsStatus; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsLoanType.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsLoanType.ts new file mode 100644 index 0000000000..ca5e2b59ab --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsLoanType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsGroupIdAccountsLoanType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanAccounts.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanAccounts.ts new file mode 100644 index 0000000000..e378a4536d --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanAccounts.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGroupsGroupIdAccountsMemberLoanType } from './getGroupsGroupIdAccountsMemberLoanType'; +import { GetGroupsGroupIdAccountsMemberLoanStatus } from './getGroupsGroupIdAccountsMemberLoanStatus'; + + +export interface GetGroupsGroupIdAccountsMemberLoanAccounts { + accountNo?: number; + id?: number; + loanType?: GetGroupsGroupIdAccountsMemberLoanType; + productId?: number; + productName?: string; + status?: GetGroupsGroupIdAccountsMemberLoanStatus; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanStatus.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanStatus.ts new file mode 100644 index 0000000000..afe83566e2 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanStatus.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsGroupIdAccountsMemberLoanStatus { + active?: boolean; + closed?: boolean; + closedObligationsMet?: boolean; + closedRescheduled?: boolean; + closedWrittenOff?: boolean; + code?: string; + description?: string; + id?: number; + overpaid?: boolean; + pendingApproval?: boolean; + waitingForDisbursal?: boolean; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanType.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanType.ts new file mode 100644 index 0000000000..e9e168ba2a --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberLoanType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsGroupIdAccountsMemberLoanType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberSavingsAccounts.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberSavingsAccounts.ts new file mode 100644 index 0000000000..30767f5083 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsMemberSavingsAccounts.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGroupsGroupIdAccountsMemberLoanType } from './getGroupsGroupIdAccountsMemberLoanType'; +import { GetGroupsGroupIdAccountsSavingCurrency } from './getGroupsGroupIdAccountsSavingCurrency'; +import { GetGroupsGroupIdAccountsSavingStatus } from './getGroupsGroupIdAccountsSavingStatus'; + + +export interface GetGroupsGroupIdAccountsMemberSavingsAccounts { + accountNo?: number; + accountType?: GetGroupsGroupIdAccountsMemberLoanType; + currency?: GetGroupsGroupIdAccountsSavingCurrency; + id?: number; + productId?: number; + productName?: string; + status?: GetGroupsGroupIdAccountsSavingStatus; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsResponse.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsResponse.ts new file mode 100644 index 0000000000..696bfbab5a --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGroupsGroupIdAccountsSavingAccounts } from './getGroupsGroupIdAccountsSavingAccounts'; +import { GetGroupsGroupIdAccountsLoanAccounts } from './getGroupsGroupIdAccountsLoanAccounts'; +import { GetGroupsGroupIdAccountsMemberSavingsAccounts } from './getGroupsGroupIdAccountsMemberSavingsAccounts'; +import { GetGroupsGroupIdAccountsMemberLoanAccounts } from './getGroupsGroupIdAccountsMemberLoanAccounts'; + + +/** + * GetGroupsGroupIdAccountsResponse + */ +export interface GetGroupsGroupIdAccountsResponse { + loanAccounts?: Set; + memberLoanAccounts?: Set; + memberSavingsAccounts?: Set; + savingsAccounts?: Set; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingAccountType.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingAccountType.ts new file mode 100644 index 0000000000..5620f56f3f --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingAccountType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsGroupIdAccountsSavingAccountType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingAccounts.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingAccounts.ts new file mode 100644 index 0000000000..3ae28d146c --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingAccounts.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGroupsGroupIdAccountsSavingAccountType } from './getGroupsGroupIdAccountsSavingAccountType'; +import { GetGroupsGroupIdAccountsSavingCurrency } from './getGroupsGroupIdAccountsSavingCurrency'; +import { GetGroupsGroupIdAccountsSavingStatus } from './getGroupsGroupIdAccountsSavingStatus'; + + +export interface GetGroupsGroupIdAccountsSavingAccounts { + accountNo?: number; + accountType?: GetGroupsGroupIdAccountsSavingAccountType; + currency?: GetGroupsGroupIdAccountsSavingCurrency; + id?: number; + productId?: number; + productName?: string; + status?: GetGroupsGroupIdAccountsSavingStatus; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingCurrency.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingCurrency.ts new file mode 100644 index 0000000000..474cc06766 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsGroupIdAccountsSavingCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingStatus.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingStatus.ts new file mode 100644 index 0000000000..fade9c107a --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsSavingStatus.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsGroupIdAccountsSavingStatus { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + description?: string; + id?: number; + rejected?: boolean; + submittedAndPendingApproval?: boolean; + withdrawnByApplicant?: boolean; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdAccountsStatus.ts b/packages/fineract-client/src/models/getGroupsGroupIdAccountsStatus.ts new file mode 100644 index 0000000000..b04f0a052f --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdAccountsStatus.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsGroupIdAccountsStatus { + active?: boolean; + closed?: boolean; + closedObligationsMet?: boolean; + closedRescheduled?: boolean; + closedWrittenOff?: boolean; + code?: string; + description?: string; + id?: number; + overpaid?: boolean; + pendingApproval?: boolean; + waitingForDisbursal?: boolean; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdResponse.ts b/packages/fineract-client/src/models/getGroupsGroupIdResponse.ts new file mode 100644 index 0000000000..37e4e6a4e8 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGroupsGroupIdTimeline } from './getGroupsGroupIdTimeline'; + + +/** + * GetGroupsGroupIdResponse + */ +export interface GetGroupsGroupIdResponse { + externalId?: string; + hierarchy?: string; + id?: number; + name?: string; + officeId?: number; + officeName?: string; + timeline?: GetGroupsGroupIdTimeline; +} + diff --git a/packages/fineract-client/src/models/getGroupsGroupIdTimeline.ts b/packages/fineract-client/src/models/getGroupsGroupIdTimeline.ts new file mode 100644 index 0000000000..43c69db4c7 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsGroupIdTimeline.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsGroupIdTimeline { + activatedByFirstname?: string; + activatedByLastname?: string; + activatedByUsername?: string; + activatedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getGroupsPageItems.ts b/packages/fineract-client/src/models/getGroupsPageItems.ts new file mode 100644 index 0000000000..faa23a6903 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsPageItems.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGroupsStatus } from './getGroupsStatus'; + + +export interface GetGroupsPageItems { + active?: boolean; + hierarchy?: string; + id?: number; + name?: string; + officeId?: number; + officeName?: string; + status?: GetGroupsStatus; +} + diff --git a/packages/fineract-client/src/models/getGroupsResponse.ts b/packages/fineract-client/src/models/getGroupsResponse.ts new file mode 100644 index 0000000000..a5b1d8c1c5 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGroupsPageItems } from './getGroupsPageItems'; + + +/** + * GetGroupsResponse + */ +export interface GetGroupsResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getGroupsStatus.ts b/packages/fineract-client/src/models/getGroupsStatus.ts new file mode 100644 index 0000000000..1c7fa30ff2 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsStatus.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsStatus { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getGroupsTemplateClientOptions.ts b/packages/fineract-client/src/models/getGroupsTemplateClientOptions.ts new file mode 100644 index 0000000000..e09530c032 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsTemplateClientOptions.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsTemplateClientOptions { + displayName?: string; + id?: number; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getGroupsTemplateColumnHeaderData.ts b/packages/fineract-client/src/models/getGroupsTemplateColumnHeaderData.ts new file mode 100644 index 0000000000..752a0cd31d --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsTemplateColumnHeaderData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsTemplateColumnHeaderData { + columnDisplayType?: string; + columnLength?: number; + columnName?: string; + columnType?: string; + columnValues?: Set; + isColumnNullable?: boolean; + isColumnPrimaryKey?: boolean; +} + diff --git a/packages/fineract-client/src/models/getGroupsTemplateDatatables.ts b/packages/fineract-client/src/models/getGroupsTemplateDatatables.ts new file mode 100644 index 0000000000..6b32a789df --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsTemplateDatatables.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGroupsTemplateColumnHeaderData } from './getGroupsTemplateColumnHeaderData'; + + +export interface GetGroupsTemplateDatatables { + applicationTableName?: string; + columnHeaderData?: Set; + registeredTableName?: string; +} + diff --git a/packages/fineract-client/src/models/getGroupsTemplateOfficeOptions.ts b/packages/fineract-client/src/models/getGroupsTemplateOfficeOptions.ts new file mode 100644 index 0000000000..365eeaf89a --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsTemplateOfficeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsTemplateOfficeOptions { + id?: number; + name?: string; + nameDecorated?: string; +} + diff --git a/packages/fineract-client/src/models/getGroupsTemplateResponse.ts b/packages/fineract-client/src/models/getGroupsTemplateResponse.ts new file mode 100644 index 0000000000..0a49557e08 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsTemplateResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGroupsTemplateDatatables } from './getGroupsTemplateDatatables'; +import { GetGroupsTemplateOfficeOptions } from './getGroupsTemplateOfficeOptions'; +import { GetGroupsTemplateClientOptions } from './getGroupsTemplateClientOptions'; +import { GetGroupsTemplateStaffOptions } from './getGroupsTemplateStaffOptions'; + + +/** + * GetGroupsTemplateResponse + */ +export interface GetGroupsTemplateResponse { + clientOptions?: Set; + datatables?: Set; + officeId?: number; + officeOptions?: Set; + staffOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getGroupsTemplateStaffOptions.ts b/packages/fineract-client/src/models/getGroupsTemplateStaffOptions.ts new file mode 100644 index 0000000000..f07b021569 --- /dev/null +++ b/packages/fineract-client/src/models/getGroupsTemplateStaffOptions.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetGroupsTemplateStaffOptions { + displayName?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getHolidaysResponse.ts b/packages/fineract-client/src/models/getHolidaysResponse.ts new file mode 100644 index 0000000000..c997c5e50d --- /dev/null +++ b/packages/fineract-client/src/models/getHolidaysResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +/** + * GetHolidaysResponse + */ +export interface GetHolidaysResponse { + fromDate?: string; + id?: number; + name?: string; + officeId?: number; + repaymentsRescheduledTo?: string; + status?: EnumOptionData; + toDate?: string; +} + diff --git a/packages/fineract-client/src/models/getHookResponse.ts b/packages/fineract-client/src/models/getHookResponse.ts new file mode 100644 index 0000000000..153d88771d --- /dev/null +++ b/packages/fineract-client/src/models/getHookResponse.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Field } from './field'; +import { Event } from './event'; + + +/** + * GetHookResponse + */ +export interface GetHookResponse { + config?: Array; + createdAt?: string; + displayName?: string; + events?: Array; + id?: number; + isActive?: boolean; + name?: string; + templateId?: number; + templateName?: string; + updatedAt?: string; +} + diff --git a/packages/fineract-client/src/models/getHookTemplateResponse.ts b/packages/fineract-client/src/models/getHookTemplateResponse.ts new file mode 100644 index 0000000000..05383b2f16 --- /dev/null +++ b/packages/fineract-client/src/models/getHookTemplateResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { HookTemplateData } from './hookTemplateData'; +import { Grouping } from './grouping'; + + +/** + * GetHookTemplateResponse + */ +export interface GetHookTemplateResponse { + groupings?: Array; + templates?: Array; +} + diff --git a/packages/fineract-client/src/models/getIncomeFromFeeAccountId.ts b/packages/fineract-client/src/models/getIncomeFromFeeAccountId.ts new file mode 100644 index 0000000000..716c8b1d4e --- /dev/null +++ b/packages/fineract-client/src/models/getIncomeFromFeeAccountId.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetIncomeFromFeeAccountId { + glCode?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getIncomeType.ts b/packages/fineract-client/src/models/getIncomeType.ts new file mode 100644 index 0000000000..929750884f --- /dev/null +++ b/packages/fineract-client/src/models/getIncomeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetIncomeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getInstructionTypeOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getInstructionTypeOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..78fae177b8 --- /dev/null +++ b/packages/fineract-client/src/models/getInstructionTypeOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetInstructionTypeOptionsResponseStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getInstructionTypeStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getInstructionTypeStandingInstructionSwagger.ts new file mode 100644 index 0000000000..bfc311edbd --- /dev/null +++ b/packages/fineract-client/src/models/getInstructionTypeStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetInstructionTypeStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsAttributeName.ts b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsAttributeName.ts new file mode 100644 index 0000000000..2fe76fca55 --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsAttributeName.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetInterestRateChartsChartIdChartSlabsAttributeName { + code?: number; + description?: number; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsConditionType.ts b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsConditionType.ts new file mode 100644 index 0000000000..12f3657675 --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsConditionType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetInterestRateChartsChartIdChartSlabsConditionType { + code?: number; + description?: number; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsEntityType.ts b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsEntityType.ts new file mode 100644 index 0000000000..48645f26ea --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsEntityType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetInterestRateChartsChartIdChartSlabsEntityType { + code?: number; + description?: number; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsIncentiveType.ts b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsIncentiveType.ts new file mode 100644 index 0000000000..538e68f688 --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsIncentiveType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetInterestRateChartsChartIdChartSlabsIncentiveType { + code?: number; + description?: number; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsIncentives.ts b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsIncentives.ts new file mode 100644 index 0000000000..c92d8985d3 --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsIncentives.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetInterestRateChartsChartIdChartSlabsAttributeName } from './getInterestRateChartsChartIdChartSlabsAttributeName'; +import { GetInterestRateChartsChartIdChartSlabsConditionType } from './getInterestRateChartsChartIdChartSlabsConditionType'; +import { GetInterestRateChartsChartIdChartSlabsIncentiveType } from './getInterestRateChartsChartIdChartSlabsIncentiveType'; +import { GetInterestRateChartsChartIdChartSlabsEntityType } from './getInterestRateChartsChartIdChartSlabsEntityType'; + + +export interface GetInterestRateChartsChartIdChartSlabsIncentives { + amount?: number; + attributeName?: GetInterestRateChartsChartIdChartSlabsAttributeName; + attributeValue?: number; + attributeValueDesc?: string; + conditionType?: GetInterestRateChartsChartIdChartSlabsConditionType; + entityType?: GetInterestRateChartsChartIdChartSlabsEntityType; + id?: number; + incentiveType?: GetInterestRateChartsChartIdChartSlabsIncentiveType; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsResponse.ts b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsResponse.ts new file mode 100644 index 0000000000..db116ef716 --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsChartIdChartSlabsResponse.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetInterestRateChartsCurrency } from './getInterestRateChartsCurrency'; +import { GetInterestRateChartsChartIdChartSlabsIncentives } from './getInterestRateChartsChartIdChartSlabsIncentives'; +import { GetInterestRateChartsTemplatePeriodTypes } from './getInterestRateChartsTemplatePeriodTypes'; + + +/** + * GetInterestRateChartsChartIdChartSlabsResponse + */ +export interface GetInterestRateChartsChartIdChartSlabsResponse { + annualInterestRate?: number; + currency?: GetInterestRateChartsCurrency; + description?: string; + fromPeriod?: number; + id?: number; + incentives?: Set; + periodTypes?: GetInterestRateChartsTemplatePeriodTypes; + toPeriod?: number; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsChartSlabs.ts b/packages/fineract-client/src/models/getInterestRateChartsChartSlabs.ts new file mode 100644 index 0000000000..40bf420c54 --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsChartSlabs.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetInterestRateChartsCurrency } from './getInterestRateChartsCurrency'; +import { GetInterestRateChartsTemplatePeriodTypes } from './getInterestRateChartsTemplatePeriodTypes'; + + +export interface GetInterestRateChartsChartSlabs { + annualInterestRate?: number; + currency?: GetInterestRateChartsCurrency; + fromPeriod?: number; + id?: number; + periodTypes?: GetInterestRateChartsTemplatePeriodTypes; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsCurrency.ts b/packages/fineract-client/src/models/getInterestRateChartsCurrency.ts new file mode 100644 index 0000000000..e77b5695ab --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetInterestRateChartsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsResponse.ts b/packages/fineract-client/src/models/getInterestRateChartsResponse.ts new file mode 100644 index 0000000000..5c9b1e9c3a --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetInterestRateChartsChartSlabs } from './getInterestRateChartsChartSlabs'; + + +/** + * GetInterestRateChartsResponse + */ +export interface GetInterestRateChartsResponse { + chartSlabs?: Set; + fromDate?: string; + id?: number; + savingsProductId?: number; + savingsProductName?: string; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsTemplatePeriodTypes.ts b/packages/fineract-client/src/models/getInterestRateChartsTemplatePeriodTypes.ts new file mode 100644 index 0000000000..e7b77f8286 --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsTemplatePeriodTypes.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetInterestRateChartsTemplatePeriodTypes { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getInterestRateChartsTemplateResponse.ts b/packages/fineract-client/src/models/getInterestRateChartsTemplateResponse.ts new file mode 100644 index 0000000000..45b4934a1f --- /dev/null +++ b/packages/fineract-client/src/models/getInterestRateChartsTemplateResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetInterestRateChartsTemplatePeriodTypes } from './getInterestRateChartsTemplatePeriodTypes'; + + +/** + * GetInterestRateChartsTemplateResponse + */ +export interface GetInterestRateChartsTemplateResponse { + periodTypes?: Set; +} + diff --git a/packages/fineract-client/src/models/getJobsJobIDJobRunHistoryResponse.ts b/packages/fineract-client/src/models/getJobsJobIDJobRunHistoryResponse.ts new file mode 100644 index 0000000000..ed5f8d37be --- /dev/null +++ b/packages/fineract-client/src/models/getJobsJobIDJobRunHistoryResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { JobDetailHistoryDataSwagger } from './jobDetailHistoryDataSwagger'; + + +/** + * GetJobsJobIDJobRunHistoryResponse + */ +export interface GetJobsJobIDJobRunHistoryResponse { + pageItems?: Array; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getJobsResponse.ts b/packages/fineract-client/src/models/getJobsResponse.ts new file mode 100644 index 0000000000..1deaccfcd8 --- /dev/null +++ b/packages/fineract-client/src/models/getJobsResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { JobDetailHistoryData } from './jobDetailHistoryData'; + + +/** + * GetJobsResponse + */ +export interface GetJobsResponse { + active?: boolean; + cronExpression?: string; + currentlyRunning?: boolean; + displayName?: string; + initializingError?: string; + jobId?: number; + lastRunHistory?: JobDetailHistoryData; + nextRunTime?: string; +} + diff --git a/packages/fineract-client/src/models/getJournalEntriesTransactionIdResponse.ts b/packages/fineract-client/src/models/getJournalEntriesTransactionIdResponse.ts new file mode 100644 index 0000000000..c70c683f38 --- /dev/null +++ b/packages/fineract-client/src/models/getJournalEntriesTransactionIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { JournalEntryTransactionItem } from './journalEntryTransactionItem'; + + +/** + * GetJournalEntriesTransactionIdResponse + */ +export interface GetJournalEntriesTransactionIdResponse { + pageItems?: Array; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanAccountLockResponse.ts b/packages/fineract-client/src/models/getLoanAccountLockResponse.ts new file mode 100644 index 0000000000..f64f8ce540 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanAccountLockResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { LoanAccountLock } from './loanAccountLock'; + + +/** + * GetLoanAccountLockResponse + */ +export interface GetLoanAccountLockResponse { + content?: Array; + limit?: number; + page?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanAccountingMappings.ts b/packages/fineract-client/src/models/getLoanAccountingMappings.ts new file mode 100644 index 0000000000..425c4a9f0e --- /dev/null +++ b/packages/fineract-client/src/models/getLoanAccountingMappings.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGlAccountMapping } from './getGlAccountMapping'; + + +export interface GetLoanAccountingMappings { + fundSourceAccount?: GetGlAccountMapping; + goodwillCreditAccount?: GetGlAccountMapping; + incomeFromFeeAccount?: GetGlAccountMapping; + incomeFromPenaltyAccount?: GetGlAccountMapping; + incomeFromRecoveryAccount?: GetGlAccountMapping; + interestOnLoanAccount?: GetGlAccountMapping; + loanPortfolioAccount?: GetGlAccountMapping; + overpaymentLiabilityAccount?: GetGlAccountMapping; + receivableInterestAccount?: GetGlAccountMapping; + receivablePenaltyAccount?: GetGlAccountMapping; + transfersInSuspenseAccount?: GetGlAccountMapping; + writeOffAccount?: GetGlAccountMapping; +} + diff --git a/packages/fineract-client/src/models/getLoanCharge.ts b/packages/fineract-client/src/models/getLoanCharge.ts new file mode 100644 index 0000000000..51e096ad89 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanCharge.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanCharge { + active?: boolean; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoanChargeCalculationType.ts b/packages/fineract-client/src/models/getLoanChargeCalculationType.ts new file mode 100644 index 0000000000..9ad6bed2e2 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanChargeCurrency.ts b/packages/fineract-client/src/models/getLoanChargeCurrency.ts new file mode 100644 index 0000000000..9bc16b54a0 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanChargeCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanChargeCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getLoanChargeTemplateChargeAppliesTo.ts b/packages/fineract-client/src/models/getLoanChargeTemplateChargeAppliesTo.ts new file mode 100644 index 0000000000..18a058bd41 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanChargeTemplateChargeAppliesTo.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanChargeTemplateChargeAppliesTo { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanChargeTemplateChargeOptions.ts b/packages/fineract-client/src/models/getLoanChargeTemplateChargeOptions.ts new file mode 100644 index 0000000000..a109e2c973 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanChargeTemplateChargeOptions.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanChargeCalculationType } from './getLoanChargeCalculationType'; +import { GetLoanChargeTemplateChargeTimeType } from './getLoanChargeTemplateChargeTimeType'; +import { GetLoanChargeCurrency } from './getLoanChargeCurrency'; +import { GetLoanChargeTemplateChargeAppliesTo } from './getLoanChargeTemplateChargeAppliesTo'; + + +export interface GetLoanChargeTemplateChargeOptions { + active?: boolean; + amount?: number; + chargeAppliesTo?: GetLoanChargeTemplateChargeAppliesTo; + chargeCalculationType?: GetLoanChargeCalculationType; + chargeTimeType?: GetLoanChargeTemplateChargeTimeType; + currency?: GetLoanChargeCurrency; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoanChargeTemplateChargeTimeType.ts b/packages/fineract-client/src/models/getLoanChargeTemplateChargeTimeType.ts new file mode 100644 index 0000000000..37de4cff9a --- /dev/null +++ b/packages/fineract-client/src/models/getLoanChargeTemplateChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanChargeTemplateChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanChargeTimeType.ts b/packages/fineract-client/src/models/getLoanChargeTimeType.ts new file mode 100644 index 0000000000..bd6f1dd79e --- /dev/null +++ b/packages/fineract-client/src/models/getLoanChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanCollateralManagementTemplate.ts b/packages/fineract-client/src/models/getLoanCollateralManagementTemplate.ts new file mode 100644 index 0000000000..437115a936 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanCollateralManagementTemplate.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetLoanCollateralManagementTemplate + */ +export interface GetLoanCollateralManagementTemplate { + basePrice?: number; + collateralId?: number; + name?: string; + pctToBase?: number; + quantity?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanCurrency.ts b/packages/fineract-client/src/models/getLoanCurrency.ts new file mode 100644 index 0000000000..7e6626cc37 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getLoanFeeToIncomeAccountMappings.ts b/packages/fineract-client/src/models/getLoanFeeToIncomeAccountMappings.ts new file mode 100644 index 0000000000..03f024cd92 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanFeeToIncomeAccountMappings.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetGlAccountMapping } from './getGlAccountMapping'; +import { GetLoanCharge } from './getLoanCharge'; + + +export interface GetLoanFeeToIncomeAccountMappings { + charge?: GetLoanCharge; + chargeId?: number; + incomeAccount?: GetGlAccountMapping; + incomeAccountId?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanPaymentChannelToFundSourceMappings.ts b/packages/fineract-client/src/models/getLoanPaymentChannelToFundSourceMappings.ts new file mode 100644 index 0000000000..56aec14dd3 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanPaymentChannelToFundSourceMappings.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanPaymentChannelToFundSourceMappings { + fundSourceAccountId?: number; + paymentTypeId?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsAccountingMappingOptions.ts b/packages/fineract-client/src/models/getLoanProductsAccountingMappingOptions.ts new file mode 100644 index 0000000000..c67bec6ce7 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsAccountingMappingOptions.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanProductsIncomeAccountOptions } from './getLoanProductsIncomeAccountOptions'; +import { GetLoanProductsLiabilityAccountOptions } from './getLoanProductsLiabilityAccountOptions'; +import { GetLoanProductsExpenseAccountOptions } from './getLoanProductsExpenseAccountOptions'; +import { GetLoanProductsAssetAccountOptions } from './getLoanProductsAssetAccountOptions'; + + +export interface GetLoanProductsAccountingMappingOptions { + assetAccountOptions?: Set; + expenseAccountOptions?: Set; + incomeAccountOptions?: Set; + liabilityAccountOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsAccountingRule.ts b/packages/fineract-client/src/models/getLoanProductsAccountingRule.ts new file mode 100644 index 0000000000..92f5899ebb --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsAccountingRule.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsAccountingRule { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsAmortizationType.ts b/packages/fineract-client/src/models/getLoanProductsAmortizationType.ts new file mode 100644 index 0000000000..1680d095ba --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsAmortizationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsAmortizationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsAssetAccountOptions.ts b/packages/fineract-client/src/models/getLoanProductsAssetAccountOptions.ts new file mode 100644 index 0000000000..13f2e0807d --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsAssetAccountOptions.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanProductsLiabilityUsage } from './getLoanProductsLiabilityUsage'; +import { GetLoanProductsLiabilityTagId } from './getLoanProductsLiabilityTagId'; +import { GetLoanProductsLiabilityType } from './getLoanProductsLiabilityType'; + + +export interface GetLoanProductsAssetAccountOptions { + disabled?: boolean; + glCode?: number; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + organizationRunningBalance?: number; + tagId?: GetLoanProductsLiabilityTagId; + type?: GetLoanProductsLiabilityType; + usage?: GetLoanProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsChargeAppliesTo.ts b/packages/fineract-client/src/models/getLoanProductsChargeAppliesTo.ts new file mode 100644 index 0000000000..cf49394f83 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsChargeAppliesTo.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsChargeAppliesTo { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsChargeOptions.ts b/packages/fineract-client/src/models/getLoanProductsChargeOptions.ts new file mode 100644 index 0000000000..971d3442f8 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsChargeOptions.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanChargeCalculationType } from './getLoanChargeCalculationType'; +import { GetLoanProductsChargeAppliesTo } from './getLoanProductsChargeAppliesTo'; +import { GetLoanProductsCurrencyOptions } from './getLoanProductsCurrencyOptions'; +import { GetLoansChargePaymentMode } from './getLoansChargePaymentMode'; +import { GetLoanChargeTimeType } from './getLoanChargeTimeType'; + + +export interface GetLoanProductsChargeOptions { + active?: boolean; + amount?: number; + chargeAppliesTo?: GetLoanProductsChargeAppliesTo; + chargeCalculationType?: GetLoanChargeCalculationType; + chargePaymentMode?: GetLoansChargePaymentMode; + chargeTimeType?: GetLoanChargeTimeType; + currency?: GetLoanProductsCurrencyOptions; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsCurrency.ts b/packages/fineract-client/src/models/getLoanProductsCurrency.ts new file mode 100644 index 0000000000..9ba5d138c0 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsCurrencyOptions.ts b/packages/fineract-client/src/models/getLoanProductsCurrencyOptions.ts new file mode 100644 index 0000000000..4df0c824e0 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsCurrencyOptions.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsCurrencyOptions { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsDaysInYearTemplateType.ts b/packages/fineract-client/src/models/getLoanProductsDaysInYearTemplateType.ts new file mode 100644 index 0000000000..5f3623fdb3 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsDaysInYearTemplateType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsDaysInYearTemplateType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsExpenseAccountOptions.ts b/packages/fineract-client/src/models/getLoanProductsExpenseAccountOptions.ts new file mode 100644 index 0000000000..7956f75404 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsExpenseAccountOptions.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanProductsExpenseType } from './getLoanProductsExpenseType'; +import { GetLoanProductsLiabilityUsage } from './getLoanProductsLiabilityUsage'; +import { GetLoanProductsLiabilityTagId } from './getLoanProductsLiabilityTagId'; + + +export interface GetLoanProductsExpenseAccountOptions { + disabled?: boolean; + glCode?: number; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + organizationRunningBalance?: number; + tagId?: GetLoanProductsLiabilityTagId; + type?: GetLoanProductsExpenseType; + usage?: GetLoanProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsExpenseType.ts b/packages/fineract-client/src/models/getLoanProductsExpenseType.ts new file mode 100644 index 0000000000..50b7ce3bfa --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsExpenseType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsExpenseType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsIncomeAccountOptions.ts b/packages/fineract-client/src/models/getLoanProductsIncomeAccountOptions.ts new file mode 100644 index 0000000000..397a96a923 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsIncomeAccountOptions.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanProductsLiabilityUsage } from './getLoanProductsLiabilityUsage'; +import { GetLoanProductsLiabilityTagId } from './getLoanProductsLiabilityTagId'; +import { GetLoanProductsIncomeType } from './getLoanProductsIncomeType'; + + +export interface GetLoanProductsIncomeAccountOptions { + disabled?: boolean; + glCode?: number; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + organizationRunningBalance?: number; + tagId?: GetLoanProductsLiabilityTagId; + type?: GetLoanProductsIncomeType; + usage?: GetLoanProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsIncomeType.ts b/packages/fineract-client/src/models/getLoanProductsIncomeType.ts new file mode 100644 index 0000000000..672f6d9e5d --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsIncomeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsIncomeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsInterestRateFrequencyType.ts b/packages/fineract-client/src/models/getLoanProductsInterestRateFrequencyType.ts new file mode 100644 index 0000000000..d064b4d335 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsInterestRateFrequencyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsInterestRateFrequencyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsInterestRateTemplateFrequencyType.ts b/packages/fineract-client/src/models/getLoanProductsInterestRateTemplateFrequencyType.ts new file mode 100644 index 0000000000..f5d82e5c7c --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsInterestRateTemplateFrequencyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsInterestRateTemplateFrequencyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsInterestRecalculationCompoundingFrequencyType.ts b/packages/fineract-client/src/models/getLoanProductsInterestRecalculationCompoundingFrequencyType.ts new file mode 100644 index 0000000000..358af8fbdd --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsInterestRecalculationCompoundingFrequencyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsInterestRecalculationCompoundingFrequencyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsInterestRecalculationCompoundingType.ts b/packages/fineract-client/src/models/getLoanProductsInterestRecalculationCompoundingType.ts new file mode 100644 index 0000000000..91cede8ab3 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsInterestRecalculationCompoundingType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsInterestRecalculationCompoundingType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsInterestRecalculationData.ts b/packages/fineract-client/src/models/getLoanProductsInterestRecalculationData.ts new file mode 100644 index 0000000000..6a0c7c5b55 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsInterestRecalculationData.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanProductsInterestRecalculationCompoundingFrequencyType } from './getLoanProductsInterestRecalculationCompoundingFrequencyType'; +import { GetLoanProductsInterestRecalculationCompoundingType } from './getLoanProductsInterestRecalculationCompoundingType'; +import { GetLoanProductsPreClosureInterestCalculationStrategy } from './getLoanProductsPreClosureInterestCalculationStrategy'; +import { GetLoanProductsRescheduleStrategyType } from './getLoanProductsRescheduleStrategyType'; + + +export interface GetLoanProductsInterestRecalculationData { + id?: number; + interestRecalculationCompoundingFrequencyType?: GetLoanProductsInterestRecalculationCompoundingFrequencyType; + interestRecalculationCompoundingType?: GetLoanProductsInterestRecalculationCompoundingType; + isArrearsBasedOnOriginalSchedule?: boolean; + preClosureInterestCalculationStrategy?: GetLoanProductsPreClosureInterestCalculationStrategy; + productId?: number; + recalculationCompoundingFrequencyInterval?: number; + recalculationCompoundingFrequencyOnDayType?: number; + recalculationRestFrequencyInterval?: number; + recalculationRestFrequencyType?: GetLoanProductsInterestRecalculationCompoundingFrequencyType; + rescheduleStrategyType?: GetLoanProductsRescheduleStrategyType; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsInterestRecalculationTemplateData.ts b/packages/fineract-client/src/models/getLoanProductsInterestRecalculationTemplateData.ts new file mode 100644 index 0000000000..ac572396a2 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsInterestRecalculationTemplateData.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanProductsInterestRecalculationCompoundingType } from './getLoanProductsInterestRecalculationCompoundingType'; +import { GetLoanProductsPreClosureInterestCalculationStrategy } from './getLoanProductsPreClosureInterestCalculationStrategy'; +import { GetLoanProductsRescheduleStrategyType } from './getLoanProductsRescheduleStrategyType'; + + +export interface GetLoanProductsInterestRecalculationTemplateData { + interestRecalculationCompoundingType?: GetLoanProductsInterestRecalculationCompoundingType; + preClosureInterestCalculationStrategy?: GetLoanProductsPreClosureInterestCalculationStrategy; + rescheduleStrategyType?: GetLoanProductsRescheduleStrategyType; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsInterestTemplateType.ts b/packages/fineract-client/src/models/getLoanProductsInterestTemplateType.ts new file mode 100644 index 0000000000..1461d6202e --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsInterestTemplateType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsInterestTemplateType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsInterestType.ts b/packages/fineract-client/src/models/getLoanProductsInterestType.ts new file mode 100644 index 0000000000..10f7259767 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsInterestType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsInterestType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsLiabilityAccountOptions.ts b/packages/fineract-client/src/models/getLoanProductsLiabilityAccountOptions.ts new file mode 100644 index 0000000000..851d4cf7fd --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsLiabilityAccountOptions.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanProductsLiabilityUsage } from './getLoanProductsLiabilityUsage'; +import { GetLoanProductsLiabilityTagId } from './getLoanProductsLiabilityTagId'; +import { GetLoanProductsLiabilityType } from './getLoanProductsLiabilityType'; + + +export interface GetLoanProductsLiabilityAccountOptions { + disabled?: boolean; + glCode?: number; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + organizationRunningBalance?: number; + tagId?: GetLoanProductsLiabilityTagId; + type?: GetLoanProductsLiabilityType; + usage?: GetLoanProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsLiabilityTagId.ts b/packages/fineract-client/src/models/getLoanProductsLiabilityTagId.ts new file mode 100644 index 0000000000..bdfdbf1bc5 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsLiabilityTagId.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsLiabilityTagId { + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsLiabilityType.ts b/packages/fineract-client/src/models/getLoanProductsLiabilityType.ts new file mode 100644 index 0000000000..bbaf1bdfc6 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsLiabilityType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsLiabilityType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsLiabilityUsage.ts b/packages/fineract-client/src/models/getLoanProductsLiabilityUsage.ts new file mode 100644 index 0000000000..d4c97bee2c --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsLiabilityUsage.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsLiabilityUsage { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsParamType.ts b/packages/fineract-client/src/models/getLoanProductsParamType.ts new file mode 100644 index 0000000000..a93c24dbf0 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsParamType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsParamType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsPaymentTypeOptions.ts b/packages/fineract-client/src/models/getLoanProductsPaymentTypeOptions.ts new file mode 100644 index 0000000000..dbfc6453da --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsPaymentTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsPaymentTypeOptions { + id?: number; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsPreClosureInterestCalculationStrategy.ts b/packages/fineract-client/src/models/getLoanProductsPreClosureInterestCalculationStrategy.ts new file mode 100644 index 0000000000..a3e569de33 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsPreClosureInterestCalculationStrategy.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsPreClosureInterestCalculationStrategy { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsPrincipalVariationsForBorrowerCycle.ts b/packages/fineract-client/src/models/getLoanProductsPrincipalVariationsForBorrowerCycle.ts new file mode 100644 index 0000000000..9ef148fc6c --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsPrincipalVariationsForBorrowerCycle.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanProductsParamType } from './getLoanProductsParamType'; +import { GetLoanProductsValueConditionType } from './getLoanProductsValueConditionType'; + + +export interface GetLoanProductsPrincipalVariationsForBorrowerCycle { + borrowerCycleNumber?: number; + defaultValue?: number; + id?: number; + maxValue?: number; + minValue?: number; + paramType?: GetLoanProductsParamType; + valueConditionType?: GetLoanProductsValueConditionType; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsProductIdResponse.ts b/packages/fineract-client/src/models/getLoanProductsProductIdResponse.ts new file mode 100644 index 0000000000..63d3dea99c --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsProductIdResponse.ts @@ -0,0 +1,71 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanAccountingMappings } from './getLoanAccountingMappings'; +import { GetLoanProductsInterestRateFrequencyType } from './getLoanProductsInterestRateFrequencyType'; +import { GetLoanPaymentChannelToFundSourceMappings } from './getLoanPaymentChannelToFundSourceMappings'; +import { GetLoanProductsAccountingRule } from './getLoanProductsAccountingRule'; +import { GetDelinquencyBucketsResponse } from './getDelinquencyBucketsResponse'; +import { GetLoanProductsRepaymentFrequencyType } from './getLoanProductsRepaymentFrequencyType'; +import { GetLoanProductsInterestTemplateType } from './getLoanProductsInterestTemplateType'; +import { GetLoanFeeToIncomeAccountMappings } from './getLoanFeeToIncomeAccountMappings'; +import { GetLoansProductsInterestCalculationPeriodType } from './getLoansProductsInterestCalculationPeriodType'; +import { GetLoanProductsAmortizationType } from './getLoanProductsAmortizationType'; +import { GetLoanProductsCurrency } from './getLoanProductsCurrency'; +import { GetLoanProductsPrincipalVariationsForBorrowerCycle } from './getLoanProductsPrincipalVariationsForBorrowerCycle'; + + +/** + * GetLoanProductsProductIdResponse + */ +export interface GetLoanProductsProductIdResponse { + accountingMappings?: GetLoanAccountingMappings; + accountingRule?: GetLoanProductsAccountingRule; + amortizationType?: GetLoanProductsAmortizationType; + annualInterestRate?: number; + charges?: Array; + currency?: GetLoanProductsCurrency; + delinquencyBucket?: GetDelinquencyBucketsResponse; + disallowExpectedDisbursements?: boolean; + dueDaysForRepaymentEvent?: number; + feeToIncomeAccountMappings?: Set; + fixedPrincipalPercentagePerInstallment?: number; + id?: number; + inArrearsTolerance?: number; + includeInBorrowerCycle?: boolean; + interestCalculationPeriodType?: GetLoansProductsInterestCalculationPeriodType; + interestRateFrequencyType?: GetLoanProductsInterestRateFrequencyType; + interestRatePerPeriod?: number; + interestRateVariationsForBorrowerCycle?: Array; + interestType?: GetLoanProductsInterestTemplateType; + maxPrincipal?: number; + maxTrancheCount?: number; + minPrincipal?: number; + multiDisburseLoan?: boolean; + name?: string; + numberOfRepaymentVariationsForBorrowerCycle?: Array; + numberOfRepayments?: number; + outstandingLoanBalance?: number; + overDueDaysForRepaymentEvent?: number; + overdueDaysForNPA?: number; + paymentChannelToFundSourceMappings?: Set; + principal?: number; + principalThresholdForLastInstalment?: number; + productsPrincipalVariationsForBorrowerCycle?: Set; + repaymentEvery?: number; + repaymentFrequencyType?: GetLoanProductsRepaymentFrequencyType; + shortName?: string; + status?: string; + transactionProcessingStrategyCode?: string; + transactionProcessingStrategyName?: string; + useBorrowerCycle?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsRepaymentFrequencyType.ts b/packages/fineract-client/src/models/getLoanProductsRepaymentFrequencyType.ts new file mode 100644 index 0000000000..493bfbf64d --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsRepaymentFrequencyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsRepaymentFrequencyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsRepaymentTemplateFrequencyType.ts b/packages/fineract-client/src/models/getLoanProductsRepaymentTemplateFrequencyType.ts new file mode 100644 index 0000000000..91f2bb2d2e --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsRepaymentTemplateFrequencyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsRepaymentTemplateFrequencyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsRescheduleStrategyType.ts b/packages/fineract-client/src/models/getLoanProductsRescheduleStrategyType.ts new file mode 100644 index 0000000000..c2f576ac2d --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsRescheduleStrategyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsRescheduleStrategyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsResponse.ts b/packages/fineract-client/src/models/getLoanProductsResponse.ts new file mode 100644 index 0000000000..19953ab8b5 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsResponse.ts @@ -0,0 +1,64 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanProductsInterestType } from './getLoanProductsInterestType'; +import { GetLoanProductsInterestRateFrequencyType } from './getLoanProductsInterestRateFrequencyType'; +import { GetLoansProductsDaysInMonthType } from './getLoansProductsDaysInMonthType'; +import { GetLoanProductsAccountingRule } from './getLoanProductsAccountingRule'; +import { GetLoanProductsInterestRecalculationData } from './getLoanProductsInterestRecalculationData'; +import { GetLoansProductsDaysInYearType } from './getLoansProductsDaysInYearType'; +import { GetLoanProductsRepaymentFrequencyType } from './getLoanProductsRepaymentFrequencyType'; +import { GetLoansProductsInterestCalculationPeriodType } from './getLoansProductsInterestCalculationPeriodType'; +import { GetLoanProductsAmortizationType } from './getLoanProductsAmortizationType'; +import { GetLoanProductsCurrency } from './getLoanProductsCurrency'; + + +/** + * GetLoanProductsResponse + */ +export interface GetLoanProductsResponse { + accountingRule?: GetLoanProductsAccountingRule; + amortizationType?: GetLoanProductsAmortizationType; + annualInterestRate?: number; + currency?: GetLoanProductsCurrency; + daysInMonthType?: GetLoansProductsDaysInMonthType; + daysInYearType?: GetLoansProductsDaysInYearType; + endDate?: string; + fixedPrincipalPercentagePerInstallment?: number; + id?: number; + includeInBorrowerCycle?: boolean; + interestCalculationPeriodType?: GetLoansProductsInterestCalculationPeriodType; + interestRateFrequencyType?: GetLoanProductsInterestRateFrequencyType; + interestRatePerPeriod?: number; + interestRateVariationsForBorrowerCycle?: Array; + interestRecalculationData?: GetLoanProductsInterestRecalculationData; + interestType?: GetLoanProductsInterestType; + isInterestRecalculationEnabled?: boolean; + maxNumberOfRepayments?: number; + maxPrincipal?: number; + minNumberOfRepayments?: number; + minPrincipal?: number; + name?: string; + numberOfRepaymentVariationsForBorrowerCycle?: Array; + numberOfRepayments?: number; + principal?: number; + principalThresholdForLastInstalment?: number; + principalVariationsForBorrowerCycle?: Array; + repaymentEvery?: number; + repaymentFrequencyType?: GetLoanProductsRepaymentFrequencyType; + shortName?: string; + startDate?: string; + status?: string; + transactionProcessingStrategy?: string; + transactionProcessingStrategyName?: string; + useBorrowerCycle?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsTemplateCurrency.ts b/packages/fineract-client/src/models/getLoanProductsTemplateCurrency.ts new file mode 100644 index 0000000000..3f9b629b44 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsTemplateCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsTemplateCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsTemplateResponse.ts b/packages/fineract-client/src/models/getLoanProductsTemplateResponse.ts new file mode 100644 index 0000000000..7a44f76ed1 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsTemplateResponse.ts @@ -0,0 +1,73 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanProductsPaymentTypeOptions } from './getLoanProductsPaymentTypeOptions'; +import { GetLoanProductsRepaymentTemplateFrequencyType } from './getLoanProductsRepaymentTemplateFrequencyType'; +import { GetLoanProductsAccountingMappingOptions } from './getLoanProductsAccountingMappingOptions'; +import { GetLoansProductsDaysInMonthTemplateType } from './getLoansProductsDaysInMonthTemplateType'; +import { GetLoanProductsDaysInYearTemplateType } from './getLoanProductsDaysInYearTemplateType'; +import { GetLoanProductsInterestRecalculationTemplateData } from './getLoanProductsInterestRecalculationTemplateData'; +import { GetLoanProductsInterestTemplateType } from './getLoanProductsInterestTemplateType'; +import { GetLoanProductsInterestRateTemplateFrequencyType } from './getLoanProductsInterestRateTemplateFrequencyType'; +import { GetLoanProductsTemplateCurrency } from './getLoanProductsTemplateCurrency'; +import { GetLoanProductsAmortizationType } from './getLoanProductsAmortizationType'; +import { GetLoanProductsPreClosureInterestCalculationStrategy } from './getLoanProductsPreClosureInterestCalculationStrategy'; +import { GetLoanProductsRescheduleStrategyType } from './getLoanProductsRescheduleStrategyType'; +import { GetLoanProductsValueConditionTypeOptions } from './getLoanProductsValueConditionTypeOptions'; +import { GetLoanProductsTransactionProcessingStrategyOptions } from './getLoanProductsTransactionProcessingStrategyOptions'; +import { GetLoanProductsInterestRecalculationCompoundingFrequencyType } from './getLoanProductsInterestRecalculationCompoundingFrequencyType'; +import { GetLoanProductsCurrencyOptions } from './getLoanProductsCurrencyOptions'; +import { GetLoanProductsAccountingRule } from './getLoanProductsAccountingRule'; +import { GetLoanProductsChargeOptions } from './getLoanProductsChargeOptions'; +import { GetLoanProductsInterestRecalculationCompoundingType } from './getLoanProductsInterestRecalculationCompoundingType'; +import { GetLoansProductsInterestCalculationPeriodType } from './getLoansProductsInterestCalculationPeriodType'; + + +/** + * GetLoanProductsTemplateResponse + */ +export interface GetLoanProductsTemplateResponse { + accountingMappingOptions?: GetLoanProductsAccountingMappingOptions; + accountingRule?: GetLoanProductsAccountingRule; + accountingRuleOptions?: Set; + amortizationType?: GetLoanProductsAmortizationType; + amortizationTypeOptions?: Set; + chargeOptions?: Set; + currency?: GetLoanProductsTemplateCurrency; + currencyOptions?: Set; + daysInMonthType?: GetLoansProductsDaysInMonthTemplateType; + daysInMonthTypeOptions?: Set; + daysInYearType?: GetLoanProductsDaysInYearTemplateType; + daysInYearTypeOptions?: Set; + includeInBorrowerCycle?: boolean; + interestCalculationPeriodType?: GetLoansProductsInterestCalculationPeriodType; + interestCalculationPeriodTypeOptions?: Set; + interestRateFrequencyType?: GetLoanProductsInterestRateTemplateFrequencyType; + interestRateFrequencyTypeOptions?: Set; + interestRateVariationsForBorrowerCycle?: Array; + interestRecalculationCompoundingTypeOptions?: Set; + interestRecalculationData?: GetLoanProductsInterestRecalculationTemplateData; + interestRecalculationFrequencyTypeOptions?: Set; + interestType?: GetLoanProductsInterestTemplateType; + interestTypeOptions?: Set; + isInterestRecalculationEnabled?: boolean; + numberOfRepaymentVariationsForBorrowerCycle?: Array; + paymentTypeOptions?: Set; + preClosureInterestCalculationStrategyOptions?: Set; + principalVariationsForBorrowerCycle?: Array; + repaymentFrequencyType?: GetLoanProductsRepaymentTemplateFrequencyType; + repaymentFrequencyTypeOptions?: Set; + rescheduleStrategyTypeOptions?: Set; + transactionProcessingStrategyOptions?: Set; + useBorrowerCycle?: boolean; + valueConditionTypeOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsTransactionProcessingStrategyOptions.ts b/packages/fineract-client/src/models/getLoanProductsTransactionProcessingStrategyOptions.ts new file mode 100644 index 0000000000..82b7b66ddf --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsTransactionProcessingStrategyOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsTransactionProcessingStrategyOptions { + code?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsValueConditionType.ts b/packages/fineract-client/src/models/getLoanProductsValueConditionType.ts new file mode 100644 index 0000000000..9e03f42b1e --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsValueConditionType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsValueConditionType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanProductsValueConditionTypeOptions.ts b/packages/fineract-client/src/models/getLoanProductsValueConditionTypeOptions.ts new file mode 100644 index 0000000000..f9e0cd34be --- /dev/null +++ b/packages/fineract-client/src/models/getLoanProductsValueConditionTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanProductsValueConditionTypeOptions { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoanRescheduleRequestResponse.ts b/packages/fineract-client/src/models/getLoanRescheduleRequestResponse.ts new file mode 100644 index 0000000000..d14b6d8ab3 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanRescheduleRequestResponse.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanRescheduleRequestStatus } from './getLoanRescheduleRequestStatus'; +import { RescheduleReasonsTimeline } from './rescheduleReasonsTimeline'; +import { LoanTermVariationsData } from './loanTermVariationsData'; +import { RescheduleReasonsCodeValue } from './rescheduleReasonsCodeValue'; + + +/** + * GetLoanRescheduleRequestResponse + */ +export interface GetLoanRescheduleRequestResponse { + clientId?: number; + clientName?: string; + id?: number; + loanAccountNumber?: string; + loanId?: number; + loanTermVariationsData?: Set; + recalculateInterest?: boolean; + rescheduleFromDate?: string; + rescheduleFromInstallment?: number; + rescheduleReasonCodeValue?: RescheduleReasonsCodeValue; + rescheduleReasonComment?: string; + statusEnum?: GetLoanRescheduleRequestStatus; + timeline?: RescheduleReasonsTimeline; +} + diff --git a/packages/fineract-client/src/models/getLoanRescheduleRequestStatus.ts b/packages/fineract-client/src/models/getLoanRescheduleRequestStatus.ts new file mode 100644 index 0000000000..099cd821f5 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanRescheduleRequestStatus.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanRescheduleRequestStatus { + approved?: boolean; + code?: string; + id?: number; + pendingApproval?: boolean; + rejected?: boolean; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getLoanTransactionRelation.ts b/packages/fineract-client/src/models/getLoanTransactionRelation.ts new file mode 100644 index 0000000000..e3bc2c25b6 --- /dev/null +++ b/packages/fineract-client/src/models/getLoanTransactionRelation.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoanTransactionRelation { + amount?: number; + fromLoanTransaction?: number; + paymentType?: string; + relationType?: string; + toLoanCharge?: number; + toLoanTransaction?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansApprovalTemplateResponse.ts b/packages/fineract-client/src/models/getLoansApprovalTemplateResponse.ts new file mode 100644 index 0000000000..a35255258d --- /dev/null +++ b/packages/fineract-client/src/models/getLoansApprovalTemplateResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetLoansApprovalTemplateResponse + */ +export interface GetLoansApprovalTemplateResponse { + approvalAmount?: number; + approvalDate?: string; + netDisbursalAmount?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansChargePaymentMode.ts b/packages/fineract-client/src/models/getLoansChargePaymentMode.ts new file mode 100644 index 0000000000..6df64aa876 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansChargePaymentMode.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansChargePaymentMode { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansCurrency.ts b/packages/fineract-client/src/models/getLoansCurrency.ts new file mode 100644 index 0000000000..e33a676661 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdAmortizationType.ts b/packages/fineract-client/src/models/getLoansLoanIdAmortizationType.ts new file mode 100644 index 0000000000..4769dde9ff --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdAmortizationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdAmortizationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdChargeCalculationType.ts b/packages/fineract-client/src/models/getLoansLoanIdChargeCalculationType.ts new file mode 100644 index 0000000000..9281373d11 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdChargePaymentMode.ts b/packages/fineract-client/src/models/getLoansLoanIdChargePaymentMode.ts new file mode 100644 index 0000000000..f4bba8cf86 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdChargePaymentMode.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdChargePaymentMode { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdChargeTimeType.ts b/packages/fineract-client/src/models/getLoansLoanIdChargeTimeType.ts new file mode 100644 index 0000000000..5ad3618200 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdChargesChargeIdResponse.ts b/packages/fineract-client/src/models/getLoansLoanIdChargesChargeIdResponse.ts new file mode 100644 index 0000000000..bcbc2912e2 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdChargesChargeIdResponse.ts @@ -0,0 +1,40 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanChargeCalculationType } from './getLoanChargeCalculationType'; +import { GetLoanChargeCurrency } from './getLoanChargeCurrency'; +import { GetLoanChargeTimeType } from './getLoanChargeTimeType'; + + +/** + * GetLoansLoanIdChargesChargeIdResponse + */ +export interface GetLoansLoanIdChargesChargeIdResponse { + amount?: number; + amountOrPercentage?: number; + amountOutstanding?: number; + amountPaid?: number; + amountPercentageAppliedTo?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetLoanChargeCalculationType; + chargeId?: number; + chargeTimeType?: GetLoanChargeTimeType; + currency?: GetLoanChargeCurrency; + dueDate?: string; + externalId?: string; + id?: number; + name?: string; + penalty?: boolean; + percentage?: number; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdChargesTemplateResponse.ts b/packages/fineract-client/src/models/getLoansLoanIdChargesTemplateResponse.ts new file mode 100644 index 0000000000..a21b6c869c --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdChargesTemplateResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanChargeTemplateChargeOptions } from './getLoanChargeTemplateChargeOptions'; + + +/** + * GetLoansLoanIdChargesTemplateResponse + */ +export interface GetLoansLoanIdChargesTemplateResponse { + amountPaid?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeOptions?: Set; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdCodeValueData.ts b/packages/fineract-client/src/models/getLoansLoanIdCodeValueData.ts new file mode 100644 index 0000000000..366ab02457 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdCodeValueData.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * List of GetLoansLoanIdCodeValueData + */ +export interface GetLoansLoanIdCodeValueData { + active?: boolean; + description?: string; + id?: number; + mandatory?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdCollateralsResponse.ts b/packages/fineract-client/src/models/getLoansLoanIdCollateralsResponse.ts new file mode 100644 index 0000000000..a93793572e --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdCollateralsResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetCollateralTypeResponse } from './getCollateralTypeResponse'; +import { GetCollateralCurrencyResponse } from './getCollateralCurrencyResponse'; + + +/** + * GetLoansLoanIdCollateralsResponse + */ +export interface GetLoansLoanIdCollateralsResponse { + currency?: GetCollateralCurrencyResponse; + description?: string; + id?: number; + type?: GetCollateralTypeResponse; + value?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdCollateralsTemplateResponse.ts b/packages/fineract-client/src/models/getLoansLoanIdCollateralsTemplateResponse.ts new file mode 100644 index 0000000000..bfecaf70f9 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdCollateralsTemplateResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetCollateralsTemplateAllowedTypes } from './getCollateralsTemplateAllowedTypes'; + + +/** + * GetLoansLoanIdCollateralsTemplateResponse + */ +export interface GetLoansLoanIdCollateralsTemplateResponse { + allowedCollateralTypes?: Set; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdCollectionData.ts b/packages/fineract-client/src/models/getLoansLoanIdCollectionData.ts new file mode 100644 index 0000000000..1480e9b7bf --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdCollectionData.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * Delinquent data + */ +export interface GetLoansLoanIdCollectionData { + availableDisbursementAmount?: number; + delinquentAmount?: number; + delinquentDate?: string; + delinquentDays?: number; + lastPaymentAmount?: number; + lastPaymentDate?: string; + lastRepaymentAmount?: number; + lastRepaymentDate?: string; + nextPaymentDueDate?: string; + pastDueDays?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdCurrency.ts b/packages/fineract-client/src/models/getLoansLoanIdCurrency.ts new file mode 100644 index 0000000000..09064fe6c6 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdDisbursementDetails.ts b/packages/fineract-client/src/models/getLoansLoanIdDisbursementDetails.ts new file mode 100644 index 0000000000..7fe7fec325 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdDisbursementDetails.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdDisbursementDetails { + actualDisbursementDate?: string; + approvedPrincipal?: number; + chargeAmount?: number; + dateFormat?: string; + expectedDisbursementDate?: string; + id?: number; + loanChargeId?: string; + locale?: string; + netDisbursalAmount?: number; + note?: string; + principal?: number; + waivedChargeAmount?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdEnumOptionData.ts b/packages/fineract-client/src/models/getLoansLoanIdEnumOptionData.ts new file mode 100644 index 0000000000..12c91e1eb4 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdEnumOptionData.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * Enum option data + */ +export interface GetLoansLoanIdEnumOptionData { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdFeeFrequency.ts b/packages/fineract-client/src/models/getLoansLoanIdFeeFrequency.ts new file mode 100644 index 0000000000..5742f63dc6 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdFeeFrequency.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdFeeFrequency { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdInterestCalculationPeriodType.ts b/packages/fineract-client/src/models/getLoansLoanIdInterestCalculationPeriodType.ts new file mode 100644 index 0000000000..c8b2b53c55 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdInterestCalculationPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdInterestCalculationPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdInterestRateFrequencyType.ts b/packages/fineract-client/src/models/getLoansLoanIdInterestRateFrequencyType.ts new file mode 100644 index 0000000000..a885fd071a --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdInterestRateFrequencyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdInterestRateFrequencyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdInterestType.ts b/packages/fineract-client/src/models/getLoansLoanIdInterestType.ts new file mode 100644 index 0000000000..cfc1ab6a9e --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdInterestType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdInterestType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdLinkedAccount.ts b/packages/fineract-client/src/models/getLoansLoanIdLinkedAccount.ts new file mode 100644 index 0000000000..c1bab5dffb --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdLinkedAccount.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdLinkedAccount { + accountNo?: number; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdLoanChargeData.ts b/packages/fineract-client/src/models/getLoansLoanIdLoanChargeData.ts new file mode 100644 index 0000000000..a63c593e1f --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdLoanChargeData.ts @@ -0,0 +1,49 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansLoanIdLoanInstallmentChargeData } from './getLoansLoanIdLoanInstallmentChargeData'; +import { GetLoansLoanIdCurrency } from './getLoansLoanIdCurrency'; +import { GetLoansLoanIdEnumOptionData } from './getLoansLoanIdEnumOptionData'; + + +/** + * Set of charges + */ +export interface GetLoansLoanIdLoanChargeData { + amount?: number; + amountOrPercentage?: number; + amountOutstanding?: number; + amountPaid?: number; + amountPercentageAppliedTo?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetLoansLoanIdEnumOptionData; + chargeId?: number; + chargePayable?: boolean; + chargePaymentMode?: GetLoansLoanIdEnumOptionData; + chargeTimeType?: GetLoansLoanIdEnumOptionData; + currency?: GetLoansLoanIdCurrency; + dueDate?: string; + id?: number; + /** + * List of GetLoansLoanIdLoanInstallmentChargeData + */ + installmentChargeData?: Array; + loanId?: number; + maxCap?: number; + minCap?: number; + name?: string; + paid?: boolean; + penalty?: boolean; + percentage?: number; + waived?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdLoanChargePaidByData.ts b/packages/fineract-client/src/models/getLoansLoanIdLoanChargePaidByData.ts new file mode 100644 index 0000000000..7293d58545 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdLoanChargePaidByData.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * List of GetLoansLoanIdLoanChargePaidByData + */ +export interface GetLoansLoanIdLoanChargePaidByData { + amount?: number; + chargeId?: number; + id?: number; + installmentNumber?: number; + name?: string; + transactionId?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdLoanInstallmentChargeData.ts b/packages/fineract-client/src/models/getLoansLoanIdLoanInstallmentChargeData.ts new file mode 100644 index 0000000000..a48cad8ffa --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdLoanInstallmentChargeData.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * List of GetLoansLoanIdLoanInstallmentChargeData + */ +export interface GetLoansLoanIdLoanInstallmentChargeData { + amount?: number; + amountAccrued?: number; + amountOutstanding?: number; + amountUnrecognized?: number; + amountWaived?: number; + dueDate?: string; + installmentNumber?: number; + paid?: boolean; + waived?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdLoanRepaymentScheduleInstallmentData.ts b/packages/fineract-client/src/models/getLoansLoanIdLoanRepaymentScheduleInstallmentData.ts new file mode 100644 index 0000000000..4184be39ad --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdLoanRepaymentScheduleInstallmentData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * List of GetLoansLoanIdLoanRepaymentScheduleInstallmentData + */ +export interface GetLoansLoanIdLoanRepaymentScheduleInstallmentData { + amount?: number; + date?: string; + id?: number; + installmentId?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdLoanTransactionEnumData.ts b/packages/fineract-client/src/models/getLoansLoanIdLoanTransactionEnumData.ts new file mode 100644 index 0000000000..af6acd9972 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdLoanTransactionEnumData.ts @@ -0,0 +1,44 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * Transaction type + */ +export interface GetLoansLoanIdLoanTransactionEnumData { + accrual?: boolean; + approveTransfer?: boolean; + chargeAdjustment?: boolean; + chargePayment?: boolean; + chargeoff?: boolean; + code?: string; + contra?: boolean; + creditBalanceRefund?: boolean; + disbursement?: boolean; + goodwillCredit?: boolean; + id?: number; + initiateTransfer?: boolean; + merchantIssuedRefund?: boolean; + payoutRefund?: boolean; + recoveryRepayment?: boolean; + refund?: boolean; + refundForActiveLoans?: boolean; + rejectTransfer?: boolean; + repayment?: boolean; + repaymentAtDisbursement?: boolean; + value?: string; + waiveCharges?: boolean; + waiveInterest?: boolean; + withdrawTransfer?: boolean; + writeOff?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdLoanTransactionRelation.ts b/packages/fineract-client/src/models/getLoansLoanIdLoanTransactionRelation.ts new file mode 100644 index 0000000000..c90339cfb1 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdLoanTransactionRelation.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * List of GetLoansLoanIdLoanTransactionRelationData + */ +export interface GetLoansLoanIdLoanTransactionRelation { + amount?: number; + fromLoanTransaction?: number; + paymentType?: string; + relationType?: string; + toLoanCharge?: number; + toLoanTransaction?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdLoanType.ts b/packages/fineract-client/src/models/getLoansLoanIdLoanType.ts new file mode 100644 index 0000000000..36376d825a --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdLoanType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdLoanType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdOverdueCharges.ts b/packages/fineract-client/src/models/getLoansLoanIdOverdueCharges.ts new file mode 100644 index 0000000000..70feb1f79a --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdOverdueCharges.ts @@ -0,0 +1,34 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansLoanIdChargePaymentMode } from './getLoansLoanIdChargePaymentMode'; +import { GetLoanCurrency } from './getLoanCurrency'; +import { GetLoanChargeTemplateChargeAppliesTo } from './getLoanChargeTemplateChargeAppliesTo'; +import { GetLoansLoanIdChargeCalculationType } from './getLoansLoanIdChargeCalculationType'; +import { GetLoansLoanIdChargeTimeType } from './getLoansLoanIdChargeTimeType'; +import { GetLoansLoanIdFeeFrequency } from './getLoansLoanIdFeeFrequency'; + + +export interface GetLoansLoanIdOverdueCharges { + active?: boolean; + amount?: number; + chargeAppliesTo?: GetLoanChargeTemplateChargeAppliesTo; + chargeCalculationType?: GetLoansLoanIdChargeCalculationType; + chargePaymentMode?: GetLoansLoanIdChargePaymentMode; + chargeTimeType?: GetLoansLoanIdChargeTimeType; + currency?: GetLoanCurrency; + feeFrequency?: GetLoansLoanIdFeeFrequency; + feeInterval?: number; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdPaymentDetailData.ts b/packages/fineract-client/src/models/getLoansLoanIdPaymentDetailData.ts new file mode 100644 index 0000000000..e41fe7e7a5 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdPaymentDetailData.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansLoanIdPaymentType } from './getLoansLoanIdPaymentType'; + + +/** + * Payment detail + */ +export interface GetLoansLoanIdPaymentDetailData { + accountNumber?: string; + bankNumber?: string; + checkNumber?: string; + id?: number; + paymentType?: GetLoansLoanIdPaymentType; + receiptNumber?: string; + routingCode?: string; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdPaymentType.ts b/packages/fineract-client/src/models/getLoansLoanIdPaymentType.ts new file mode 100644 index 0000000000..789e50219d --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdPaymentType.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * List of GetLoansLoanIdPaymentType + */ +export interface GetLoansLoanIdPaymentType { + description?: string; + id?: number; + isCashPayment?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdRepaymentFrequencyType.ts b/packages/fineract-client/src/models/getLoansLoanIdRepaymentFrequencyType.ts new file mode 100644 index 0000000000..2003f8ef1e --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdRepaymentFrequencyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdRepaymentFrequencyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdRepaymentPeriod.ts b/packages/fineract-client/src/models/getLoansLoanIdRepaymentPeriod.ts new file mode 100644 index 0000000000..1d8f365836 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdRepaymentPeriod.ts @@ -0,0 +1,55 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdRepaymentPeriod { + complete?: boolean; + daysInPeriod?: number; + dueDate?: string; + feeChargesDue?: number; + feeChargesOutstanding?: number; + feeChargesPaid?: number; + feeChargesWaived?: number; + feeChargesWrittenOff?: number; + fromDate?: string; + interestDue?: number; + interestOriginalDue?: number; + interestOutstanding?: number; + interestPaid?: number; + interestWaived?: number; + interestWrittenOff?: number; + obligationsMetOnDate?: string; + penaltyChargesDue?: number; + penaltyChargesOutstanding?: number; + penaltyChargesPaid?: number; + penaltyChargesWaived?: number; + penaltyChargesWrittenOff?: number; + period?: number; + principalDue?: number; + principalLoanBalanceOutstanding?: number; + principalOriginalDue?: number; + principalOutstanding?: number; + principalPaid?: number; + principalWrittenOff?: number; + totalActualCostOfLoanForPeriod?: number; + totalCredits?: number; + totalDueForPeriod?: number; + totalInstallmentAmountForPeriod?: number; + totalOriginalDueForPeriod?: number; + totalOutstandingForPeriod?: number; + totalPaidForPeriod?: number; + totalPaidInAdvanceForPeriod?: number; + totalPaidLateForPeriod?: number; + totalWaivedForPeriod?: number; + totalWrittenOffForPeriod?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdRepaymentSchedule.ts b/packages/fineract-client/src/models/getLoansLoanIdRepaymentSchedule.ts new file mode 100644 index 0000000000..1c1cf854c1 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdRepaymentSchedule.ts @@ -0,0 +1,33 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansLoanIdRepaymentPeriod } from './getLoansLoanIdRepaymentPeriod'; +import { GetLoansLoanIdCurrency } from './getLoansLoanIdCurrency'; + + +export interface GetLoansLoanIdRepaymentSchedule { + currency?: GetLoansLoanIdCurrency; + loanTermInDays?: number; + periods?: Array; + totalFeeChargesCharged?: number; + totalInterestCharged?: number; + totalOutstanding?: number; + totalPaidInAdvance?: number; + totalPaidLate?: number; + totalPenaltyChargesCharged?: number; + totalPrincipalDisbursed?: number; + totalPrincipalExpected?: number; + totalPrincipalPaid?: number; + totalRepaymentExpected?: number; + totalWaived?: number; + totalWrittenOff?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdResponse.ts b/packages/fineract-client/src/models/getLoansLoanIdResponse.ts new file mode 100644 index 0000000000..f225b3c822 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdResponse.ts @@ -0,0 +1,95 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansLoanIdStatus } from './getLoansLoanIdStatus'; +import { GetLoansLoanIdRepaymentFrequencyType } from './getLoansLoanIdRepaymentFrequencyType'; +import { GetLoansLoanIdLoanType } from './getLoansLoanIdLoanType'; +import { GetLoansLoanIdTimeline } from './getLoansLoanIdTimeline'; +import { GetLoansLoanIdAmortizationType } from './getLoansLoanIdAmortizationType'; +import { GetLoansLoanIdTermPeriodFrequencyType } from './getLoansLoanIdTermPeriodFrequencyType'; +import { GetLoansLoanIdCurrency } from './getLoansLoanIdCurrency'; +import { GetLoansLoanIdCollectionData } from './getLoansLoanIdCollectionData'; +import { GetLoansLoanIdTransactions } from './getLoansLoanIdTransactions'; +import { GetLoansLoanIdLoanChargeData } from './getLoansLoanIdLoanChargeData'; +import { GetLoansLoanIdDisbursementDetails } from './getLoansLoanIdDisbursementDetails'; +import { GetLoansLoanIdInterestRateFrequencyType } from './getLoansLoanIdInterestRateFrequencyType'; +import { GetLoansLoanIdInterestType } from './getLoansLoanIdInterestType'; +import { GetLoansLoanIdRepaymentSchedule } from './getLoansLoanIdRepaymentSchedule'; +import { GetLoansLoanIdSummary } from './getLoansLoanIdSummary'; +import { GetLoansLoanIdInterestCalculationPeriodType } from './getLoansLoanIdInterestCalculationPeriodType'; +import { GetDelinquencyRangesResponse } from './getDelinquencyRangesResponse'; + + +/** + * GetLoansLoanIdResponse + */ +export interface GetLoansLoanIdResponse { + accountNo?: string; + amortizationType?: GetLoansLoanIdAmortizationType; + annualInterestRate?: number; + approvedPrincipal?: number; + chargedOff?: boolean; + /** + * Set of charges + */ + charges?: Array; + clientExternalId?: string; + clientId?: number; + clientName?: string; + clientOfficeId?: number; + currency?: GetLoansLoanIdCurrency; + delinquencyRange?: GetDelinquencyRangesResponse; + delinquent?: GetLoansLoanIdCollectionData; + disallowExpectedDisbursements?: boolean; + /** + * Set of GetLoansLoanIdDisbursementDetails + */ + disbursementDetails?: Set; + externalId?: string; + fixedPrincipalPercentagePerInstallment?: number; + fraud?: boolean; + id?: number; + inArrearsTolerance?: number; + interestCalculationPeriodType?: GetLoansLoanIdInterestCalculationPeriodType; + interestRateFrequencyType?: GetLoansLoanIdInterestRateFrequencyType; + interestRatePerPeriod?: number; + interestType?: GetLoansLoanIdInterestType; + isFloatingInterestRate?: boolean; + lastClosedBusinessDate?: string; + loanOfficerId?: number; + loanOfficerName?: string; + loanProductDescription?: string; + loanProductId?: number; + loanProductName?: string; + loanPurposeId?: number; + loanPurposeName?: string; + loanType?: GetLoansLoanIdLoanType; + netDisbursalAmount?: number; + numberOfRepayments?: number; + overpaidOnDate?: string; + principal?: number; + proposedPrincipal?: number; + repaymentEvery?: number; + repaymentFrequencyType?: GetLoansLoanIdRepaymentFrequencyType; + repaymentSchedule?: GetLoansLoanIdRepaymentSchedule; + status?: GetLoansLoanIdStatus; + summary?: GetLoansLoanIdSummary; + termFrequency?: number; + termPeriodFrequencyType?: GetLoansLoanIdTermPeriodFrequencyType; + timeline?: GetLoansLoanIdTimeline; + totalOverpaid?: number; + transactionProcessingStrategyCode?: string; + /** + * Set of GetLoansLoanIdTransactions + */ + transactions?: Array; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdStatus.ts b/packages/fineract-client/src/models/getLoansLoanIdStatus.ts new file mode 100644 index 0000000000..f3cabec238 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdStatus.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdStatus { + active?: boolean; + closed?: boolean; + closedObligationsMet?: boolean; + closedRescheduled?: boolean; + closedWrittenOff?: boolean; + code?: string; + description?: string; + id?: number; + overpaid?: boolean; + pendingApproval?: boolean; + waitingForDisbursal?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdSummary.ts b/packages/fineract-client/src/models/getLoansLoanIdSummary.ts new file mode 100644 index 0000000000..f70f50cf2d --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdSummary.ts @@ -0,0 +1,82 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansLoanIdLinkedAccount } from './getLoansLoanIdLinkedAccount'; +import { GetLoansLoanIdDisbursementDetails } from './getLoansLoanIdDisbursementDetails'; +import { GetLoansLoanIdOverdueCharges } from './getLoansLoanIdOverdueCharges'; +import { GetLoansLoanIdCurrency } from './getLoansLoanIdCurrency'; + + +export interface GetLoansLoanIdSummary { + canDisburse?: boolean; + chargeOffReason?: string; + chargeOffReasonId?: number; + currency?: GetLoansLoanIdCurrency; + disbursementDetails?: Set; + emiAmountVariations?: Set; + feeChargesCharged?: number; + feeChargesDueAtDisbursementCharged?: number; + feeChargesOutstanding?: number; + feeChargesOverdue?: number; + feeChargesPaid?: number; + feeChargesWaived?: number; + feeChargesWrittenOff?: number; + fixedEmiAmount?: number; + inArrears?: boolean; + interestCharged?: number; + interestOutstanding?: number; + interestOverdue?: number; + interestPaid?: number; + interestWaived?: number; + interestWrittenOff?: number; + isNPA?: boolean; + linkedAccount?: GetLoansLoanIdLinkedAccount; + maxOutstandingLoanBalance?: number; + overdueCharges?: Set; + overdueSinceDate?: string; + penaltyChargesCharged?: number; + penaltyChargesOutstanding?: number; + penaltyChargesOverdue?: number; + penaltyChargesPaid?: number; + penaltyChargesWaived?: number; + penaltyChargesWrittenOff?: number; + principalAdjustments?: number; + principalDisbursed?: number; + principalOutstanding?: number; + principalOverdue?: number; + principalPaid?: number; + principalWrittenOff?: number; + totalChargeAdjustment?: number; + totalChargeAdjustmentReversed?: number; + totalChargeback?: number; + totalCostOfLoan?: number; + totalCreditBalanceRefund?: number; + totalCreditBalanceRefundReversed?: number; + totalExpectedCostOfLoan?: number; + totalExpectedRepayment?: number; + totalGoodwillCredit?: number; + totalGoodwillCreditReversed?: number; + totalMerchantRefund?: number; + totalMerchantRefundReversed?: number; + totalOutstanding?: number; + totalOverdue?: number; + totalPayoutRefund?: number; + totalPayoutRefundReversed?: number; + totalRecovered?: number; + totalRepayment?: number; + totalRepaymentTransaction?: number; + totalRepaymentTransactionReversed?: number; + totalWaived?: number; + totalWrittenOff?: number; + writeoffReason?: string; + writeoffReasonId?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdTermPeriodFrequencyType.ts b/packages/fineract-client/src/models/getLoansLoanIdTermPeriodFrequencyType.ts new file mode 100644 index 0000000000..7ee618788c --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdTermPeriodFrequencyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdTermPeriodFrequencyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdTimeline.ts b/packages/fineract-client/src/models/getLoansLoanIdTimeline.ts new file mode 100644 index 0000000000..76b2ab6358 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdTimeline.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansLoanIdTimeline { + actualDisbursementDate?: string; + actualMaturityDate?: string; + approvedByFirstname?: string; + approvedByLastname?: string; + approvedByUsername?: string; + approvedOnDate?: string; + chargedOffByFirstname?: string; + chargedOffByLastname?: string; + chargedOffByUsername?: string; + chargedOffOnDate?: string; + closedOnDate?: string; + disbursedByFirstname?: string; + disbursedByLastname?: string; + disbursedByUsername?: string; + expectedDisbursementDate?: string; + expectedMaturityDate?: string; + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdTransactions.ts b/packages/fineract-client/src/models/getLoansLoanIdTransactions.ts new file mode 100644 index 0000000000..95b7559525 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdTransactions.ts @@ -0,0 +1,83 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansLoanIdPaymentType } from './getLoansLoanIdPaymentType'; +import { GetLoansLoanIdLoanRepaymentScheduleInstallmentData } from './getLoansLoanIdLoanRepaymentScheduleInstallmentData'; +import { GetLoansLoanIdLoanChargePaidByData } from './getLoansLoanIdLoanChargePaidByData'; +import { GetLoansLoanIdLoanTransactionEnumData } from './getLoansLoanIdLoanTransactionEnumData'; +import { GetLoansLoanIdCurrency } from './getLoansLoanIdCurrency'; +import { GetLoansLoanIdLoanTransactionRelation } from './getLoansLoanIdLoanTransactionRelation'; +import { GetLoansLoanIdCodeValueData } from './getLoansLoanIdCodeValueData'; +import { GetLoansLoanIdPaymentDetailData } from './getLoansLoanIdPaymentDetailData'; + + +/** + * Set of GetLoansLoanIdTransactions + */ +export interface GetLoansLoanIdTransactions { + accountId?: number; + accountNumber?: string; + amount?: number; + bankNumber?: number; + checkNumber?: number; + currency?: GetLoansLoanIdCurrency; + date?: string; + dateFormat?: string; + externalId?: string; + feeChargesPortion?: number; + fixedEmiAmount?: number; + id?: number; + interestPortion?: number; + /** + * List of GetLoansLoanIdLoanChargePaidByData + */ + loanChargePaidByList?: Array; + /** + * List of GetLoansLoanIdLoanRepaymentScheduleInstallmentData + */ + loanRepaymentScheduleInstallments?: Array; + locale?: string; + manuallyReversed?: boolean; + netDisbursalAmount?: number; + numberOfRepayments?: number; + officeId?: number; + officeName?: string; + outstandingLoanBalance?: number; + overpaymentPortion?: number; + paymentDetailData?: GetLoansLoanIdPaymentDetailData; + paymentTypeId?: number; + /** + * List of GetLoansLoanIdPaymentType + */ + paymentTypeOptions?: Array; + penaltyChargesPortion?: number; + possibleNextRepaymentDate?: string; + principalPortion?: number; + receiptNumber?: number; + reversalExternalId?: string; + reversedOnDate?: string; + routingCode?: number; + submittedOnDate?: string; + transactionAmount?: number; + transactionDate?: string; + /** + * List of GetLoansLoanIdLoanTransactionRelationData + */ + transactionRelations?: Set; + transactionType?: string; + type?: GetLoansLoanIdLoanTransactionEnumData; + unrecognizedIncomePortion?: number; + /** + * List of GetLoansLoanIdCodeValueData + */ + writeOffReasonOptions?: Array; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdTransactionsTemplateResponse.ts b/packages/fineract-client/src/models/getLoansLoanIdTransactionsTemplateResponse.ts new file mode 100644 index 0000000000..0da131e94e --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdTransactionsTemplateResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansTransactionType } from './getLoansTransactionType'; +import { GetLoansTotal } from './getLoansTotal'; + + +/** + * GetLoansLoanIdTransactionsTemplateResponse + */ +export interface GetLoansLoanIdTransactionsTemplateResponse { + date?: string; + total?: GetLoansTotal; + transactionType?: GetLoansTransactionType; +} + diff --git a/packages/fineract-client/src/models/getLoansLoanIdTransactionsTransactionIdResponse.ts b/packages/fineract-client/src/models/getLoansLoanIdTransactionsTransactionIdResponse.ts new file mode 100644 index 0000000000..fbf18dcf8b --- /dev/null +++ b/packages/fineract-client/src/models/getLoansLoanIdTransactionsTransactionIdResponse.ts @@ -0,0 +1,46 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanTransactionRelation } from './getLoanTransactionRelation'; +import { GetLoansCurrency } from './getLoansCurrency'; +import { GetLoansLoanIdLoanChargePaidByData } from './getLoansLoanIdLoanChargePaidByData'; +import { PaymentDetailData } from './paymentDetailData'; +import { GetLoansType } from './getLoansType'; + + +/** + * GetLoansLoanIdTransactionsTransactionIdResponse + */ +export interface GetLoansLoanIdTransactionsTransactionIdResponse { + amount?: number; + currency?: GetLoansCurrency; + date?: string; + externalId?: string; + feeChargesPortion?: number; + id?: number; + interestPortion?: number; + loanChargePaidByList?: Set; + manuallyReversed?: boolean; + netDisbursalAmount?: number; + outstandingLoanBalance?: number; + overpaymentPortion?: number; + paymentDetailData?: PaymentDetailData; + penaltyChargesPortion?: number; + possibleNextRepaymentDate?: string; + principalPortion?: number; + reversalExternalId?: string; + reversedOnDate?: string; + submittedOnDate?: string; + transactionRelations?: Set; + type?: GetLoansType; + unrecognizedIncomePortion?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansProductsDaysInMonthTemplateType.ts b/packages/fineract-client/src/models/getLoansProductsDaysInMonthTemplateType.ts new file mode 100644 index 0000000000..efc41f08a0 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansProductsDaysInMonthTemplateType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansProductsDaysInMonthTemplateType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansProductsDaysInMonthType.ts b/packages/fineract-client/src/models/getLoansProductsDaysInMonthType.ts new file mode 100644 index 0000000000..772256353e --- /dev/null +++ b/packages/fineract-client/src/models/getLoansProductsDaysInMonthType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansProductsDaysInMonthType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansProductsDaysInYearType.ts b/packages/fineract-client/src/models/getLoansProductsDaysInYearType.ts new file mode 100644 index 0000000000..3058b3ac35 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansProductsDaysInYearType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansProductsDaysInYearType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansProductsInterestCalculationPeriodType.ts b/packages/fineract-client/src/models/getLoansProductsInterestCalculationPeriodType.ts new file mode 100644 index 0000000000..28779a6e88 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansProductsInterestCalculationPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansProductsInterestCalculationPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansResponse.ts b/packages/fineract-client/src/models/getLoansResponse.ts new file mode 100644 index 0000000000..4b567a22e7 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansLoanIdResponse } from './getLoansLoanIdResponse'; + + +/** + * GetLoansResponse + */ +export interface GetLoansResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansTemplateProductOptions.ts b/packages/fineract-client/src/models/getLoansTemplateProductOptions.ts new file mode 100644 index 0000000000..511f257876 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansTemplateProductOptions.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansTemplateProductOptions { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getLoansTemplateResponse.ts b/packages/fineract-client/src/models/getLoansTemplateResponse.ts new file mode 100644 index 0000000000..df36902687 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansTemplateResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansTemplateTimeline } from './getLoansTemplateTimeline'; +import { GetLoansTemplateProductOptions } from './getLoansTemplateProductOptions'; + + +/** + * GetLoansTemplateResponse + */ +export interface GetLoansTemplateResponse { + clientId?: number; + clientName?: string; + clientOfficeId?: number; + productOptions?: Set; + timeline?: GetLoansTemplateTimeline; +} + diff --git a/packages/fineract-client/src/models/getLoansTemplateTimeline.ts b/packages/fineract-client/src/models/getLoansTemplateTimeline.ts new file mode 100644 index 0000000000..ab35902719 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansTemplateTimeline.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansTemplateTimeline { + expectedDisbursementDate?: string; +} + diff --git a/packages/fineract-client/src/models/getLoansTotal.ts b/packages/fineract-client/src/models/getLoansTotal.ts new file mode 100644 index 0000000000..fa435394f9 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansTotal.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansTotal { + amount?: number; + currencyCode?: string; + defaultName?: string; + digitsAfterDecimal?: number; + displaySymbol?: string; + displaySymbolValue?: string; + greaterThanZero?: boolean; + inMultiplesOf?: number; + nameCode?: string; + zero?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLoansTransactionType.ts b/packages/fineract-client/src/models/getLoansTransactionType.ts new file mode 100644 index 0000000000..f84e5d4443 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansTransactionType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansTransactionType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getLoansType.ts b/packages/fineract-client/src/models/getLoansType.ts new file mode 100644 index 0000000000..3db864b576 --- /dev/null +++ b/packages/fineract-client/src/models/getLoansType.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLoansType { + code?: string; + contra?: boolean; + description?: string; + disbursement?: boolean; + externalId?: string; + externalLoanId?: string; + id?: number; + loanId?: number; + recoveryRepayment?: boolean; + repayment?: boolean; + repaymentAtDisbursement?: boolean; + waiveCharges?: boolean; + waiveInterest?: boolean; + writeOff?: boolean; +} + diff --git a/packages/fineract-client/src/models/getLockPeriodTypeEnum.ts b/packages/fineract-client/src/models/getLockPeriodTypeEnum.ts new file mode 100644 index 0000000000..e8b3549e3b --- /dev/null +++ b/packages/fineract-client/src/models/getLockPeriodTypeEnum.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetLockPeriodTypeEnum { + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getMakerCheckerResponse.ts b/packages/fineract-client/src/models/getMakerCheckerResponse.ts new file mode 100644 index 0000000000..c982c8fc9a --- /dev/null +++ b/packages/fineract-client/src/models/getMakerCheckerResponse.ts @@ -0,0 +1,39 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetMakerCheckerResponse + */ +export interface GetMakerCheckerResponse { + actionName?: string; + checkedOnDate?: string; + checker?: string; + clientId?: number; + clientName?: string; + commandAsJson?: string; + entityName?: string; + groupLevelName?: string; + groupName?: string; + id?: number; + loanAccountNo?: string; + loanId?: number; + madeOnDate?: string; + maker?: string; + officeName?: string; + processingResult?: string; + resourceId?: number; + savingsAccountNo?: string; + subresourceId?: number; + url?: string; +} + diff --git a/packages/fineract-client/src/models/getMakerCheckersSearchTemplateResponse.ts b/packages/fineract-client/src/models/getMakerCheckersSearchTemplateResponse.ts new file mode 100644 index 0000000000..09bfa8e20c --- /dev/null +++ b/packages/fineract-client/src/models/getMakerCheckersSearchTemplateResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { AppUserData } from './appUserData'; +import { ProcessingResultLookup } from './processingResultLookup'; + + +/** + * GetMakerCheckersSearchTemplateResponse + */ +export interface GetMakerCheckersSearchTemplateResponse { + actionNames?: Array; + appUsers?: Array; + entityNames?: Array; + processingResults?: Array; +} + diff --git a/packages/fineract-client/src/models/getNotesNoteType.ts b/packages/fineract-client/src/models/getNotesNoteType.ts new file mode 100644 index 0000000000..d894ab835a --- /dev/null +++ b/packages/fineract-client/src/models/getNotesNoteType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetNotesNoteType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getNotification.ts b/packages/fineract-client/src/models/getNotification.ts new file mode 100644 index 0000000000..1792e87495 --- /dev/null +++ b/packages/fineract-client/src/models/getNotification.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetNotification { + action?: string; + actorId?: number; + content?: string; + createdAt?: string; + id?: number; + isRead?: boolean; + isSystemGenerated?: boolean; + objectId?: number; + objectType?: string; + officeId?: number; + tenantIdentifier?: string; + userIds?: Array; +} + diff --git a/packages/fineract-client/src/models/getNotificationsResponse.ts b/packages/fineract-client/src/models/getNotificationsResponse.ts new file mode 100644 index 0000000000..1bf2b14972 --- /dev/null +++ b/packages/fineract-client/src/models/getNotificationsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetNotification } from './getNotification'; + + +/** + * GetNotificationsResponse + */ +export interface GetNotificationsResponse { + pageItems?: Array; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getObligeeData.ts b/packages/fineract-client/src/models/getObligeeData.ts new file mode 100644 index 0000000000..3a30db2e7a --- /dev/null +++ b/packages/fineract-client/src/models/getObligeeData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetObligeeData { + accountNumber?: string; + amountReleased?: number; + amountTransferred?: number; + displayName?: string; + firstName?: string; + guaranteeAmount?: number; + lastName?: string; + loanAmount?: number; +} + diff --git a/packages/fineract-client/src/models/getOfficesResponse.ts b/packages/fineract-client/src/models/getOfficesResponse.ts new file mode 100644 index 0000000000..e6dc9efb79 --- /dev/null +++ b/packages/fineract-client/src/models/getOfficesResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetOfficesResponse + */ +export interface GetOfficesResponse { + externalId?: string; + hierarchy?: string; + id?: number; + name?: string; + nameDecorated?: string; + openingDate?: string; +} + diff --git a/packages/fineract-client/src/models/getOfficesTemplateResponse.ts b/packages/fineract-client/src/models/getOfficesTemplateResponse.ts new file mode 100644 index 0000000000..d0ad841e30 --- /dev/null +++ b/packages/fineract-client/src/models/getOfficesTemplateResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetOfficesResponse } from './getOfficesResponse'; + + +/** + * GetOfficesTemplateResponse + */ +export interface GetOfficesTemplateResponse { + allowedParents?: Array; + openingDate?: string; +} + diff --git a/packages/fineract-client/src/models/getOldestCOBProcessedLoanResponse.ts b/packages/fineract-client/src/models/getOldestCOBProcessedLoanResponse.ts new file mode 100644 index 0000000000..8ac9e80840 --- /dev/null +++ b/packages/fineract-client/src/models/getOldestCOBProcessedLoanResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetOldestCOBProcessedLoanResponse + */ +export interface GetOldestCOBProcessedLoanResponse { + cobBusinessDate?: string; + cobProcessedDate?: string; + loanIds?: Array; +} + diff --git a/packages/fineract-client/src/models/getPageItemsStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getPageItemsStandingInstructionSwagger.ts new file mode 100644 index 0000000000..f8d73c5190 --- /dev/null +++ b/packages/fineract-client/src/models/getPageItemsStandingInstructionSwagger.ts @@ -0,0 +1,51 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetToClientStandingInstructionSwagger } from './getToClientStandingInstructionSwagger'; +import { GetStatusStandingInstructionSwagger } from './getStatusStandingInstructionSwagger'; +import { GetToAccountStandingInstructionSwagger } from './getToAccountStandingInstructionSwagger'; +import { GetFromAccountTypeStandingInstructionSwagger } from './getFromAccountTypeStandingInstructionSwagger'; +import { GetRecurrenceFrequencyStandingInstructionSwagger } from './getRecurrenceFrequencyStandingInstructionSwagger'; +import { GetRecurrenceTypeStandingInstructionSwagger } from './getRecurrenceTypeStandingInstructionSwagger'; +import { GetFromOfficeStandingInstructionSwagger } from './getFromOfficeStandingInstructionSwagger'; +import { GetToAccountTypeStandingInstructionSwagger } from './getToAccountTypeStandingInstructionSwagger'; +import { GetFromAccountStandingInstructionSwagger } from './getFromAccountStandingInstructionSwagger'; +import { GetPriorityStandingInstructionSwagger } from './getPriorityStandingInstructionSwagger'; +import { GetToOfficeStandingInstructionSwagger } from './getToOfficeStandingInstructionSwagger'; +import { GetFromClientStandingInstructionSwagger } from './getFromClientStandingInstructionSwagger'; +import { GetTransferTypeStandingInstructionSwagger } from './getTransferTypeStandingInstructionSwagger'; +import { GetInstructionTypeStandingInstructionSwagger } from './getInstructionTypeStandingInstructionSwagger'; + + +export interface GetPageItemsStandingInstructionSwagger { + accountDetailId?: number; + amount?: number; + fromAccount?: GetFromAccountStandingInstructionSwagger; + fromAccountType?: GetFromAccountTypeStandingInstructionSwagger; + fromClient?: GetFromClientStandingInstructionSwagger; + fromOffice?: GetFromOfficeStandingInstructionSwagger; + id?: number; + instructionType?: GetInstructionTypeStandingInstructionSwagger; + name?: string; + priority?: GetPriorityStandingInstructionSwagger; + recurrenceFrequency?: GetRecurrenceFrequencyStandingInstructionSwagger; + recurrenceInterval?: number; + recurrenceOnMonthDay?: string; + recurrenceType?: GetRecurrenceTypeStandingInstructionSwagger; + status?: GetStatusStandingInstructionSwagger; + toAccount?: GetToAccountStandingInstructionSwagger; + toAccountType?: GetToAccountTypeStandingInstructionSwagger; + toClient?: GetToClientStandingInstructionSwagger; + toOffice?: GetToOfficeStandingInstructionSwagger; + transferType?: GetTransferTypeStandingInstructionSwagger; + validFrom?: string; +} + diff --git a/packages/fineract-client/src/models/getPasswordPreferencesTemplateResponse.ts b/packages/fineract-client/src/models/getPasswordPreferencesTemplateResponse.ts new file mode 100644 index 0000000000..5017472063 --- /dev/null +++ b/packages/fineract-client/src/models/getPasswordPreferencesTemplateResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetPasswordPreferencesTemplateResponse + */ +export interface GetPasswordPreferencesTemplateResponse { + active?: boolean; + description?: string; + id?: number; + key?: string; +} + diff --git a/packages/fineract-client/src/models/getPaymentTypeData.ts b/packages/fineract-client/src/models/getPaymentTypeData.ts new file mode 100644 index 0000000000..df8af0d36a --- /dev/null +++ b/packages/fineract-client/src/models/getPaymentTypeData.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetPaymentTypeData { + id?: number; + isSystemDefined?: boolean; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getPaymentTypesPaymentTypeIdResponse.ts b/packages/fineract-client/src/models/getPaymentTypesPaymentTypeIdResponse.ts new file mode 100644 index 0000000000..445f6f1098 --- /dev/null +++ b/packages/fineract-client/src/models/getPaymentTypesPaymentTypeIdResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetPaymentTypesPaymentTypeIdResponse + */ +export interface GetPaymentTypesPaymentTypeIdResponse { + codeName?: string; + description?: string; + id?: number; + isCashPayment?: boolean; + isSystemDefined?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/getPaymentTypesResponse.ts b/packages/fineract-client/src/models/getPaymentTypesResponse.ts new file mode 100644 index 0000000000..b3195a69dd --- /dev/null +++ b/packages/fineract-client/src/models/getPaymentTypesResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetPaymentTypesResponse + */ +export interface GetPaymentTypesResponse { + codeName?: string; + description?: string; + id?: number; + isCashPayment?: boolean; + isSystemDefined?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/getPermissionsResponse.ts b/packages/fineract-client/src/models/getPermissionsResponse.ts new file mode 100644 index 0000000000..a41c8d95d9 --- /dev/null +++ b/packages/fineract-client/src/models/getPermissionsResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetPermissionsResponse + */ +export interface GetPermissionsResponse { + actionName?: string; + code?: string; + entityName?: string; + grouping?: string; + selected?: boolean; +} + diff --git a/packages/fineract-client/src/models/getPocketData.ts b/packages/fineract-client/src/models/getPocketData.ts new file mode 100644 index 0000000000..e87de81d6e --- /dev/null +++ b/packages/fineract-client/src/models/getPocketData.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetPocketData { + row?: string; +} + diff --git a/packages/fineract-client/src/models/getPocketLoanAccounts.ts b/packages/fineract-client/src/models/getPocketLoanAccounts.ts new file mode 100644 index 0000000000..cfea298601 --- /dev/null +++ b/packages/fineract-client/src/models/getPocketLoanAccounts.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetPocketLoanAccounts { + accountId?: number; + accountNumber?: number; + accountType?: number; + id?: number; + pocketId?: number; +} + diff --git a/packages/fineract-client/src/models/getPocketSavingAccounts.ts b/packages/fineract-client/src/models/getPocketSavingAccounts.ts new file mode 100644 index 0000000000..df99614608 --- /dev/null +++ b/packages/fineract-client/src/models/getPocketSavingAccounts.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetPocketSavingAccounts { + accountId?: number; + accountNumber?: number; + accountType?: number; + id?: number; + pocketId?: number; +} + diff --git a/packages/fineract-client/src/models/getPostDatedChecks.ts b/packages/fineract-client/src/models/getPostDatedChecks.ts new file mode 100644 index 0000000000..9cfada2257 --- /dev/null +++ b/packages/fineract-client/src/models/getPostDatedChecks.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetPostDatedChecks + */ +export interface GetPostDatedChecks { + accountNo?: number; + amount?: number; + date?: string; + id?: number; + installmentId?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getPriorityOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getPriorityOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..b3c3659a17 --- /dev/null +++ b/packages/fineract-client/src/models/getPriorityOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetPriorityOptionsResponseStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getPriorityStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getPriorityStandingInstructionSwagger.ts new file mode 100644 index 0000000000..54e49874e8 --- /dev/null +++ b/packages/fineract-client/src/models/getPriorityStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetPriorityStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getProductsAccountingMappingOptions.ts b/packages/fineract-client/src/models/getProductsAccountingMappingOptions.ts new file mode 100644 index 0000000000..6d452d83a0 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsAccountingMappingOptions.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetProductsLiabilityAccountOptions } from './getProductsLiabilityAccountOptions'; +import { GetProductsIncomeAccountOptions } from './getProductsIncomeAccountOptions'; +import { GetProductsEquityAccountOptions } from './getProductsEquityAccountOptions'; +import { GetProductsAssetAccountOptions } from './getProductsAssetAccountOptions'; + + +export interface GetProductsAccountingMappingOptions { + assetAccountOptions?: Set; + equityAccountOptions?: Set; + incomeAccountOptions?: Set; + liabilityAccountOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getProductsAccountingMappings.ts b/packages/fineract-client/src/models/getProductsAccountingMappings.ts new file mode 100644 index 0000000000..80ce368d7a --- /dev/null +++ b/packages/fineract-client/src/models/getProductsAccountingMappings.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetIncomeFromFeeAccountId } from './getIncomeFromFeeAccountId'; +import { GetShareEquityId } from './getShareEquityId'; +import { GetShareReferenceId } from './getShareReferenceId'; +import { GetShareSuspenseId } from './getShareSuspenseId'; + + +export interface GetProductsAccountingMappings { + incomeFromFeeAccountId?: GetIncomeFromFeeAccountId; + shareEquityId?: GetShareEquityId; + shareReferenceId?: GetShareReferenceId; + shareSuspenseId?: GetShareSuspenseId; +} + diff --git a/packages/fineract-client/src/models/getProductsAccountingRule.ts b/packages/fineract-client/src/models/getProductsAccountingRule.ts new file mode 100644 index 0000000000..80fb30a58a --- /dev/null +++ b/packages/fineract-client/src/models/getProductsAccountingRule.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetProductsAccountingRule { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getProductsAssetAccountOptions.ts b/packages/fineract-client/src/models/getProductsAssetAccountOptions.ts new file mode 100644 index 0000000000..b2bd958e25 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsAssetAccountOptions.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetAssetType } from './getAssetType'; +import { GetProductsLiabilityUsage } from './getProductsLiabilityUsage'; +import { GetProductsTagId } from './getProductsTagId'; + + +export interface GetProductsAssetAccountOptions { + description?: string; + disabled?: boolean; + glCode?: string; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + tagId?: GetProductsTagId; + type?: GetAssetType; + usage?: GetProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getProductsCharges.ts b/packages/fineract-client/src/models/getProductsCharges.ts new file mode 100644 index 0000000000..9d67da03b6 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsCharges.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetChargeAppliesTo } from './getChargeAppliesTo'; +import { GetChargeTimeType } from './getChargeTimeType'; +import { GetChargesCurrency } from './getChargesCurrency'; +import { GetChargePaymentMode } from './getChargePaymentMode'; +import { GetChargeCalculationType } from './getChargeCalculationType'; + + +export interface GetProductsCharges { + active?: boolean; + amount?: number; + chargeAppliesTo?: GetChargeAppliesTo; + chargeCalculationType?: GetChargeCalculationType; + chargePaymentMode?: GetChargePaymentMode; + chargeTimeType?: GetChargeTimeType; + currency?: GetChargesCurrency; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getProductsCurrency.ts b/packages/fineract-client/src/models/getProductsCurrency.ts new file mode 100644 index 0000000000..6f5d71e132 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetProductsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getProductsEquityAccountOptions.ts b/packages/fineract-client/src/models/getProductsEquityAccountOptions.ts new file mode 100644 index 0000000000..8c8fb3bd11 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsEquityAccountOptions.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetEquityType } from './getEquityType'; +import { GetProductsLiabilityUsage } from './getProductsLiabilityUsage'; +import { GetProductsTagId } from './getProductsTagId'; + + +export interface GetProductsEquityAccountOptions { + disabled?: boolean; + glCode?: string; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + tagId?: GetProductsTagId; + type?: GetEquityType; + usage?: GetProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getProductsIncomeAccountOptions.ts b/packages/fineract-client/src/models/getProductsIncomeAccountOptions.ts new file mode 100644 index 0000000000..93ac2b1d2c --- /dev/null +++ b/packages/fineract-client/src/models/getProductsIncomeAccountOptions.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetProductsLiabilityUsage } from './getProductsLiabilityUsage'; +import { GetIncomeType } from './getIncomeType'; +import { GetProductsTagId } from './getProductsTagId'; + + +export interface GetProductsIncomeAccountOptions { + description?: string; + disabled?: boolean; + glCode?: string; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + tagId?: GetProductsTagId; + type?: GetIncomeType; + usage?: GetProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getProductsLiabilityAccountOptions.ts b/packages/fineract-client/src/models/getProductsLiabilityAccountOptions.ts new file mode 100644 index 0000000000..6cc4ccf470 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsLiabilityAccountOptions.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetProductsLiabilityType } from './getProductsLiabilityType'; +import { GetProductsLiabilityUsage } from './getProductsLiabilityUsage'; +import { GetProductsTagId } from './getProductsTagId'; + + +export interface GetProductsLiabilityAccountOptions { + description?: string; + disabled?: boolean; + glCode?: string; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + tagId?: GetProductsTagId; + type?: GetProductsLiabilityType; + usage?: GetProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getProductsLiabilityType.ts b/packages/fineract-client/src/models/getProductsLiabilityType.ts new file mode 100644 index 0000000000..5efff5ac93 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsLiabilityType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetProductsLiabilityType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getProductsLiabilityUsage.ts b/packages/fineract-client/src/models/getProductsLiabilityUsage.ts new file mode 100644 index 0000000000..ab58650657 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsLiabilityUsage.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetProductsLiabilityUsage { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getProductsMarketPrice.ts b/packages/fineract-client/src/models/getProductsMarketPrice.ts new file mode 100644 index 0000000000..768f9d9c4e --- /dev/null +++ b/packages/fineract-client/src/models/getProductsMarketPrice.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetProductsMarketPrice { + fromDate?: string; + id?: number; + shareValue?: number; +} + diff --git a/packages/fineract-client/src/models/getProductsMinimumActivePeriodFrequencyTypeOptions.ts b/packages/fineract-client/src/models/getProductsMinimumActivePeriodFrequencyTypeOptions.ts new file mode 100644 index 0000000000..47606df824 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsMinimumActivePeriodFrequencyTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetProductsMinimumActivePeriodFrequencyTypeOptions { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getProductsPageItems.ts b/packages/fineract-client/src/models/getProductsPageItems.ts new file mode 100644 index 0000000000..11ec4e5a63 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsPageItems.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetProductsPageItems { + id?: number; + name?: string; + shortName?: string; + totalShares?: number; +} + diff --git a/packages/fineract-client/src/models/getProductsTagId.ts b/packages/fineract-client/src/models/getProductsTagId.ts new file mode 100644 index 0000000000..a14bc9fa14 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsTagId.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetProductsTagId { + id?: number; + isActive?: boolean; +} + diff --git a/packages/fineract-client/src/models/getProductsTypeProductIdResponse.ts b/packages/fineract-client/src/models/getProductsTypeProductIdResponse.ts new file mode 100644 index 0000000000..96f7165328 --- /dev/null +++ b/packages/fineract-client/src/models/getProductsTypeProductIdResponse.ts @@ -0,0 +1,54 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLockPeriodTypeEnum } from './getLockPeriodTypeEnum'; +import { GetProductsCharges } from './getProductsCharges'; +import { GetProductsAccountingMappingOptions } from './getProductsAccountingMappingOptions'; +import { GetProductsCurrency } from './getProductsCurrency'; +import { GetProductsMinimumActivePeriodFrequencyTypeOptions } from './getProductsMinimumActivePeriodFrequencyTypeOptions'; +import { GetChargesCurrency } from './getChargesCurrency'; +import { GetProductsAccountingRule } from './getProductsAccountingRule'; +import { GetProductsAccountingMappings } from './getProductsAccountingMappings'; +import { GetProductsMarketPrice } from './getProductsMarketPrice'; + + +/** + * GetProductsTypeProductIdResponse + */ +export interface GetProductsTypeProductIdResponse { + accountingMappingOptions?: GetProductsAccountingMappingOptions; + accountingMappings?: GetProductsAccountingMappings; + accountingRule?: GetProductsAccountingRule; + allowDividendCalculationForInactiveClients?: boolean; + chargeOptions?: Set; + charges?: Set; + currency?: GetProductsCurrency; + currencyOptions?: Set; + description?: string; + id?: number; + lockPeriodTypeEnum?: GetLockPeriodTypeEnum; + lockinPeriod?: number; + lockinPeriodFrequencyTypeOptions?: Set; + marketPrice?: Set; + maximumShares?: number; + minimumActivePeriod?: number; + minimumActivePeriodForDividendsTypeEnum?: GetLockPeriodTypeEnum; + minimumActivePeriodFrequencyTypeOptions?: Set; + minimumShares?: number; + name?: string; + nominalShares?: number; + shareCapital?: number; + shortName?: string; + totalShares?: number; + totalSharesIssued?: number; + unitPrice?: number; +} + diff --git a/packages/fineract-client/src/models/getProductsTypeResponse.ts b/packages/fineract-client/src/models/getProductsTypeResponse.ts new file mode 100644 index 0000000000..304880423f --- /dev/null +++ b/packages/fineract-client/src/models/getProductsTypeResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetProductsPageItems } from './getProductsPageItems'; + + +/** + * GetProductsTypeResponse + */ +export interface GetProductsTypeResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getProvisioningCriteriaCriteriaIdResponse.ts b/packages/fineract-client/src/models/getProvisioningCriteriaCriteriaIdResponse.ts new file mode 100644 index 0000000000..1f874755c5 --- /dev/null +++ b/packages/fineract-client/src/models/getProvisioningCriteriaCriteriaIdResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ProvisioningCriteriaDefinitionData } from './provisioningCriteriaDefinitionData'; +import { LoanProductData } from './loanProductData'; + + +/** + * GetProvisioningCriteriaCriteriaIdResponse + */ +export interface GetProvisioningCriteriaCriteriaIdResponse { + createdBy?: string; + criteriaId?: number; + criteriaName?: string; + loanProducts?: Array; + provisioningcriteria?: Array; +} + diff --git a/packages/fineract-client/src/models/getProvisioningCriteriaResponse.ts b/packages/fineract-client/src/models/getProvisioningCriteriaResponse.ts new file mode 100644 index 0000000000..21359c80bb --- /dev/null +++ b/packages/fineract-client/src/models/getProvisioningCriteriaResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetProvisioningCriteriaResponse + */ +export interface GetProvisioningCriteriaResponse { + createdBy?: string; + criteriaId?: number; + criteriaName?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurrenceFrequencyOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getRecurrenceFrequencyOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..0db52a1f49 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurrenceFrequencyOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurrenceFrequencyOptionsResponseStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurrenceFrequencyStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getRecurrenceFrequencyStandingInstructionSwagger.ts new file mode 100644 index 0000000000..788ee47951 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurrenceFrequencyStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurrenceFrequencyStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurrenceTypeOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getRecurrenceTypeOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..5da9d510fb --- /dev/null +++ b/packages/fineract-client/src/models/getRecurrenceTypeOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurrenceTypeOptionsResponseStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurrenceTypeStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getRecurrenceTypeStandingInstructionSwagger.ts new file mode 100644 index 0000000000..b2f330c741 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurrenceTypeStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurrenceTypeStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringCurrency.ts b/packages/fineract-client/src/models/getRecurringCurrency.ts new file mode 100644 index 0000000000..981315962a --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsAccountChart.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsAccountChart.ts new file mode 100644 index 0000000000..c02243aa8e --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsAccountChart.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositAccountsPeriodTypes } from './getRecurringDepositAccountsPeriodTypes'; +import { GetRecurringDepositAccountsChartSlabs } from './getRecurringDepositAccountsChartSlabs'; + + +export interface GetRecurringDepositAccountsAccountChart { + accountId?: number; + accountNumber?: number; + chartSlabs?: Set; + fromDate?: string; + id?: number; + periodTypes?: Set; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsAccountChartCurrency.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsAccountChartCurrency.ts new file mode 100644 index 0000000000..e70a58e74c --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsAccountChartCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsAccountChartCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..d9d7b86d06 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsAccountIdResponse.ts @@ -0,0 +1,60 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositAccountsMaxDepositTermType } from './getRecurringDepositAccountsMaxDepositTermType'; +import { GetRecurringDepositAccountsInterestCalculationType } from './getRecurringDepositAccountsInterestCalculationType'; +import { GetRecurringDepositAccountsStatus } from './getRecurringDepositAccountsStatus'; +import { GetRecurringDepositAccountsCurrency } from './getRecurringDepositAccountsCurrency'; +import { GetRecurringDepositAccountsInterestCalculationDaysInYearType } from './getRecurringDepositAccountsInterestCalculationDaysInYearType'; +import { GetRecurringDepositAccountsTimeline } from './getRecurringDepositAccountsTimeline'; +import { GetRecurringDepositAccountsInterestCompoundingPeriodType } from './getRecurringDepositAccountsInterestCompoundingPeriodType'; +import { GetRecurringDepositAccountsAccountChart } from './getRecurringDepositAccountsAccountChart'; +import { GetRecurringDepositAccountsSummary } from './getRecurringDepositAccountsSummary'; +import { GetRecurringDepositAccountsMinDepositTermType } from './getRecurringDepositAccountsMinDepositTermType'; +import { GetRecurringDepositAccountsDepositPeriodFrequency } from './getRecurringDepositAccountsDepositPeriodFrequency'; +import { GetRecurringDepositAccountsRecurringDepositFrequencyType } from './getRecurringDepositAccountsRecurringDepositFrequencyType'; +import { GetRecurringDepositAccountsInterestPostingPeriodType } from './getRecurringDepositAccountsInterestPostingPeriodType'; + + +/** + * GetRecurringDepositAccountsAccountIdResponse + */ +export interface GetRecurringDepositAccountsAccountIdResponse { + accountChart?: GetRecurringDepositAccountsAccountChart; + accountNo?: number; + clientId?: number; + clientName?: string; + currency?: GetRecurringDepositAccountsCurrency; + depositPeriod?: number; + depositPeriodFrequency?: GetRecurringDepositAccountsDepositPeriodFrequency; + expectedFirstDepositOnDate?: string; + externalId?: string; + fieldOfficerId?: number; + id?: number; + interestCalculationDaysInYearType?: GetRecurringDepositAccountsInterestCalculationDaysInYearType; + interestCalculationType?: GetRecurringDepositAccountsInterestCalculationType; + interestCompoundingPeriodType?: GetRecurringDepositAccountsInterestCompoundingPeriodType; + interestPostingPeriodType?: GetRecurringDepositAccountsInterestPostingPeriodType; + maxDepositTerm?: number; + maxDepositTermType?: GetRecurringDepositAccountsMaxDepositTermType; + minDepositTerm?: number; + minDepositTermType?: GetRecurringDepositAccountsMinDepositTermType; + preClosurePenalApplicable?: boolean; + recurringDepositAmount?: number; + recurringDepositFrequency?: number; + recurringDepositFrequencyType?: GetRecurringDepositAccountsRecurringDepositFrequencyType; + savingsProductId?: number; + savingsProductName?: string; + status?: GetRecurringDepositAccountsStatus; + summary?: GetRecurringDepositAccountsSummary; + timeline?: GetRecurringDepositAccountsTimeline; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsChartSlabs.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsChartSlabs.ts new file mode 100644 index 0000000000..5a80040548 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsChartSlabs.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositAccountsAccountChartCurrency } from './getRecurringDepositAccountsAccountChartCurrency'; +import { GetRecurringDepositAccountsPeriodType } from './getRecurringDepositAccountsPeriodType'; + + +export interface GetRecurringDepositAccountsChartSlabs { + annualInterestRate?: number; + currency?: GetRecurringDepositAccountsAccountChartCurrency; + fromPeriod?: number; + id?: number; + periodType?: GetRecurringDepositAccountsPeriodType; + toPeriod?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsCurrency.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsCurrency.ts new file mode 100644 index 0000000000..ae4f362908 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsDepositPeriodFrequency.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsDepositPeriodFrequency.ts new file mode 100644 index 0000000000..e4d7119b20 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsDepositPeriodFrequency.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsDepositPeriodFrequency { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsInterestCalculationDaysInYearType.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsInterestCalculationDaysInYearType.ts new file mode 100644 index 0000000000..fb6d57d0f2 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsInterestCalculationDaysInYearType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsInterestCalculationDaysInYearType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsInterestCalculationType.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsInterestCalculationType.ts new file mode 100644 index 0000000000..c0686cb7c1 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsInterestCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsInterestCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsInterestCompoundingPeriodType.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsInterestCompoundingPeriodType.ts new file mode 100644 index 0000000000..f2aeeedd36 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsInterestCompoundingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsInterestCompoundingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsInterestPostingPeriodType.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsInterestPostingPeriodType.ts new file mode 100644 index 0000000000..42fa084e6a --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsInterestPostingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsInterestPostingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsMaxDepositTermType.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsMaxDepositTermType.ts new file mode 100644 index 0000000000..197f9fd8bd --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsMaxDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsMaxDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsMinDepositTermType.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsMinDepositTermType.ts new file mode 100644 index 0000000000..e013218fb5 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsMinDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsMinDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsPeriodType.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsPeriodType.ts new file mode 100644 index 0000000000..97a7f7de31 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsPeriodTypes.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsPeriodTypes.ts new file mode 100644 index 0000000000..c4a6e48113 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsPeriodTypes.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsPeriodTypes { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTemplateResponse.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTemplateResponse.ts new file mode 100644 index 0000000000..3cbcd7f2ac --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTemplateResponse.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringCurrency } from './getRecurringCurrency'; +import { GetRecurringTransactionType } from './getRecurringTransactionType'; + + +/** + * GetRecurringDepositAccountsRecurringDepositAccountIdTransactionsTemplateResponse + */ +export interface GetRecurringDepositAccountsRecurringDepositAccountIdTransactionsTemplateResponse { + accountId?: number; + accountNo?: string; + amount?: number; + currency?: GetRecurringCurrency; + date?: string; + id?: number; + paymentTypeOptions?: Array; + reversed?: boolean; + transactionType?: GetRecurringTransactionType; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse.ts new file mode 100644 index 0000000000..0ae5bd1d97 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringPaymentDetailData } from './getRecurringPaymentDetailData'; +import { GetRecurringTransactionsTransactionType } from './getRecurringTransactionsTransactionType'; +import { GetRecurringTransactionsCurrency } from './getRecurringTransactionsCurrency'; + + +/** + * GetRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse + */ +export interface GetRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse { + accountId?: number; + accountNo?: string; + amount?: number; + currency?: GetRecurringTransactionsCurrency; + date?: string; + id?: number; + paymentDetailData?: GetRecurringPaymentDetailData; + reversed?: boolean; + runningBalance?: number; + transactionType?: GetRecurringTransactionsTransactionType; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositFrequencyType.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositFrequencyType.ts new file mode 100644 index 0000000000..8901b56f9c --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsRecurringDepositFrequencyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsRecurringDepositFrequencyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsResponse.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsResponse.ts new file mode 100644 index 0000000000..3afb47ee96 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsResponse.ts @@ -0,0 +1,59 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositAccountsMaxDepositTermType } from './getRecurringDepositAccountsMaxDepositTermType'; +import { GetRecurringDepositAccountsSummary } from './getRecurringDepositAccountsSummary'; +import { GetRecurringDepositAccountsInterestCalculationType } from './getRecurringDepositAccountsInterestCalculationType'; +import { GetRecurringDepositAccountsMinDepositTermType } from './getRecurringDepositAccountsMinDepositTermType'; +import { GetRecurringDepositAccountsDepositPeriodFrequency } from './getRecurringDepositAccountsDepositPeriodFrequency'; +import { GetRecurringDepositAccountsRecurringDepositFrequencyType } from './getRecurringDepositAccountsRecurringDepositFrequencyType'; +import { GetRecurringDepositAccountsStatus } from './getRecurringDepositAccountsStatus'; +import { GetRecurringDepositAccountsCurrency } from './getRecurringDepositAccountsCurrency'; +import { GetRecurringDepositAccountsInterestPostingPeriodType } from './getRecurringDepositAccountsInterestPostingPeriodType'; +import { GetRecurringDepositAccountsInterestCalculationDaysInYearType } from './getRecurringDepositAccountsInterestCalculationDaysInYearType'; +import { GetRecurringDepositAccountsTimeline } from './getRecurringDepositAccountsTimeline'; +import { GetRecurringDepositAccountsInterestCompoundingPeriodType } from './getRecurringDepositAccountsInterestCompoundingPeriodType'; + + +/** + * GetRecurringDepositAccountsResponse + */ +export interface GetRecurringDepositAccountsResponse { + accountNo?: number; + clientId?: number; + clientName?: string; + currency?: GetRecurringDepositAccountsCurrency; + depositAmount?: number; + depositPeriod?: number; + depositPeriodFrequency?: GetRecurringDepositAccountsDepositPeriodFrequency; + fieldOfficerId?: number; + id?: number; + interestCalculationDaysInYearType?: GetRecurringDepositAccountsInterestCalculationDaysInYearType; + interestCalculationType?: GetRecurringDepositAccountsInterestCalculationType; + interestCompoundingPeriodType?: GetRecurringDepositAccountsInterestCompoundingPeriodType; + interestPostingPeriodType?: GetRecurringDepositAccountsInterestPostingPeriodType; + maturityAmount?: number; + maturityDate?: string; + maxDepositTerm?: number; + maxDepositTermType?: GetRecurringDepositAccountsMaxDepositTermType; + minDepositTerm?: number; + minDepositTermType?: GetRecurringDepositAccountsMinDepositTermType; + preClosurePenalApplicable?: boolean; + recurringDepositAmount?: number; + recurringDepositFrequency?: number; + recurringDepositFrequencyType?: GetRecurringDepositAccountsRecurringDepositFrequencyType; + savingsProductId?: number; + savingsProductName?: string; + status?: GetRecurringDepositAccountsStatus; + summary?: GetRecurringDepositAccountsSummary; + timeline?: GetRecurringDepositAccountsTimeline; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsStatus.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsStatus.ts new file mode 100644 index 0000000000..ec435dd920 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsStatus.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsStatus { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + description?: string; + id?: number; + prematureClosed?: boolean; + rejected?: boolean; + submittedAndPendingApproval?: boolean; + transferInProgress?: boolean; + transferOnHold?: boolean; + withdrawnByApplicant?: boolean; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsSummary.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsSummary.ts new file mode 100644 index 0000000000..60069066c1 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsSummary.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositAccountsCurrency } from './getRecurringDepositAccountsCurrency'; + + +export interface GetRecurringDepositAccountsSummary { + accountBalance?: number; + currency?: GetRecurringDepositAccountsCurrency; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsTemplateResponse.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsTemplateResponse.ts new file mode 100644 index 0000000000..c2bf7ca3ea --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsTemplateResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringProductOptions } from './getRecurringProductOptions'; + + +/** + * GetRecurringDepositAccountsTemplateResponse + */ +export interface GetRecurringDepositAccountsTemplateResponse { + clientId?: number; + clientName?: string; + productOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositAccountsTimeline.ts b/packages/fineract-client/src/models/getRecurringDepositAccountsTimeline.ts new file mode 100644 index 0000000000..a795f30133 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositAccountsTimeline.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositAccountsTimeline { + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsAccountingRule.ts b/packages/fineract-client/src/models/getRecurringDepositProductsAccountingRule.ts new file mode 100644 index 0000000000..4a805d20b4 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsAccountingRule.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsAccountingRule { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsCurrency.ts b/packages/fineract-client/src/models/getRecurringDepositProductsCurrency.ts new file mode 100644 index 0000000000..a4fcb394ea --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsInterestCalculationDaysInYearType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsInterestCalculationDaysInYearType.ts new file mode 100644 index 0000000000..4b0e691b63 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsInterestCalculationDaysInYearType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsInterestCalculationDaysInYearType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsInterestCalculationType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsInterestCalculationType.ts new file mode 100644 index 0000000000..cca63dea14 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsInterestCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsInterestCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsInterestCompoundingPeriodType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsInterestCompoundingPeriodType.ts new file mode 100644 index 0000000000..572cb22ba9 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsInterestCompoundingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsInterestCompoundingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsInterestPostingPeriodType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsInterestPostingPeriodType.ts new file mode 100644 index 0000000000..9f5855f72d --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsInterestPostingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsInterestPostingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsMaxDepositTermType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsMaxDepositTermType.ts new file mode 100644 index 0000000000..c3f6c83db0 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsMaxDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsMaxDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsMinDepositTermType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsMinDepositTermType.ts new file mode 100644 index 0000000000..5ccc83ade5 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsMinDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsMinDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdAccountingMappings.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdAccountingMappings.ts new file mode 100644 index 0000000000..4391c93c50 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdAccountingMappings.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositProductsProductIdSavingsReferenceAccount } from './getRecurringDepositProductsProductIdSavingsReferenceAccount'; +import { GetRecurringDepositProductsProductIdInterestOnSavingsAccount } from './getRecurringDepositProductsProductIdInterestOnSavingsAccount'; +import { GetRecurringDepositProductsProductIdIncomeFromPenaltyAccount } from './getRecurringDepositProductsProductIdIncomeFromPenaltyAccount'; +import { GetRecurringDepositProductsProductIdIncomeFromFeeAccount } from './getRecurringDepositProductsProductIdIncomeFromFeeAccount'; +import { GetRecurringDepositProductsProductIdTransfersInSuspenseAccount } from './getRecurringDepositProductsProductIdTransfersInSuspenseAccount'; +import { GetRecurringDepositProductsProductIdSavingsControlAccount } from './getRecurringDepositProductsProductIdSavingsControlAccount'; + + +export interface GetRecurringDepositProductsProductIdAccountingMappings { + incomeFromFeeAccount?: GetRecurringDepositProductsProductIdIncomeFromFeeAccount; + incomeFromPenaltyAccount?: GetRecurringDepositProductsProductIdIncomeFromPenaltyAccount; + interestOnSavingsAccount?: GetRecurringDepositProductsProductIdInterestOnSavingsAccount; + savingsControlAccount?: GetRecurringDepositProductsProductIdSavingsControlAccount; + savingsReferenceAccount?: GetRecurringDepositProductsProductIdSavingsReferenceAccount; + transfersInSuspenseAccount?: GetRecurringDepositProductsProductIdTransfersInSuspenseAccount; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdActiveChart.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdActiveChart.ts new file mode 100644 index 0000000000..f32c4e0dce --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdActiveChart.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositProductsProductIdChartSlabs } from './getRecurringDepositProductsProductIdChartSlabs'; +import { GetRecurringDepositProductsProductIdPeriodType } from './getRecurringDepositProductsProductIdPeriodType'; + + +export interface GetRecurringDepositProductsProductIdActiveChart { + chartSlabs?: Set; + fromDate?: string; + id?: number; + periodTypes?: Set; + savingsProductId?: number; + savingsProductName?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdChartSlabs.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdChartSlabs.ts new file mode 100644 index 0000000000..0cd6a42add --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdChartSlabs.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositProductsProductIdPeriodType } from './getRecurringDepositProductsProductIdPeriodType'; +import { GetRecurringDepositProductsProductIdCurrency } from './getRecurringDepositProductsProductIdCurrency'; + + +export interface GetRecurringDepositProductsProductIdChartSlabs { + annualInterestRate?: number; + currency?: GetRecurringDepositProductsProductIdCurrency; + description?: string; + fromPeriod?: number; + id?: number; + periodType?: GetRecurringDepositProductsProductIdPeriodType; + toPeriod?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdCurrency.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdCurrency.ts new file mode 100644 index 0000000000..e39d9237e3 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappings.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappings.ts new file mode 100644 index 0000000000..e42144a51f --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappings.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount } from './getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount'; +import { GetRecurringDepositProductsProductIdFeeToIncomeAccountMappingsCharge } from './getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsCharge'; + + +export interface GetRecurringDepositProductsProductIdFeeToIncomeAccountMappings { + charge?: GetRecurringDepositProductsProductIdFeeToIncomeAccountMappingsCharge; + incomeAccount?: GetRecurringDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsCharge.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsCharge.ts new file mode 100644 index 0000000000..771b2ff20a --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsCharge.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdFeeToIncomeAccountMappingsCharge { + active?: boolean; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount.ts new file mode 100644 index 0000000000..242d2d2c3a --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdIncomeFromFeeAccount.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdIncomeFromFeeAccount.ts new file mode 100644 index 0000000000..832d6a946d --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdIncomeFromFeeAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdIncomeFromFeeAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdIncomeFromPenaltyAccount.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdIncomeFromPenaltyAccount.ts new file mode 100644 index 0000000000..c3ea3fa587 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdIncomeFromPenaltyAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdIncomeFromPenaltyAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdInterestCompoundingPeriodType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdInterestCompoundingPeriodType.ts new file mode 100644 index 0000000000..5d146593f5 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdInterestCompoundingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdInterestCompoundingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdInterestOnSavingsAccount.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdInterestOnSavingsAccount.ts new file mode 100644 index 0000000000..b3a0001a63 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdInterestOnSavingsAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdInterestOnSavingsAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdMaxDepositTermType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdMaxDepositTermType.ts new file mode 100644 index 0000000000..161299fea9 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdMaxDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdMaxDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdMinDepositTermType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdMinDepositTermType.ts new file mode 100644 index 0000000000..b0472192f7 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdMinDepositTermType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdMinDepositTermType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappings.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappings.ts new file mode 100644 index 0000000000..119b423f26 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappings.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositProductsProductIdIncomeFromPenaltyAccount } from './getRecurringDepositProductsProductIdIncomeFromPenaltyAccount'; +import { GetRecurringDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge } from './getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge'; + + +export interface GetRecurringDepositProductsProductIdPenaltyToIncomeAccountMappings { + charge?: GetRecurringDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge; + incomeAccount?: GetRecurringDepositProductsProductIdIncomeFromPenaltyAccount; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge.ts new file mode 100644 index 0000000000..49ba0b6cca --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge { + active?: boolean; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPeriodType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPeriodType.ts new file mode 100644 index 0000000000..31fe8d174b --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPreClosurePenalInterestOnType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPreClosurePenalInterestOnType.ts new file mode 100644 index 0000000000..b8b97cb36c --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdPreClosurePenalInterestOnType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdPreClosurePenalInterestOnType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdResponse.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdResponse.ts new file mode 100644 index 0000000000..8214631c59 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdResponse.ts @@ -0,0 +1,54 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositProductsProductIdMinDepositTermType } from './getRecurringDepositProductsProductIdMinDepositTermType'; +import { GetRecurringDepositProductsProductIdFeeToIncomeAccountMappings } from './getRecurringDepositProductsProductIdFeeToIncomeAccountMappings'; +import { GetRecurringDepositProductsProductIdInterestCompoundingPeriodType } from './getRecurringDepositProductsProductIdInterestCompoundingPeriodType'; +import { GetRecurringDepositProductsProductIdMaxDepositTermType } from './getRecurringDepositProductsProductIdMaxDepositTermType'; +import { GetRecurringDepositProductsRecurringDepositFrequencyType } from './getRecurringDepositProductsRecurringDepositFrequencyType'; +import { GetRecurringDepositProductsProductIdCurrency } from './getRecurringDepositProductsProductIdCurrency'; +import { GetRecurringDepositProductsProductIdAccountingMappings } from './getRecurringDepositProductsProductIdAccountingMappings'; +import { GetRecurringDepositProductsInterestPostingPeriodType } from './getRecurringDepositProductsInterestPostingPeriodType'; +import { GetRecurringDepositProductsProductIdPenaltyToIncomeAccountMappings } from './getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappings'; +import { GetRecurringDepositProductsInterestCalculationType } from './getRecurringDepositProductsInterestCalculationType'; +import { GetRecurringDepositProductsProductIdPreClosurePenalInterestOnType } from './getRecurringDepositProductsProductIdPreClosurePenalInterestOnType'; +import { GetRecurringDepositProductsProductIdActiveChart } from './getRecurringDepositProductsProductIdActiveChart'; +import { GetRecurringDepositProductsInterestCalculationDaysInYearType } from './getRecurringDepositProductsInterestCalculationDaysInYearType'; + + +/** + * GetRecurringDepositProductsProductIdResponse + */ +export interface GetRecurringDepositProductsProductIdResponse { + accountingMappings?: GetRecurringDepositProductsProductIdAccountingMappings; + activeChart?: GetRecurringDepositProductsProductIdActiveChart; + currency?: GetRecurringDepositProductsProductIdCurrency; + description?: string; + feeToIncomeAccountMappings?: Set; + id?: number; + interestCalculationDaysInYearType?: GetRecurringDepositProductsInterestCalculationDaysInYearType; + interestCalculationType?: GetRecurringDepositProductsInterestCalculationType; + interestCompoundingPeriodType?: GetRecurringDepositProductsProductIdInterestCompoundingPeriodType; + interestPostingPeriodType?: GetRecurringDepositProductsInterestPostingPeriodType; + maxDepositTerm?: number; + maxDepositTermType?: GetRecurringDepositProductsProductIdMaxDepositTermType; + minDepositTerm?: number; + minDepositTermType?: GetRecurringDepositProductsProductIdMinDepositTermType; + name?: string; + penaltyToIncomeAccountMappings?: Set; + preClosurePenalApplicable?: boolean; + preClosurePenalInterest?: number; + preClosurePenalInterestOnType?: GetRecurringDepositProductsProductIdPreClosurePenalInterestOnType; + recurringDepositFrequency?: number; + recurringDepositFrequencyType?: GetRecurringDepositProductsRecurringDepositFrequencyType; + shortName?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdSavingsControlAccount.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdSavingsControlAccount.ts new file mode 100644 index 0000000000..204984b351 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdSavingsControlAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdSavingsControlAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdSavingsReferenceAccount.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdSavingsReferenceAccount.ts new file mode 100644 index 0000000000..11d6b330c7 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdSavingsReferenceAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdSavingsReferenceAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsProductIdTransfersInSuspenseAccount.ts b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdTransfersInSuspenseAccount.ts new file mode 100644 index 0000000000..3e175b0ad5 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsProductIdTransfersInSuspenseAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsProductIdTransfersInSuspenseAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsRecurringDepositFrequencyType.ts b/packages/fineract-client/src/models/getRecurringDepositProductsRecurringDepositFrequencyType.ts new file mode 100644 index 0000000000..2cd5e65b24 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsRecurringDepositFrequencyType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringDepositProductsRecurringDepositFrequencyType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringDepositProductsResponse.ts b/packages/fineract-client/src/models/getRecurringDepositProductsResponse.ts new file mode 100644 index 0000000000..bd894cf98b --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringDepositProductsResponse.ts @@ -0,0 +1,46 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringDepositProductsInterestPostingPeriodType } from './getRecurringDepositProductsInterestPostingPeriodType'; +import { GetRecurringDepositProductsCurrency } from './getRecurringDepositProductsCurrency'; +import { GetRecurringDepositProductsInterestCompoundingPeriodType } from './getRecurringDepositProductsInterestCompoundingPeriodType'; +import { GetRecurringDepositProductsMaxDepositTermType } from './getRecurringDepositProductsMaxDepositTermType'; +import { GetRecurringDepositProductsMinDepositTermType } from './getRecurringDepositProductsMinDepositTermType'; +import { GetRecurringDepositProductsInterestCalculationType } from './getRecurringDepositProductsInterestCalculationType'; +import { GetRecurringDepositProductsRecurringDepositFrequencyType } from './getRecurringDepositProductsRecurringDepositFrequencyType'; +import { GetRecurringDepositProductsAccountingRule } from './getRecurringDepositProductsAccountingRule'; +import { GetRecurringDepositProductsInterestCalculationDaysInYearType } from './getRecurringDepositProductsInterestCalculationDaysInYearType'; + + +/** + * GetRecurringDepositProductsResponse + */ +export interface GetRecurringDepositProductsResponse { + accountingRule?: GetRecurringDepositProductsAccountingRule; + currency?: GetRecurringDepositProductsCurrency; + description?: string; + id?: number; + interestCalculationDaysInYearType?: GetRecurringDepositProductsInterestCalculationDaysInYearType; + interestCalculationType?: GetRecurringDepositProductsInterestCalculationType; + interestCompoundingPeriodType?: GetRecurringDepositProductsInterestCompoundingPeriodType; + interestPostingPeriodType?: GetRecurringDepositProductsInterestPostingPeriodType; + maxDepositTerm?: number; + maxDepositTermType?: GetRecurringDepositProductsMaxDepositTermType; + minDepositTerm?: number; + minDepositTermType?: GetRecurringDepositProductsMinDepositTermType; + name?: string; + nominalAnnualInterestRate?: number; + preClosurePenalApplicable?: boolean; + recurringDepositFrequency?: number; + recurringDepositFrequencyType?: GetRecurringDepositProductsRecurringDepositFrequencyType; + shortName?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringPaymentDetailData.ts b/packages/fineract-client/src/models/getRecurringPaymentDetailData.ts new file mode 100644 index 0000000000..f639eefefc --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringPaymentDetailData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRecurringPaymentType } from './getRecurringPaymentType'; + + +export interface GetRecurringPaymentDetailData { + accountNumber?: number; + bankNumber?: number; + checkNumber?: number; + id?: number; + paymentType?: GetRecurringPaymentType; + receiptNumber?: number; + routingCode?: number; +} + diff --git a/packages/fineract-client/src/models/getRecurringPaymentType.ts b/packages/fineract-client/src/models/getRecurringPaymentType.ts new file mode 100644 index 0000000000..7d6d91f3e8 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringPaymentType.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringPaymentType { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringProductOptions.ts b/packages/fineract-client/src/models/getRecurringProductOptions.ts new file mode 100644 index 0000000000..f4057572e5 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringProductOptions.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringProductOptions { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringTransactionType.ts b/packages/fineract-client/src/models/getRecurringTransactionType.ts new file mode 100644 index 0000000000..1e16413f6b --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringTransactionType.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringTransactionType { + approveTransfer?: boolean; + code?: string; + deposit?: boolean; + description?: string; + feeDeduction?: boolean; + id?: number; + initiateTransfer?: boolean; + interestPosting?: boolean; + overdraftFee?: boolean; + overdraftInterest?: boolean; + rejectTransfer?: boolean; + withdrawTransfer?: boolean; + withdrawal?: boolean; + writtenoff?: boolean; +} + diff --git a/packages/fineract-client/src/models/getRecurringTransactionsCurrency.ts b/packages/fineract-client/src/models/getRecurringTransactionsCurrency.ts new file mode 100644 index 0000000000..877efb6176 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringTransactionsCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringTransactionsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getRecurringTransactionsTransactionType.ts b/packages/fineract-client/src/models/getRecurringTransactionsTransactionType.ts new file mode 100644 index 0000000000..e0acc6dea7 --- /dev/null +++ b/packages/fineract-client/src/models/getRecurringTransactionsTransactionType.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRecurringTransactionsTransactionType { + code?: string; + deposit?: boolean; + description?: string; + feeDeduction?: boolean; + id?: number; + interestPosting?: boolean; + withdrawal?: boolean; +} + diff --git a/packages/fineract-client/src/models/getReportMailingJobsResponse.ts b/packages/fineract-client/src/models/getReportMailingJobsResponse.ts new file mode 100644 index 0000000000..21217a146e --- /dev/null +++ b/packages/fineract-client/src/models/getReportMailingJobsResponse.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ReportMailingJobTimelineData } from './reportMailingJobTimelineData'; +import { EnumOptionData } from './enumOptionData'; + + +/** + * GetReportMailingJobsResponse + */ +export interface GetReportMailingJobsResponse { + description?: string; + emailAttachmentFileFormat?: EnumOptionData; + emailMessage?: string; + emailRecipients?: string; + emailSubject?: string; + id?: number; + isActive?: boolean; + name?: string; + nextRunDateTime?: string; + numberOfRuns?: number; + recurrence?: string; + runAsUserId?: number; + startDateTime?: string; + stretchyReport?: object; + stretchyReportParamMap?: string; + timeline?: ReportMailingJobTimelineData; +} + diff --git a/packages/fineract-client/src/models/getReportMailingJobsTemplate.ts b/packages/fineract-client/src/models/getReportMailingJobsTemplate.ts new file mode 100644 index 0000000000..f2bba1af4a --- /dev/null +++ b/packages/fineract-client/src/models/getReportMailingJobsTemplate.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +/** + * GetReportMailingJobsTemplate + */ +export interface GetReportMailingJobsTemplate { + emailAttachmentFileFormatOptions?: Array; + isActive?: boolean; + stretchyReportParamDateOptions?: Array; +} + diff --git a/packages/fineract-client/src/models/getReportsResponse.ts b/packages/fineract-client/src/models/getReportsResponse.ts new file mode 100644 index 0000000000..a2ee3fdb77 --- /dev/null +++ b/packages/fineract-client/src/models/getReportsResponse.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetReportsResponse + */ +export interface GetReportsResponse { + coreReport?: boolean; + description?: string; + id?: number; + reportCategory?: string; + reportName?: string; + reportParameters?: Array; + reportSql?: string; + reportSubType?: string; + reportType?: string; + useReport?: boolean; +} + diff --git a/packages/fineract-client/src/models/getReportsTemplateResponse.ts b/packages/fineract-client/src/models/getReportsTemplateResponse.ts new file mode 100644 index 0000000000..dda88d2988 --- /dev/null +++ b/packages/fineract-client/src/models/getReportsTemplateResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetReportsTemplateResponse + */ +export interface GetReportsTemplateResponse { + allowedParameters?: Array; + allowedReportSubTypes?: Array; + allowedReportTypes?: Array; +} + diff --git a/packages/fineract-client/src/models/getRescheduleReasonsAllowedTypes.ts b/packages/fineract-client/src/models/getRescheduleReasonsAllowedTypes.ts new file mode 100644 index 0000000000..c5fdd838e6 --- /dev/null +++ b/packages/fineract-client/src/models/getRescheduleReasonsAllowedTypes.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRescheduleReasonsAllowedTypes { + active?: boolean; + description?: string; + id?: number; + mandatory?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/getRescheduleReasonsTemplateResponse.ts b/packages/fineract-client/src/models/getRescheduleReasonsTemplateResponse.ts new file mode 100644 index 0000000000..c9fe8ceb48 --- /dev/null +++ b/packages/fineract-client/src/models/getRescheduleReasonsTemplateResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRescheduleReasonsAllowedTypes } from './getRescheduleReasonsAllowedTypes'; + + +/** + * GetRescheduleReasonsTemplateResponse + */ +export interface GetRescheduleReasonsTemplateResponse { + rescheduleReasons?: Set; +} + diff --git a/packages/fineract-client/src/models/getResourceTypeResourceIdNotesNoteIdResponse.ts b/packages/fineract-client/src/models/getResourceTypeResourceIdNotesNoteIdResponse.ts new file mode 100644 index 0000000000..11c1483917 --- /dev/null +++ b/packages/fineract-client/src/models/getResourceTypeResourceIdNotesNoteIdResponse.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetNotesNoteType } from './getNotesNoteType'; + + +/** + * GetResourceTypeResourceIdNotesNoteIdResponse + */ +export interface GetResourceTypeResourceIdNotesNoteIdResponse { + clientId?: number; + createdById?: number; + createdByUsername?: string; + createdOn?: string; + id?: number; + note?: string; + noteType?: GetNotesNoteType; + updatedById?: number; + updatedByUsername?: string; + updatedOn?: string; +} + diff --git a/packages/fineract-client/src/models/getResourceTypeResourceIdNotesResponse.ts b/packages/fineract-client/src/models/getResourceTypeResourceIdNotesResponse.ts new file mode 100644 index 0000000000..032844373f --- /dev/null +++ b/packages/fineract-client/src/models/getResourceTypeResourceIdNotesResponse.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetNotesNoteType } from './getNotesNoteType'; + + +/** + * GetResourceTypeResourceIdNotesResponse + */ +export interface GetResourceTypeResourceIdNotesResponse { + clientId?: number; + createdById?: number; + createdByUsername?: string; + createdOn?: string; + id?: number; + note?: string; + noteType?: GetNotesNoteType; + updatedById?: number; + updatedByUsername?: string; + updatedOn?: string; +} + diff --git a/packages/fineract-client/src/models/getRolesResponse.ts b/packages/fineract-client/src/models/getRolesResponse.ts new file mode 100644 index 0000000000..c6b426b4f3 --- /dev/null +++ b/packages/fineract-client/src/models/getRolesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetRolesResponse + */ +export interface GetRolesResponse { + description?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRolesRoleIdPermissionsResponse.ts b/packages/fineract-client/src/models/getRolesRoleIdPermissionsResponse.ts new file mode 100644 index 0000000000..3c89cdb835 --- /dev/null +++ b/packages/fineract-client/src/models/getRolesRoleIdPermissionsResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRolesRoleIdPermissionsResponsePermissionData } from './getRolesRoleIdPermissionsResponsePermissionData'; + + +/** + * GetRolesRoleIdPermissionsResponse + */ +export interface GetRolesRoleIdPermissionsResponse { + description?: string; + id?: number; + name?: string; + permissionUsageData?: Array; +} + diff --git a/packages/fineract-client/src/models/getRolesRoleIdPermissionsResponsePermissionData.ts b/packages/fineract-client/src/models/getRolesRoleIdPermissionsResponsePermissionData.ts new file mode 100644 index 0000000000..d75bb19a22 --- /dev/null +++ b/packages/fineract-client/src/models/getRolesRoleIdPermissionsResponsePermissionData.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRolesRoleIdPermissionsResponsePermissionData { + actionName?: string; + code?: string; + entityName?: string; + grouping?: string; + selected?: boolean; +} + diff --git a/packages/fineract-client/src/models/getRolesRoleIdResponse.ts b/packages/fineract-client/src/models/getRolesRoleIdResponse.ts new file mode 100644 index 0000000000..e3a78361ca --- /dev/null +++ b/packages/fineract-client/src/models/getRolesRoleIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetRolesRoleIdResponse + */ +export interface GetRolesRoleIdResponse { + description?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getRunReportColumnHeaders.ts b/packages/fineract-client/src/models/getRunReportColumnHeaders.ts new file mode 100644 index 0000000000..c4075b4034 --- /dev/null +++ b/packages/fineract-client/src/models/getRunReportColumnHeaders.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetRunReportColumnHeaders { + columnName?: string; + columnType?: string; + columnValues?: string; + isColumnNullable?: boolean; + isColumnPrimaryKey?: boolean; +} + diff --git a/packages/fineract-client/src/models/getRunReportResponse.ts b/packages/fineract-client/src/models/getRunReportResponse.ts new file mode 100644 index 0000000000..f80a691701 --- /dev/null +++ b/packages/fineract-client/src/models/getRunReportResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetRunReportColumnHeaders } from './getRunReportColumnHeaders'; +import { GetPocketData } from './getPocketData'; + + +/** + * GetRunReportResponse + */ +export interface GetRunReportResponse { + columnHeaders?: Set; + data?: Set; +} + diff --git a/packages/fineract-client/src/models/getSavingsAccountChargesPaidByData.ts b/packages/fineract-client/src/models/getSavingsAccountChargesPaidByData.ts new file mode 100644 index 0000000000..3d7b154030 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsAccountChargesPaidByData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsAccountChargesPaidByData { + amount?: number; + chargeId?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsAccountTransactionsPageItem.ts b/packages/fineract-client/src/models/getSavingsAccountTransactionsPageItem.ts new file mode 100644 index 0000000000..c52830188b --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsAccountTransactionsPageItem.ts @@ -0,0 +1,39 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetTransactionsCurrency } from './getTransactionsCurrency'; +import { GetTranscationEnumData } from './getTranscationEnumData'; +import { GetTransactionsPaymentDetailData } from './getTransactionsPaymentDetailData'; +import { GetSavingsAccountChargesPaidByData } from './getSavingsAccountChargesPaidByData'; + + +export interface GetSavingsAccountTransactionsPageItem { + accountId?: number; + accountNo?: string; + amount?: number; + chargesPaidByData?: Set; + currency?: GetTransactionsCurrency; + date?: string; + id?: number; + interestedPostedAsOn?: boolean; + isManualTransaction?: boolean; + isReversal?: boolean; + lienTransaction?: boolean; + originalTransactionId?: number; + paymentDetailData?: GetTransactionsPaymentDetailData; + releaseTransactionId?: number; + reversed?: boolean; + runningBalance?: number; + submittedByUsername?: string; + submittedOnDate?: string; + transactionType?: GetTranscationEnumData; +} + diff --git a/packages/fineract-client/src/models/getSavingsAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/getSavingsAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..3fc0ae8bff --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsAccountsAccountIdResponse.ts @@ -0,0 +1,43 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsInterestCalculationType } from './getSavingsInterestCalculationType'; +import { GetSavingsAccountsSummary } from './getSavingsAccountsSummary'; +import { GetSavingsCurrency } from './getSavingsCurrency'; +import { GetSavingsInterestCalculationDaysInYearType } from './getSavingsInterestCalculationDaysInYearType'; +import { GetSavingsInterestCompoundingPeriodType } from './getSavingsInterestCompoundingPeriodType'; +import { GetSavingsTimeline } from './getSavingsTimeline'; +import { GetSavingsInterestPostingPeriodType } from './getSavingsInterestPostingPeriodType'; +import { GetSavingsStatus } from './getSavingsStatus'; + + +/** + * GetSavingsAccountsAccountIdResponse + */ +export interface GetSavingsAccountsAccountIdResponse { + accountNo?: string; + clientId?: number; + clientName?: string; + currency?: GetSavingsCurrency; + fieldOfficerId?: number; + id?: number; + interestCalculationDaysInYearType?: GetSavingsInterestCalculationDaysInYearType; + interestCalculationType?: GetSavingsInterestCalculationType; + interestCompoundingPeriodType?: GetSavingsInterestCompoundingPeriodType; + interestPostingPeriodType?: GetSavingsInterestPostingPeriodType; + nominalAnnualInterestRate?: number; + savingsProductId?: number; + savingsProductName?: string; + status?: GetSavingsStatus; + summary?: GetSavingsAccountsSummary; + timeline?: GetSavingsTimeline; +} + diff --git a/packages/fineract-client/src/models/getSavingsAccountsResponse.ts b/packages/fineract-client/src/models/getSavingsAccountsResponse.ts new file mode 100644 index 0000000000..86773fe020 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsAccountsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsPageItems } from './getSavingsPageItems'; + + +/** + * GetSavingsAccountsResponse + */ +export interface GetSavingsAccountsResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesResponse.ts b/packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesResponse.ts new file mode 100644 index 0000000000..992d068ba4 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesResponse.ts @@ -0,0 +1,38 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetChargesChargeCalculationType } from './getChargesChargeCalculationType'; +import { GetChargesChargeTimeType } from './getChargesChargeTimeType'; +import { GetChargesCurrencyResponse } from './getChargesCurrencyResponse'; + + +/** + * GetSavingsAccountsSavingsAccountIdChargesResponse + */ +export interface GetSavingsAccountsSavingsAccountIdChargesResponse { + accountId?: number; + amount?: number; + amountOrPercentage?: number; + amountOutstanding?: number; + amountPaid?: number; + amountPercentageAppliedTo?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetChargesChargeCalculationType; + chargeId?: number; + chargeTimeType?: GetChargesChargeTimeType; + currency?: GetChargesCurrencyResponse; + id?: number; + name?: string; + penalty?: boolean; + percentage?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts b/packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts new file mode 100644 index 0000000000..8f5ba58dee --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetChargesChargeCalculationType } from './getChargesChargeCalculationType'; +import { GetChargesChargeTimeType } from './getChargesChargeTimeType'; +import { GetChargesCurrencyResponse } from './getChargesCurrencyResponse'; + + +/** + * GetSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse + */ +export interface GetSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse { + amount?: number; + amountOrPercentage?: number; + amountOutstanding?: number; + amountPaid?: number; + amountPercentageAppliedTo?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetChargesChargeCalculationType; + chargeId?: number; + chargeTimeType?: GetChargesChargeTimeType; + currency?: GetChargesCurrencyResponse; + id?: number; + name?: string; + penalty?: boolean; + percentage?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesTemplateResponse.ts b/packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesTemplateResponse.ts new file mode 100644 index 0000000000..2de0a69aa7 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsAccountsSavingsAccountIdChargesTemplateResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsChargesOptions } from './getSavingsChargesOptions'; + + +/** + * GetSavingsAccountsSavingsAccountIdChargesTemplateResponse + */ +export interface GetSavingsAccountsSavingsAccountIdChargesTemplateResponse { + amountPaid?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeOptions?: Set; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSavingsAccountsSummary.ts b/packages/fineract-client/src/models/getSavingsAccountsSummary.ts new file mode 100644 index 0000000000..a4e6ac161f --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsAccountsSummary.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsCurrency } from './getSavingsCurrency'; + + +export interface GetSavingsAccountsSummary { + accountBalance?: number; + availableBalance?: number; + currency?: GetSavingsCurrency; +} + diff --git a/packages/fineract-client/src/models/getSavingsAccountsTemplateResponse.ts b/packages/fineract-client/src/models/getSavingsAccountsTemplateResponse.ts new file mode 100644 index 0000000000..7908eb3495 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsAccountsTemplateResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductOptions } from './getSavingsProductOptions'; + + +/** + * GetSavingsAccountsTemplateResponse + */ +export interface GetSavingsAccountsTemplateResponse { + clientId?: number; + clientName?: string; + productOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getSavingsAssetLiabilityType.ts b/packages/fineract-client/src/models/getSavingsAssetLiabilityType.ts new file mode 100644 index 0000000000..9a00e97db7 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsAssetLiabilityType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsAssetLiabilityType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsChargeCalculationType.ts b/packages/fineract-client/src/models/getSavingsChargeCalculationType.ts new file mode 100644 index 0000000000..b621d9368c --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsChargePaymentMode.ts b/packages/fineract-client/src/models/getSavingsChargePaymentMode.ts new file mode 100644 index 0000000000..b8a90a25eb --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsChargePaymentMode.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsChargePaymentMode { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsChargeTimeType.ts b/packages/fineract-client/src/models/getSavingsChargeTimeType.ts new file mode 100644 index 0000000000..c82be74f19 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsChargesChargeTimeType.ts b/packages/fineract-client/src/models/getSavingsChargesChargeTimeType.ts new file mode 100644 index 0000000000..4d35c8879c --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsChargesChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsChargesChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsChargesOptions.ts b/packages/fineract-client/src/models/getSavingsChargesOptions.ts new file mode 100644 index 0000000000..75cf5c7928 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsChargesOptions.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetChargesAppliesTo } from './getChargesAppliesTo'; +import { GetSavingsChargesChargeTimeType } from './getSavingsChargesChargeTimeType'; +import { GetChargesChargeCalculationType } from './getChargesChargeCalculationType'; +import { GetChargesCurrencyResponse } from './getChargesCurrencyResponse'; + + +export interface GetSavingsChargesOptions { + active?: boolean; + amount?: number; + chargeCalculationType?: GetChargesChargeCalculationType; + chargeTimeType?: GetSavingsChargesChargeTimeType; + chargesAppliesTo?: GetChargesAppliesTo; + currency?: GetChargesCurrencyResponse; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSavingsCurrency.ts b/packages/fineract-client/src/models/getSavingsCurrency.ts new file mode 100644 index 0000000000..046ed4043b --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsInterestCalculationDaysInYearType.ts b/packages/fineract-client/src/models/getSavingsInterestCalculationDaysInYearType.ts new file mode 100644 index 0000000000..d544f046f9 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsInterestCalculationDaysInYearType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsInterestCalculationDaysInYearType { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsInterestCalculationType.ts b/packages/fineract-client/src/models/getSavingsInterestCalculationType.ts new file mode 100644 index 0000000000..7237b87533 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsInterestCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsInterestCalculationType { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsInterestCompoundingPeriodType.ts b/packages/fineract-client/src/models/getSavingsInterestCompoundingPeriodType.ts new file mode 100644 index 0000000000..45324c446f --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsInterestCompoundingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsInterestCompoundingPeriodType { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsInterestPostingPeriodType.ts b/packages/fineract-client/src/models/getSavingsInterestPostingPeriodType.ts new file mode 100644 index 0000000000..73722acf2b --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsInterestPostingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsInterestPostingPeriodType { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsPageItems.ts b/packages/fineract-client/src/models/getSavingsPageItems.ts new file mode 100644 index 0000000000..1bbd68f7fb --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsPageItems.ts @@ -0,0 +1,40 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsInterestCalculationType } from './getSavingsInterestCalculationType'; +import { GetSavingsCurrency } from './getSavingsCurrency'; +import { GetSavingsSummary } from './getSavingsSummary'; +import { GetSavingsInterestCalculationDaysInYearType } from './getSavingsInterestCalculationDaysInYearType'; +import { GetSavingsInterestCompoundingPeriodType } from './getSavingsInterestCompoundingPeriodType'; +import { GetSavingsTimeline } from './getSavingsTimeline'; +import { GetSavingsInterestPostingPeriodType } from './getSavingsInterestPostingPeriodType'; +import { GetSavingsStatus } from './getSavingsStatus'; + + +export interface GetSavingsPageItems { + accountNo?: string; + clientId?: number; + clientName?: string; + currency?: GetSavingsCurrency; + fieldOfficerId?: number; + id?: number; + interestCalculationDaysInYearType?: GetSavingsInterestCalculationDaysInYearType; + interestCalculationType?: GetSavingsInterestCalculationType; + interestCompoundingPeriodType?: GetSavingsInterestCompoundingPeriodType; + interestPostingPeriodType?: GetSavingsInterestPostingPeriodType; + nominalAnnualInterestRate?: number; + savingsProductId?: number; + savingsProductName?: string; + status?: GetSavingsStatus; + summary?: GetSavingsSummary; + timeline?: GetSavingsTimeline; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductOptions.ts b/packages/fineract-client/src/models/getSavingsProductOptions.ts new file mode 100644 index 0000000000..34e13759af --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductOptions.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductOptions { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsAccountingMappingOptions.ts b/packages/fineract-client/src/models/getSavingsProductsAccountingMappingOptions.ts new file mode 100644 index 0000000000..ade8ce678b --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsAccountingMappingOptions.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsAssetAccountOptions } from './getSavingsProductsAssetAccountOptions'; +import { GetSavingsProductsExpenseAccountOptions } from './getSavingsProductsExpenseAccountOptions'; +import { GetSavingsProductsLiabilityAccountOptions } from './getSavingsProductsLiabilityAccountOptions'; +import { GetSavingsProductsIncomeAccountOptions } from './getSavingsProductsIncomeAccountOptions'; + + +export interface GetSavingsProductsAccountingMappingOptions { + assetAccountOptions?: Set; + expenseAccountOptions?: Set; + incomeAccountOptions?: Set; + liabilityAccountOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsAccountingMappings.ts b/packages/fineract-client/src/models/getSavingsProductsAccountingMappings.ts new file mode 100644 index 0000000000..1ad95808f6 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsAccountingMappings.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsIncomeFromFeeAccount } from './getSavingsProductsIncomeFromFeeAccount'; +import { GetSavingsProductsSavingsControlAccount } from './getSavingsProductsSavingsControlAccount'; +import { GetSavingsProductsTransfersInSuspenseAccount } from './getSavingsProductsTransfersInSuspenseAccount'; +import { GetSavingsProductsSavingsReferenceAccount } from './getSavingsProductsSavingsReferenceAccount'; +import { GetSavingsProductsInterestOnSavingsAccount } from './getSavingsProductsInterestOnSavingsAccount'; +import { GetSavingsProductsIncomeFromPenaltyAccount } from './getSavingsProductsIncomeFromPenaltyAccount'; + + +export interface GetSavingsProductsAccountingMappings { + incomeFromFeeAccount?: GetSavingsProductsIncomeFromFeeAccount; + incomeFromPenaltyAccount?: GetSavingsProductsIncomeFromPenaltyAccount; + interestOnSavingsAccount?: GetSavingsProductsInterestOnSavingsAccount; + savingsControlAccount?: GetSavingsProductsSavingsControlAccount; + savingsReferenceAccount?: GetSavingsProductsSavingsReferenceAccount; + transfersInSuspenseAccount?: GetSavingsProductsTransfersInSuspenseAccount; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsAccountingRule.ts b/packages/fineract-client/src/models/getSavingsProductsAccountingRule.ts new file mode 100644 index 0000000000..c3531a77b5 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsAccountingRule.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsAccountingRule { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsAssetAccountOptions.ts b/packages/fineract-client/src/models/getSavingsProductsAssetAccountOptions.ts new file mode 100644 index 0000000000..9ef321dea1 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsAssetAccountOptions.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsLiabilityUsage } from './getSavingsProductsLiabilityUsage'; +import { GetSavingsAssetLiabilityType } from './getSavingsAssetLiabilityType'; + + +export interface GetSavingsProductsAssetAccountOptions { + disabled?: boolean; + glCode?: number; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + tagId?: object; + type?: GetSavingsAssetLiabilityType; + usage?: GetSavingsProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsChargeAppliesTo.ts b/packages/fineract-client/src/models/getSavingsProductsChargeAppliesTo.ts new file mode 100644 index 0000000000..68750aa808 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsChargeAppliesTo.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsChargeAppliesTo { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsChargeOptions.ts b/packages/fineract-client/src/models/getSavingsProductsChargeOptions.ts new file mode 100644 index 0000000000..60b18beb43 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsChargeOptions.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsChargeAppliesTo } from './getSavingsProductsChargeAppliesTo'; +import { GetSavingsCurrency } from './getSavingsCurrency'; +import { GetSavingsChargePaymentMode } from './getSavingsChargePaymentMode'; +import { GetSavingsChargeCalculationType } from './getSavingsChargeCalculationType'; +import { GetSavingsChargeTimeType } from './getSavingsChargeTimeType'; + + +export interface GetSavingsProductsChargeOptions { + active?: boolean; + amount?: number; + chargeAppliesTo?: GetSavingsProductsChargeAppliesTo; + chargeCalculationType?: GetSavingsChargeCalculationType; + chargePaymentMode?: GetSavingsChargePaymentMode; + chargeTimeType?: GetSavingsChargeTimeType; + currency?: GetSavingsCurrency; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsExpenseAccountOptions.ts b/packages/fineract-client/src/models/getSavingsProductsExpenseAccountOptions.ts new file mode 100644 index 0000000000..457908d41b --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsExpenseAccountOptions.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsLiabilityUsage } from './getSavingsProductsLiabilityUsage'; +import { GetSavingsProductsExpenseType } from './getSavingsProductsExpenseType'; + + +export interface GetSavingsProductsExpenseAccountOptions { + disabled?: boolean; + glCode?: number; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + tagId?: object; + type?: GetSavingsProductsExpenseType; + usage?: GetSavingsProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsExpenseType.ts b/packages/fineract-client/src/models/getSavingsProductsExpenseType.ts new file mode 100644 index 0000000000..9c1ace4cbb --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsExpenseType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsExpenseType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappings.ts b/packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappings.ts new file mode 100644 index 0000000000..c1da93a12d --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappings.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsFeeToIncomeAccountMappingsIncomeAccount } from './getSavingsProductsFeeToIncomeAccountMappingsIncomeAccount'; +import { GetSavingsProductsFeeToIncomeAccountMappingsCharge } from './getSavingsProductsFeeToIncomeAccountMappingsCharge'; + + +export interface GetSavingsProductsFeeToIncomeAccountMappings { + charge?: GetSavingsProductsFeeToIncomeAccountMappingsCharge; + incomeAccount?: GetSavingsProductsFeeToIncomeAccountMappingsIncomeAccount; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappingsCharge.ts b/packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappingsCharge.ts new file mode 100644 index 0000000000..4407e6c909 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappingsCharge.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsFeeToIncomeAccountMappingsCharge { + active?: boolean; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappingsIncomeAccount.ts b/packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappingsIncomeAccount.ts new file mode 100644 index 0000000000..8c72b5abc8 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsFeeToIncomeAccountMappingsIncomeAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsFeeToIncomeAccountMappingsIncomeAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsFundSourceAccount.ts b/packages/fineract-client/src/models/getSavingsProductsFundSourceAccount.ts new file mode 100644 index 0000000000..54df1050e8 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsFundSourceAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsFundSourceAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsIncomeAccountOptions.ts b/packages/fineract-client/src/models/getSavingsProductsIncomeAccountOptions.ts new file mode 100644 index 0000000000..6d4641512d --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsIncomeAccountOptions.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsLiabilityUsage } from './getSavingsProductsLiabilityUsage'; +import { GetSavingsProductsIncomeType } from './getSavingsProductsIncomeType'; + + +export interface GetSavingsProductsIncomeAccountOptions { + disabled?: boolean; + glCode?: number; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + tagId?: object; + type?: GetSavingsProductsIncomeType; + usage?: GetSavingsProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsIncomeFromFeeAccount.ts b/packages/fineract-client/src/models/getSavingsProductsIncomeFromFeeAccount.ts new file mode 100644 index 0000000000..e42221625d --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsIncomeFromFeeAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsIncomeFromFeeAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsIncomeFromPenaltyAccount.ts b/packages/fineract-client/src/models/getSavingsProductsIncomeFromPenaltyAccount.ts new file mode 100644 index 0000000000..1cef3824f6 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsIncomeFromPenaltyAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsIncomeFromPenaltyAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsIncomeType.ts b/packages/fineract-client/src/models/getSavingsProductsIncomeType.ts new file mode 100644 index 0000000000..c69b29d25b --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsIncomeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsIncomeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsInterestCalculationDaysInYearType.ts b/packages/fineract-client/src/models/getSavingsProductsInterestCalculationDaysInYearType.ts new file mode 100644 index 0000000000..5745c39087 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsInterestCalculationDaysInYearType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsInterestCalculationDaysInYearType { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsInterestCalculationType.ts b/packages/fineract-client/src/models/getSavingsProductsInterestCalculationType.ts new file mode 100644 index 0000000000..8563867a7f --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsInterestCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsInterestCalculationType { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsInterestCompoundingPeriodType.ts b/packages/fineract-client/src/models/getSavingsProductsInterestCompoundingPeriodType.ts new file mode 100644 index 0000000000..cc99ee758e --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsInterestCompoundingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsInterestCompoundingPeriodType { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsInterestOnSavingsAccount.ts b/packages/fineract-client/src/models/getSavingsProductsInterestOnSavingsAccount.ts new file mode 100644 index 0000000000..3b1ed7662f --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsInterestOnSavingsAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsInterestOnSavingsAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsInterestPostingPeriodType.ts b/packages/fineract-client/src/models/getSavingsProductsInterestPostingPeriodType.ts new file mode 100644 index 0000000000..468ab32d69 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsInterestPostingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsInterestPostingPeriodType { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsLiabilityAccountOptions.ts b/packages/fineract-client/src/models/getSavingsProductsLiabilityAccountOptions.ts new file mode 100644 index 0000000000..db01351f09 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsLiabilityAccountOptions.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsLiabilityUsage } from './getSavingsProductsLiabilityUsage'; +import { GetSavingsProductsLiabilityTagId } from './getSavingsProductsLiabilityTagId'; +import { GetSavingsProductsLiabilityType } from './getSavingsProductsLiabilityType'; + + +export interface GetSavingsProductsLiabilityAccountOptions { + disabled?: boolean; + glCode?: number; + id?: number; + manualEntriesAllowed?: boolean; + name?: string; + nameDecorated?: string; + tagId?: GetSavingsProductsLiabilityTagId; + type?: GetSavingsProductsLiabilityType; + usage?: GetSavingsProductsLiabilityUsage; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsLiabilityTagId.ts b/packages/fineract-client/src/models/getSavingsProductsLiabilityTagId.ts new file mode 100644 index 0000000000..c3980bdb3f --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsLiabilityTagId.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsLiabilityTagId { + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsLiabilityType.ts b/packages/fineract-client/src/models/getSavingsProductsLiabilityType.ts new file mode 100644 index 0000000000..16dbe07438 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsLiabilityType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsLiabilityType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsLiabilityUsage.ts b/packages/fineract-client/src/models/getSavingsProductsLiabilityUsage.ts new file mode 100644 index 0000000000..b433485d96 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsLiabilityUsage.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsLiabilityUsage { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsLockinPeriodFrequencyTypeOptions.ts b/packages/fineract-client/src/models/getSavingsProductsLockinPeriodFrequencyTypeOptions.ts new file mode 100644 index 0000000000..8b6ee5eca9 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsLockinPeriodFrequencyTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsLockinPeriodFrequencyTypeOptions { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsPaymentChannelToFundSourceMappings.ts b/packages/fineract-client/src/models/getSavingsProductsPaymentChannelToFundSourceMappings.ts new file mode 100644 index 0000000000..b31e5e08f6 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsPaymentChannelToFundSourceMappings.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsPaymentType } from './getSavingsProductsPaymentType'; +import { GetSavingsProductsFundSourceAccount } from './getSavingsProductsFundSourceAccount'; + + +export interface GetSavingsProductsPaymentChannelToFundSourceMappings { + fundSourceAccount?: GetSavingsProductsFundSourceAccount; + paymentType?: GetSavingsProductsPaymentType; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsPaymentType.ts b/packages/fineract-client/src/models/getSavingsProductsPaymentType.ts new file mode 100644 index 0000000000..5215a1c44f --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsPaymentType.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsPaymentType { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsPaymentTypeOptions.ts b/packages/fineract-client/src/models/getSavingsProductsPaymentTypeOptions.ts new file mode 100644 index 0000000000..c847efdb4a --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsPaymentTypeOptions.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsPaymentTypeOptions { + description?: string; + id?: number; + isCashPayment?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsPenaltyToIncomeAccountMappings.ts b/packages/fineract-client/src/models/getSavingsProductsPenaltyToIncomeAccountMappings.ts new file mode 100644 index 0000000000..23260e71e7 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsPenaltyToIncomeAccountMappings.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsPenaltyToIncomeAccountMappingsCharge } from './getSavingsProductsPenaltyToIncomeAccountMappingsCharge'; +import { GetSavingsProductsIncomeFromPenaltyAccount } from './getSavingsProductsIncomeFromPenaltyAccount'; + + +export interface GetSavingsProductsPenaltyToIncomeAccountMappings { + charge?: GetSavingsProductsPenaltyToIncomeAccountMappingsCharge; + incomeAccount?: GetSavingsProductsIncomeFromPenaltyAccount; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsPenaltyToIncomeAccountMappingsCharge.ts b/packages/fineract-client/src/models/getSavingsProductsPenaltyToIncomeAccountMappingsCharge.ts new file mode 100644 index 0000000000..c19986d645 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsPenaltyToIncomeAccountMappingsCharge.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsPenaltyToIncomeAccountMappingsCharge { + active?: boolean; + id?: number; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsProductIdResponse.ts b/packages/fineract-client/src/models/getSavingsProductsProductIdResponse.ts new file mode 100644 index 0000000000..3de500bcc3 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsProductIdResponse.ts @@ -0,0 +1,46 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsInterestCalculationDaysInYearType } from './getSavingsProductsInterestCalculationDaysInYearType'; +import { GetSavingsProductsPaymentChannelToFundSourceMappings } from './getSavingsProductsPaymentChannelToFundSourceMappings'; +import { GetSavingsProductsInterestCalculationType } from './getSavingsProductsInterestCalculationType'; +import { GetSavingsCurrency } from './getSavingsCurrency'; +import { GetSavingsProductsFeeToIncomeAccountMappings } from './getSavingsProductsFeeToIncomeAccountMappings'; +import { GetSavingsProductsInterestCompoundingPeriodType } from './getSavingsProductsInterestCompoundingPeriodType'; +import { GetSavingsProductsAccountingMappings } from './getSavingsProductsAccountingMappings'; +import { GetSavingsProductsInterestPostingPeriodType } from './getSavingsProductsInterestPostingPeriodType'; +import { GetSavingsProductsPenaltyToIncomeAccountMappings } from './getSavingsProductsPenaltyToIncomeAccountMappings'; +import { GetSavingsProductsAccountingRule } from './getSavingsProductsAccountingRule'; + + +/** + * GetSavingsProductsProductIdResponse + */ +export interface GetSavingsProductsProductIdResponse { + accountingMappings?: GetSavingsProductsAccountingMappings; + accountingRule?: GetSavingsProductsAccountingRule; + charges?: Array; + currency?: GetSavingsCurrency; + description?: string; + feeToIncomeAccountMappings?: Set; + id?: number; + interestCalculationDaysInYearType?: GetSavingsProductsInterestCalculationDaysInYearType; + interestCalculationType?: GetSavingsProductsInterestCalculationType; + interestCompoundingPeriodType?: GetSavingsProductsInterestCompoundingPeriodType; + interestPostingPeriodType?: GetSavingsProductsInterestPostingPeriodType; + name?: string; + nominalAnnualInterestRate?: number; + paymentChannelToFundSourceMappings?: Set; + penaltyToIncomeAccountMappings?: Set; + shortName?: string; + withdrawalFeeForTransfers?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsResponse.ts b/packages/fineract-client/src/models/getSavingsProductsResponse.ts new file mode 100644 index 0000000000..96fe8d079f --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsResponse.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsInterestCalculationDaysInYearType } from './getSavingsProductsInterestCalculationDaysInYearType'; +import { GetSavingsProductsInterestCalculationType } from './getSavingsProductsInterestCalculationType'; +import { GetSavingsCurrency } from './getSavingsCurrency'; +import { GetSavingsProductsInterestCompoundingPeriodType } from './getSavingsProductsInterestCompoundingPeriodType'; +import { GetSavingsProductsInterestPostingPeriodType } from './getSavingsProductsInterestPostingPeriodType'; +import { GetSavingsProductsAccountingRule } from './getSavingsProductsAccountingRule'; + + +/** + * GetSavingsProductsResponse + */ +export interface GetSavingsProductsResponse { + accountingRule?: GetSavingsProductsAccountingRule; + currency?: GetSavingsCurrency; + description?: string; + id?: number; + interestCalculationDaysInYearType?: GetSavingsProductsInterestCalculationDaysInYearType; + interestCalculationType?: GetSavingsProductsInterestCalculationType; + interestCompoundingPeriodType?: GetSavingsProductsInterestCompoundingPeriodType; + interestPostingPeriodType?: GetSavingsProductsInterestPostingPeriodType; + name?: string; + nominalAnnualInterestRate?: number; + shortName?: string; + withdrawalFeeForTransfers?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsSavingsControlAccount.ts b/packages/fineract-client/src/models/getSavingsProductsSavingsControlAccount.ts new file mode 100644 index 0000000000..d70849fd6d --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsSavingsControlAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsSavingsControlAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsSavingsReferenceAccount.ts b/packages/fineract-client/src/models/getSavingsProductsSavingsReferenceAccount.ts new file mode 100644 index 0000000000..d7acfad1a2 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsSavingsReferenceAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsSavingsReferenceAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsTemplateAccountingRule.ts b/packages/fineract-client/src/models/getSavingsProductsTemplateAccountingRule.ts new file mode 100644 index 0000000000..1ea9553f97 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsTemplateAccountingRule.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsTemplateAccountingRule { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsTemplateResponse.ts b/packages/fineract-client/src/models/getSavingsProductsTemplateResponse.ts new file mode 100644 index 0000000000..471055eaf4 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsTemplateResponse.ts @@ -0,0 +1,48 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsProductsInterestCalculationDaysInYearType } from './getSavingsProductsInterestCalculationDaysInYearType'; +import { GetSavingsProductsPaymentTypeOptions } from './getSavingsProductsPaymentTypeOptions'; +import { GetSavingsProductsChargeOptions } from './getSavingsProductsChargeOptions'; +import { GetSavingsProductsInterestCalculationType } from './getSavingsProductsInterestCalculationType'; +import { GetSavingsCurrency } from './getSavingsCurrency'; +import { GetSavingsProductsInterestCompoundingPeriodType } from './getSavingsProductsInterestCompoundingPeriodType'; +import { GetSavingsProductsAccountingMappingOptions } from './getSavingsProductsAccountingMappingOptions'; +import { GetSavingsProductsInterestPostingPeriodType } from './getSavingsProductsInterestPostingPeriodType'; +import { GetSavingsProductsTemplateAccountingRule } from './getSavingsProductsTemplateAccountingRule'; +import { GetSavingsProductsWithdrawalFeeTypeOptions } from './getSavingsProductsWithdrawalFeeTypeOptions'; +import { GetSavingsProductsLockinPeriodFrequencyTypeOptions } from './getSavingsProductsLockinPeriodFrequencyTypeOptions'; + + +/** + * GetSavingsProductsTemplateResponse + */ +export interface GetSavingsProductsTemplateResponse { + accountMapping?: GetSavingsCurrency; + accountingMappingOptions?: GetSavingsProductsAccountingMappingOptions; + accountingRule?: GetSavingsProductsTemplateAccountingRule; + accountingRuleOptions?: Set; + chargeOptions?: Set; + currency?: GetSavingsCurrency; + currencyOptions?: Set; + interestCalculationDaysInYearType?: GetSavingsProductsInterestCalculationDaysInYearType; + interestCalculationDaysInYearTypeOptions?: Set; + interestCalculationType?: GetSavingsProductsInterestCalculationType; + interestCalculationTypeOptions?: Set; + interestCompoundingPeriodType?: GetSavingsProductsInterestCompoundingPeriodType; + interestCompoundingPeriodTypeOptions?: Set; + interestPostingPeriodType?: GetSavingsProductsInterestPostingPeriodType; + interestPostingPeriodTypeOptions?: Set; + lockinPeriodFrequencyTypeOptions?: Set; + paymentTypeOptions?: Set; + withdrawalFeeTypeOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsTransfersInSuspenseAccount.ts b/packages/fineract-client/src/models/getSavingsProductsTransfersInSuspenseAccount.ts new file mode 100644 index 0000000000..df56814ec4 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsTransfersInSuspenseAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsTransfersInSuspenseAccount { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsProductsWithdrawalFeeTypeOptions.ts b/packages/fineract-client/src/models/getSavingsProductsWithdrawalFeeTypeOptions.ts new file mode 100644 index 0000000000..43c202cf76 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsProductsWithdrawalFeeTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsProductsWithdrawalFeeTypeOptions { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/getSavingsStatus.ts b/packages/fineract-client/src/models/getSavingsStatus.ts new file mode 100644 index 0000000000..2ffdf7bd3e --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsStatus.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsStatus { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + id?: number; + rejected?: boolean; + submittedAndPendingApproval?: boolean; + value?: string; + withdrawnByApplicant?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSavingsSummary.ts b/packages/fineract-client/src/models/getSavingsSummary.ts new file mode 100644 index 0000000000..f91f367ed0 --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsSummary.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsCurrency } from './getSavingsCurrency'; + + +export interface GetSavingsSummary { + accountBalance?: number; + currency?: GetSavingsCurrency; +} + diff --git a/packages/fineract-client/src/models/getSavingsTimeline.ts b/packages/fineract-client/src/models/getSavingsTimeline.ts new file mode 100644 index 0000000000..fcb2a7962f --- /dev/null +++ b/packages/fineract-client/src/models/getSavingsTimeline.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSavingsTimeline { + activatedOnDate?: string; + approvedByFirstname?: string; + approvedByLastname?: string; + approvedByUsername?: string; + approvedOnDate?: string; + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getSchedulerResponse.ts b/packages/fineract-client/src/models/getSchedulerResponse.ts new file mode 100644 index 0000000000..3ff599b772 --- /dev/null +++ b/packages/fineract-client/src/models/getSchedulerResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetSchedulerResponse + */ +export interface GetSchedulerResponse { + active?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSearchResponse.ts b/packages/fineract-client/src/models/getSearchResponse.ts new file mode 100644 index 0000000000..efc1084aeb --- /dev/null +++ b/packages/fineract-client/src/models/getSearchResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +/** + * GetSearchResponse + */ +export interface GetSearchResponse { + entityAccountNo?: number; + entityExternalId?: string; + entityId?: number; + entityName?: string; + entityStatus?: EnumOptionData; + entityType?: string; + parentId?: number; + parentName?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfBeneficiariesAccountOptions.ts b/packages/fineract-client/src/models/getSelfBeneficiariesAccountOptions.ts new file mode 100644 index 0000000000..50e99767ea --- /dev/null +++ b/packages/fineract-client/src/models/getSelfBeneficiariesAccountOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfBeneficiariesAccountOptions { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfBeneficiariesTPTResponse.ts b/packages/fineract-client/src/models/getSelfBeneficiariesTPTResponse.ts new file mode 100644 index 0000000000..7b7b659ea2 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfBeneficiariesTPTResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfBeneficiariesAccountOptions } from './getSelfBeneficiariesAccountOptions'; + + +/** + * GetSelfBeneficiariesTPTResponse + */ +export interface GetSelfBeneficiariesTPTResponse { + accountNumber?: number; + accountType?: GetSelfBeneficiariesAccountOptions; + clientName?: string; + id?: number; + name?: string; + officeName?: string; + transferLimit?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfBeneficiariesTPTTemplateResponse.ts b/packages/fineract-client/src/models/getSelfBeneficiariesTPTTemplateResponse.ts new file mode 100644 index 0000000000..e46e137fbf --- /dev/null +++ b/packages/fineract-client/src/models/getSelfBeneficiariesTPTTemplateResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfBeneficiariesAccountOptions } from './getSelfBeneficiariesAccountOptions'; + + +/** + * GetSelfBeneficiariesTPTTemplateResponse + */ +export interface GetSelfBeneficiariesTPTTemplateResponse { + accountTypeOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsChargeCalculationType.ts b/packages/fineract-client/src/models/getSelfClientsChargeCalculationType.ts new file mode 100644 index 0000000000..1ae2dd9fca --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfClientsChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsChargeTimeType.ts b/packages/fineract-client/src/models/getSelfClientsChargeTimeType.ts new file mode 100644 index 0000000000..71d1995257 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfClientsChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsChargesPageItems.ts b/packages/fineract-client/src/models/getSelfClientsChargesPageItems.ts new file mode 100644 index 0000000000..7bee727ee2 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsChargesPageItems.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsChargeCalculationType } from './getSelfClientsChargeCalculationType'; +import { GetSelfClientsChargeTimeType } from './getSelfClientsChargeTimeType'; +import { GetSelfClientsSavingsAccountsCurrency } from './getSelfClientsSavingsAccountsCurrency'; + + +export interface GetSelfClientsChargesPageItems { + amount?: number; + amountOutstanding?: number; + amountPaid?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetSelfClientsChargeCalculationType; + chargeId?: number; + chargeTimeType?: GetSelfClientsChargeTimeType; + clientId?: number; + currency?: GetSelfClientsSavingsAccountsCurrency; + dueDate?: string; + id?: number; + isActive?: boolean; + isPaid?: boolean; + isWaived?: boolean; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsClientIdAccountsResponse.ts b/packages/fineract-client/src/models/getSelfClientsClientIdAccountsResponse.ts new file mode 100644 index 0000000000..a638a6cf77 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsClientIdAccountsResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsLoanAccounts } from './getSelfClientsLoanAccounts'; +import { GetSelfClientsSavingsAccounts } from './getSelfClientsSavingsAccounts'; + + +/** + * GetSelfClientsClientIdAccountsResponse + */ +export interface GetSelfClientsClientIdAccountsResponse { + loanAccounts?: Set; + savingsAccounts?: Set; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsClientIdChargesChargeIdResponse.ts b/packages/fineract-client/src/models/getSelfClientsClientIdChargesChargeIdResponse.ts new file mode 100644 index 0000000000..b0206b1de3 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsClientIdChargesChargeIdResponse.ts @@ -0,0 +1,39 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsChargeCalculationType } from './getSelfClientsChargeCalculationType'; +import { GetSelfClientsChargeTimeType } from './getSelfClientsChargeTimeType'; +import { GetSelfClientsSavingsAccountsCurrency } from './getSelfClientsSavingsAccountsCurrency'; + + +/** + * GetSelfClientsClientIdChargesChargeIdResponse + */ +export interface GetSelfClientsClientIdChargesChargeIdResponse { + amount?: number; + amountOutstanding?: number; + amountPaid?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetSelfClientsChargeCalculationType; + chargeId?: number; + chargeTimeType?: GetSelfClientsChargeTimeType; + clientId?: number; + currency?: GetSelfClientsSavingsAccountsCurrency; + dueDate?: string; + id?: number; + isActive?: boolean; + isPaid?: boolean; + isWaived?: boolean; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsClientIdChargesResponse.ts b/packages/fineract-client/src/models/getSelfClientsClientIdChargesResponse.ts new file mode 100644 index 0000000000..1390180786 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsClientIdChargesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsChargesPageItems } from './getSelfClientsChargesPageItems'; + + +/** + * GetSelfClientsClientIdChargesResponse + */ +export interface GetSelfClientsClientIdChargesResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsClientIdResponse.ts b/packages/fineract-client/src/models/getSelfClientsClientIdResponse.ts new file mode 100644 index 0000000000..94e68d5c66 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsClientIdResponse.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsTimeline } from './getSelfClientsTimeline'; +import { GetSelfClientsStatus } from './getSelfClientsStatus'; + + +/** + * GetSelfClientsClientIdResponse + */ +export interface GetSelfClientsClientIdResponse { + accountNo?: number; + activationDate?: string; + active?: boolean; + displayName?: string; + firstname?: string; + groups?: Array; + id?: number; + lastname?: string; + officeId?: number; + officeName?: string; + savingsProductId?: number; + savingsProductName?: string; + status?: GetSelfClientsStatus; + timeline?: GetSelfClientsTimeline; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsPageItems.ts b/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsPageItems.ts new file mode 100644 index 0000000000..f4b6bdc0ed --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsPageItems.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsSavingsAccountsCurrency } from './getSelfClientsSavingsAccountsCurrency'; +import { GetSelfClientsClientIdTransactionsType } from './getSelfClientsClientIdTransactionsType'; + + +export interface GetSelfClientsClientIdTransactionsPageItems { + amount?: number; + currency?: GetSelfClientsSavingsAccountsCurrency; + date?: string; + id?: number; + officeId?: number; + officeName?: string; + reversed?: boolean; + submittedOnDate?: string; + type?: GetSelfClientsClientIdTransactionsType; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsResponse.ts b/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsResponse.ts new file mode 100644 index 0000000000..2b08a6784e --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsClientIdTransactionsPageItems } from './getSelfClientsClientIdTransactionsPageItems'; + + +/** + * GetSelfClientsClientIdTransactionsResponse + */ +export interface GetSelfClientsClientIdTransactionsResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsTransactionIdResponse.ts b/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsTransactionIdResponse.ts new file mode 100644 index 0000000000..4edacb9125 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsTransactionIdResponse.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsSavingsAccountsCurrency } from './getSelfClientsSavingsAccountsCurrency'; +import { GetSelfClientsClientIdTransactionsType } from './getSelfClientsClientIdTransactionsType'; + + +/** + * GetSelfClientsClientIdTransactionsTransactionIdResponse + */ +export interface GetSelfClientsClientIdTransactionsTransactionIdResponse { + amount?: number; + currency?: GetSelfClientsSavingsAccountsCurrency; + date?: string; + id?: number; + officeId?: number; + officeName?: string; + reversed?: boolean; + submittedOnDate?: string; + type?: GetSelfClientsClientIdTransactionsType; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsType.ts b/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsType.ts new file mode 100644 index 0000000000..f261cdb0c2 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsClientIdTransactionsType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfClientsClientIdTransactionsType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsLoanAccounts.ts b/packages/fineract-client/src/models/getSelfClientsLoanAccounts.ts new file mode 100644 index 0000000000..3bba4f2a76 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsLoanAccounts.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsLoanAccountsStatus } from './getSelfClientsLoanAccountsStatus'; +import { GetSelfClientsLoanAccountsType } from './getSelfClientsLoanAccountsType'; + + +export interface GetSelfClientsLoanAccounts { + accountNo?: number; + externalId?: number; + id?: number; + loanCycle?: number; + loanType?: GetSelfClientsLoanAccountsType; + productId?: number; + productName?: string; + status?: GetSelfClientsLoanAccountsStatus; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsLoanAccountsStatus.ts b/packages/fineract-client/src/models/getSelfClientsLoanAccountsStatus.ts new file mode 100644 index 0000000000..103020ba73 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsLoanAccountsStatus.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfClientsLoanAccountsStatus { + active?: boolean; + closed?: boolean; + closedObligationsMet?: boolean; + closedRescheduled?: boolean; + closedWrittenOff?: boolean; + code?: string; + description?: string; + id?: number; + overpaid?: boolean; + pendingApproval?: boolean; + waitingForDisbursal?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsLoanAccountsType.ts b/packages/fineract-client/src/models/getSelfClientsLoanAccountsType.ts new file mode 100644 index 0000000000..eb8b6c40bd --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsLoanAccountsType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfClientsLoanAccountsType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsPageItems.ts b/packages/fineract-client/src/models/getSelfClientsPageItems.ts new file mode 100644 index 0000000000..da49335436 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsPageItems.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsStatus } from './getSelfClientsStatus'; + + +export interface GetSelfClientsPageItems { + accountNo?: number; + activationDate?: string; + active?: boolean; + displayName?: string; + fullname?: string; + id?: number; + officeId?: number; + officeName?: string; + status?: GetSelfClientsStatus; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsResponse.ts b/packages/fineract-client/src/models/getSelfClientsResponse.ts new file mode 100644 index 0000000000..5e9db78b9d --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsPageItems } from './getSelfClientsPageItems'; + + +/** + * GetSelfClientsResponse + */ +export interface GetSelfClientsResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsSavingsAccounts.ts b/packages/fineract-client/src/models/getSelfClientsSavingsAccounts.ts new file mode 100644 index 0000000000..8a76c6ba36 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsSavingsAccounts.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfClientsSavingsAccountsCurrency } from './getSelfClientsSavingsAccountsCurrency'; +import { GetSelfClientsSavingsAccountsStatus } from './getSelfClientsSavingsAccountsStatus'; + + +export interface GetSelfClientsSavingsAccounts { + accountNo?: number; + currency?: GetSelfClientsSavingsAccountsCurrency; + id?: number; + productId?: number; + productName?: string; + status?: GetSelfClientsSavingsAccountsStatus; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsSavingsAccountsCurrency.ts b/packages/fineract-client/src/models/getSelfClientsSavingsAccountsCurrency.ts new file mode 100644 index 0000000000..e99f1178dc --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsSavingsAccountsCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfClientsSavingsAccountsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsSavingsAccountsStatus.ts b/packages/fineract-client/src/models/getSelfClientsSavingsAccountsStatus.ts new file mode 100644 index 0000000000..bc1dafa8c8 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsSavingsAccountsStatus.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfClientsSavingsAccountsStatus { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + description?: string; + id?: number; + rejected?: boolean; + submittedAndPendingApproval?: boolean; + withdrawnByApplicant?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsStatus.ts b/packages/fineract-client/src/models/getSelfClientsStatus.ts new file mode 100644 index 0000000000..2cf8e5368f --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsStatus.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfClientsStatus { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfClientsTimeline.ts b/packages/fineract-client/src/models/getSelfClientsTimeline.ts new file mode 100644 index 0000000000..299d28ea59 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfClientsTimeline.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfClientsTimeline { + activatedByFirstname?: string; + activatedByLastname?: string; + activatedByUsername?: string; + activatedOnDate?: string; + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfLoanIdSummary.ts b/packages/fineract-client/src/models/getSelfLoanIdSummary.ts new file mode 100644 index 0000000000..5a0f54fb2d --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoanIdSummary.ts @@ -0,0 +1,77 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansLoanIdLinkedAccount } from './getLoansLoanIdLinkedAccount'; +import { GetLoansLoanIdDisbursementDetails } from './getLoansLoanIdDisbursementDetails'; +import { GetLoansLoanIdOverdueCharges } from './getLoansLoanIdOverdueCharges'; +import { GetLoansLoanIdCurrency } from './getLoansLoanIdCurrency'; + + +export interface GetSelfLoanIdSummary { + canDisburse?: boolean; + currency?: GetLoansLoanIdCurrency; + disbursementDetails?: Set; + emiAmountVariations?: Set; + feeChargesCharged?: number; + feeChargesDueAtDisbursementCharged?: number; + feeChargesOutstanding?: number; + feeChargesOverdue?: number; + feeChargesPaid?: number; + feeChargesWaived?: number; + feeChargesWrittenOff?: number; + fixedEmiAmount?: number; + inArrears?: boolean; + interestCharged?: number; + interestOutstanding?: number; + interestOverdue?: number; + interestPaid?: number; + interestWaived?: number; + interestWrittenOff?: number; + isNPA?: boolean; + linkedAccount?: GetLoansLoanIdLinkedAccount; + maxOutstandingLoanBalance?: number; + overdueCharges?: Set; + overdueSinceDate?: string; + penaltyChargesCharged?: number; + penaltyChargesOutstanding?: number; + penaltyChargesOverdue?: number; + penaltyChargesPaid?: number; + penaltyChargesWaived?: number; + penaltyChargesWrittenOff?: number; + principalAdjustments?: number; + principalDisbursed?: number; + principalOutstanding?: number; + principalOverdue?: number; + principalPaid?: number; + principalWrittenOff?: number; + totalChargeAdjustment?: number; + totalChargeAdjustmentReversed?: number; + totalChargeback?: number; + totalCostOfLoan?: number; + totalCreditBalanceRefund?: number; + totalCreditBalanceRefundReversed?: number; + totalExpectedCostOfLoan?: number; + totalExpectedRepayment?: number; + totalGoodwillCredit?: number; + totalGoodwillCreditReversed?: number; + totalMerchantRefund?: number; + totalMerchantRefundReversed?: number; + totalOutstanding?: number; + totalOverdue?: number; + totalPayoutRefund?: number; + totalPayoutRefundReversed?: number; + totalRepayment?: number; + totalRepaymentTransaction?: number; + totalRepaymentTransactionReversed?: number; + totalWaived?: number; + totalWrittenOff?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfLoanIdTimeline.ts b/packages/fineract-client/src/models/getSelfLoanIdTimeline.ts new file mode 100644 index 0000000000..445d2f1123 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoanIdTimeline.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfLoanIdTimeline { + actualDisbursementDate?: string; + approvedByFirstname?: string; + approvedByLastname?: string; + approvedByUsername?: string; + approvedOnDate?: string; + closedOnDate?: string; + disbursedByFirstname?: string; + disbursedByLastname?: string; + disbursedByUsername?: string; + expectedDisbursementDate?: string; + expectedMaturityDate?: string; + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfLoansChargeCalculationType.ts b/packages/fineract-client/src/models/getSelfLoansChargeCalculationType.ts new file mode 100644 index 0000000000..d6871728a2 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoansChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfLoansChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfLoansChargeTimeType.ts b/packages/fineract-client/src/models/getSelfLoansChargeTimeType.ts new file mode 100644 index 0000000000..b2ae57b979 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoansChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfLoansChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfLoansLoanIdChargesResponse.ts b/packages/fineract-client/src/models/getSelfLoansLoanIdChargesResponse.ts new file mode 100644 index 0000000000..fd8e8adaef --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoansLoanIdChargesResponse.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfLoansChargeCalculationType } from './getSelfLoansChargeCalculationType'; +import { GetLoanCurrency } from './getLoanCurrency'; +import { GetSelfLoansChargeTimeType } from './getSelfLoansChargeTimeType'; + + +/** + * GetSelfLoansLoanIdChargesResponse + */ +export interface GetSelfLoansLoanIdChargesResponse { + amount?: number; + amountOrPercentage?: number; + amountOutstanding?: number; + amountPaid?: number; + amountPercentageAppliedTo?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetSelfLoansChargeCalculationType; + chargeId?: number; + chargeTimeType?: GetSelfLoansChargeTimeType; + currency?: GetLoanCurrency; + id?: number; + name?: string; + penalty?: boolean; + percentage?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfLoansLoanIdResponse.ts b/packages/fineract-client/src/models/getSelfLoansLoanIdResponse.ts new file mode 100644 index 0000000000..c40271acdd --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoansLoanIdResponse.ts @@ -0,0 +1,60 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoansLoanIdStatus } from './getLoansLoanIdStatus'; +import { GetSelfLoanIdTimeline } from './getSelfLoanIdTimeline'; +import { GetLoansLoanIdInterestRateFrequencyType } from './getLoansLoanIdInterestRateFrequencyType'; +import { GetLoansLoanIdInterestType } from './getLoansLoanIdInterestType'; +import { GetLoansLoanIdRepaymentFrequencyType } from './getLoansLoanIdRepaymentFrequencyType'; +import { GetLoansLoanIdLoanType } from './getLoansLoanIdLoanType'; +import { GetSelfLoanIdSummary } from './getSelfLoanIdSummary'; +import { GetLoansLoanIdAmortizationType } from './getLoansLoanIdAmortizationType'; +import { GetLoansLoanIdTermPeriodFrequencyType } from './getLoansLoanIdTermPeriodFrequencyType'; +import { GetLoansLoanIdCurrency } from './getLoansLoanIdCurrency'; +import { GetLoansLoanIdInterestCalculationPeriodType } from './getLoansLoanIdInterestCalculationPeriodType'; + + +/** + * GetSelfLoansLoanIdResponse + */ +export interface GetSelfLoansLoanIdResponse { + accountNo?: number; + amortizationType?: GetLoansLoanIdAmortizationType; + annualInterestRate?: number; + clientId?: number; + clientName?: string; + clientOfficeId?: number; + currency?: GetLoansLoanIdCurrency; + id?: number; + interestCalculationPeriodType?: GetLoansLoanIdInterestCalculationPeriodType; + interestRateFrequencyType?: GetLoansLoanIdInterestRateFrequencyType; + interestRatePerPeriod?: number; + interestType?: GetLoansLoanIdInterestType; + loanOfficerId?: number; + loanOfficerName?: string; + loanProductDescription?: string; + loanProductId?: number; + loanProductName?: string; + loanPurposeId?: number; + loanPurposeName?: string; + loanType?: GetLoansLoanIdLoanType; + numberOfRepayments?: number; + principal?: number; + repaymentEvery?: number; + repaymentFrequencyType?: GetLoansLoanIdRepaymentFrequencyType; + status?: GetLoansLoanIdStatus; + summary?: GetSelfLoanIdSummary; + termFrequency?: number; + termPeriodFrequencyType?: GetLoansLoanIdTermPeriodFrequencyType; + timeline?: GetSelfLoanIdTimeline; + transactionProcessingStrategyCode?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfLoansLoanIdTransactionsTransactionIdResponse.ts b/packages/fineract-client/src/models/getSelfLoansLoanIdTransactionsTransactionIdResponse.ts new file mode 100644 index 0000000000..1a98bbaac9 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoansLoanIdTransactionsTransactionIdResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetLoanCurrency } from './getLoanCurrency'; +import { GetSelfLoansLoanIdTransactionsType } from './getSelfLoansLoanIdTransactionsType'; + + +/** + * GetSelfLoansLoanIdTransactionsTransactionIdResponse + */ +export interface GetSelfLoansLoanIdTransactionsTransactionIdResponse { + amount?: number; + currency?: GetLoanCurrency; + date?: string; + id?: number; + interestPortion?: number; + manuallyReversed?: boolean; + type?: GetSelfLoansLoanIdTransactionsType; +} + diff --git a/packages/fineract-client/src/models/getSelfLoansLoanIdTransactionsType.ts b/packages/fineract-client/src/models/getSelfLoansLoanIdTransactionsType.ts new file mode 100644 index 0000000000..f1be56f73c --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoansLoanIdTransactionsType.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfLoansLoanIdTransactionsType { + code?: string; + contra?: boolean; + description?: string; + disbursement?: boolean; + id?: number; + recoveryRepayment?: boolean; + repayment?: boolean; + repaymentAtDisbursement?: boolean; + waiveCharges?: boolean; + waiveInterest?: boolean; + writeOff?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSelfLoansProductOptions.ts b/packages/fineract-client/src/models/getSelfLoansProductOptions.ts new file mode 100644 index 0000000000..7ead744095 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoansProductOptions.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfLoansProductOptions { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfLoansTemplateResponse.ts b/packages/fineract-client/src/models/getSelfLoansTemplateResponse.ts new file mode 100644 index 0000000000..33fd91607d --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoansTemplateResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfLoansProductOptions } from './getSelfLoansProductOptions'; +import { GetSelfLoansTimeline } from './getSelfLoansTimeline'; + + +/** + * GetSelfLoansTemplateResponse + */ +export interface GetSelfLoansTemplateResponse { + clientId?: number; + clientName?: string; + clientOfficeId?: number; + productOptions?: Set; + timeline?: GetSelfLoansTimeline; +} + diff --git a/packages/fineract-client/src/models/getSelfLoansTimeline.ts b/packages/fineract-client/src/models/getSelfLoansTimeline.ts new file mode 100644 index 0000000000..5742eb954d --- /dev/null +++ b/packages/fineract-client/src/models/getSelfLoansTimeline.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfLoansTimeline { + expectedDisbursementDate?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdChargesResponse.ts b/packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdChargesResponse.ts new file mode 100644 index 0000000000..8cb5ab3a26 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdChargesResponse.ts @@ -0,0 +1,38 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfSavingsChargeTimeType } from './getSelfSavingsChargeTimeType'; +import { GetSelfSavingsCurrency } from './getSelfSavingsCurrency'; +import { GetSelfSavingsChargeCalculationType } from './getSelfSavingsChargeCalculationType'; + + +/** + * GetSelfSavingsAccountsAccountIdChargesResponse + */ +export interface GetSelfSavingsAccountsAccountIdChargesResponse { + accountId?: number; + amount?: number; + amountOrPercentage?: number; + amountOutstanding?: number; + amountPaid?: number; + amountPercentageAppliedTo?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetSelfSavingsChargeCalculationType; + chargeId?: number; + chargeTimeType?: GetSelfSavingsChargeTimeType; + currency?: GetSelfSavingsCurrency; + id?: number; + name?: string; + penalty?: boolean; + percentage?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdChargesSavingsAccountChargeIdResponse.ts b/packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdChargesSavingsAccountChargeIdResponse.ts new file mode 100644 index 0000000000..92c70f4920 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdChargesSavingsAccountChargeIdResponse.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfSavingsChargeTimeType } from './getSelfSavingsChargeTimeType'; +import { GetSelfSavingsCurrency } from './getSelfSavingsCurrency'; +import { GetSelfSavingsChargeCalculationType } from './getSelfSavingsChargeCalculationType'; + + +/** + * GetSelfSavingsAccountsAccountIdChargesSavingsAccountChargeIdResponse + */ +export interface GetSelfSavingsAccountsAccountIdChargesSavingsAccountChargeIdResponse { + amount?: number; + amountOrPercentage?: number; + amountOutstanding?: number; + amountPaid?: number; + amountPercentageAppliedTo?: number; + amountWaived?: number; + amountWrittenOff?: number; + chargeCalculationType?: GetSelfSavingsChargeCalculationType; + chargeId?: number; + chargeTimeType?: GetSelfSavingsChargeTimeType; + currency?: GetSelfSavingsCurrency; + id?: number; + name?: string; + penalty?: boolean; + percentage?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdTransactionsTransactionIdResponse.ts b/packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdTransactionsTransactionIdResponse.ts new file mode 100644 index 0000000000..fdd97af9a2 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsAccountsAccountIdTransactionsTransactionIdResponse.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfSavingsPaymentDetailData } from './getSelfSavingsPaymentDetailData'; +import { GetSelfSavingsTransactionType } from './getSelfSavingsTransactionType'; +import { GetSelfSavingsTransactionCurrency } from './getSelfSavingsTransactionCurrency'; + + +/** + * GetSelfSavingsAccountsAccountIdTransactionsTransactionIdResponse + */ +export interface GetSelfSavingsAccountsAccountIdTransactionsTransactionIdResponse { + accountId?: number; + accountNo?: number; + amount?: number; + currency?: GetSelfSavingsTransactionCurrency; + date?: string; + id?: number; + paymentDetailData?: GetSelfSavingsPaymentDetailData; + reversed?: boolean; + runningBalance?: number; + transactionType?: GetSelfSavingsTransactionType; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsAccountsResponse.ts b/packages/fineract-client/src/models/getSelfSavingsAccountsResponse.ts new file mode 100644 index 0000000000..d572fa2cda --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsAccountsResponse.ts @@ -0,0 +1,43 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfSavingsStatus } from './getSelfSavingsStatus'; +import { GetSelfSavingsTimeline } from './getSelfSavingsTimeline'; +import { GetSelfSavingsCurrency } from './getSelfSavingsCurrency'; +import { GetSelfSavingsSummary } from './getSelfSavingsSummary'; +import { GetSelfSavingsInterestPostingPeriodType } from './getSelfSavingsInterestPostingPeriodType'; +import { GetSelfSavingsInterestCalculationType } from './getSelfSavingsInterestCalculationType'; +import { GetSelfSavingsInterestCalculationDaysInYearType } from './getSelfSavingsInterestCalculationDaysInYearType'; +import { GetSelfSavingsInterestCompoundingPeriodType } from './getSelfSavingsInterestCompoundingPeriodType'; + + +/** + * GetSelfSavingsAccountsResponse + */ +export interface GetSelfSavingsAccountsResponse { + accountNo?: number; + clientId?: number; + clientName?: string; + currency?: GetSelfSavingsCurrency; + fieldOfficerId?: number; + id?: number; + interestCalculationDaysInYearType?: GetSelfSavingsInterestCalculationDaysInYearType; + interestCalculationType?: GetSelfSavingsInterestCalculationType; + interestCompoundingPeriodType?: GetSelfSavingsInterestCompoundingPeriodType; + interestPostingPeriodType?: GetSelfSavingsInterestPostingPeriodType; + nominalAnnualInterestRate?: number; + savingsProductId?: number; + savingsProductName?: string; + status?: GetSelfSavingsStatus; + summary?: GetSelfSavingsSummary; + timeline?: GetSelfSavingsTimeline; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsChargeCalculationType.ts b/packages/fineract-client/src/models/getSelfSavingsChargeCalculationType.ts new file mode 100644 index 0000000000..28668f5263 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsChargeTimeType.ts b/packages/fineract-client/src/models/getSelfSavingsChargeTimeType.ts new file mode 100644 index 0000000000..5a58597eed --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsCurrency.ts b/packages/fineract-client/src/models/getSelfSavingsCurrency.ts new file mode 100644 index 0000000000..29cccedd2d --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsInterestCalculationDaysInYearType.ts b/packages/fineract-client/src/models/getSelfSavingsInterestCalculationDaysInYearType.ts new file mode 100644 index 0000000000..e6d36c02b5 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsInterestCalculationDaysInYearType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsInterestCalculationDaysInYearType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsInterestCalculationType.ts b/packages/fineract-client/src/models/getSelfSavingsInterestCalculationType.ts new file mode 100644 index 0000000000..a2e48c8973 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsInterestCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsInterestCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsInterestCompoundingPeriodType.ts b/packages/fineract-client/src/models/getSelfSavingsInterestCompoundingPeriodType.ts new file mode 100644 index 0000000000..d0c106d567 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsInterestCompoundingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsInterestCompoundingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsInterestPostingPeriodType.ts b/packages/fineract-client/src/models/getSelfSavingsInterestPostingPeriodType.ts new file mode 100644 index 0000000000..319da77567 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsInterestPostingPeriodType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsInterestPostingPeriodType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsPaymentDetailData.ts b/packages/fineract-client/src/models/getSelfSavingsPaymentDetailData.ts new file mode 100644 index 0000000000..fd5fe7f32b --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsPaymentDetailData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfSavingsPaymentType } from './getSelfSavingsPaymentType'; + + +export interface GetSelfSavingsPaymentDetailData { + accountNumber?: number; + bankNumber?: number; + checkNumber?: number; + id?: number; + paymentType?: GetSelfSavingsPaymentType; + receiptNumber?: number; + routingCode?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsPaymentType.ts b/packages/fineract-client/src/models/getSelfSavingsPaymentType.ts new file mode 100644 index 0000000000..332c5a5041 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsPaymentType.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsPaymentType { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsStatus.ts b/packages/fineract-client/src/models/getSelfSavingsStatus.ts new file mode 100644 index 0000000000..0dcc36610d --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsStatus.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsStatus { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + description?: string; + id?: number; + rejected?: boolean; + submittedAndPendingApproval?: boolean; + withdrawnByApplicant?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsSummary.ts b/packages/fineract-client/src/models/getSelfSavingsSummary.ts new file mode 100644 index 0000000000..9c7a890e40 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsSummary.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfSavingsCurrency } from './getSelfSavingsCurrency'; + + +export interface GetSelfSavingsSummary { + accountBalance?: number; + currency?: GetSelfSavingsCurrency; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsTimeline.ts b/packages/fineract-client/src/models/getSelfSavingsTimeline.ts new file mode 100644 index 0000000000..bd8e262b84 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsTimeline.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsTimeline { + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsTransactionCurrency.ts b/packages/fineract-client/src/models/getSelfSavingsTransactionCurrency.ts new file mode 100644 index 0000000000..9f62be8e31 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsTransactionCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsTransactionCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + inMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfSavingsTransactionType.ts b/packages/fineract-client/src/models/getSelfSavingsTransactionType.ts new file mode 100644 index 0000000000..bec52a66d1 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfSavingsTransactionType.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfSavingsTransactionType { + code?: string; + deposit?: boolean; + description?: string; + feeDeduction?: boolean; + id?: number; + interestPosting?: boolean; + withdrawal?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSelfUserDetailsOrganisationalRole.ts b/packages/fineract-client/src/models/getSelfUserDetailsOrganisationalRole.ts new file mode 100644 index 0000000000..700d5e3e6c --- /dev/null +++ b/packages/fineract-client/src/models/getSelfUserDetailsOrganisationalRole.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfUserDetailsOrganisationalRole { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSelfUserDetailsResponse.ts b/packages/fineract-client/src/models/getSelfUserDetailsResponse.ts new file mode 100644 index 0000000000..f6075f8241 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfUserDetailsResponse.ts @@ -0,0 +1,34 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfUserDetailsRoles } from './getSelfUserDetailsRoles'; +import { GetSelfUserDetailsOrganisationalRole } from './getSelfUserDetailsOrganisationalRole'; + + +/** + * GetSelfUserDetailsResponse + */ +export interface GetSelfUserDetailsResponse { + authenticated?: boolean; + base64EncodedAuthenticationKey?: string; + clients?: Array; + isSelfServiceUser?: boolean; + officeId?: number; + officeName?: string; + organisationalRole?: GetSelfUserDetailsOrganisationalRole; + permissions?: Array; + roles?: Set; + staffDisplayName?: string; + staffId?: number; + userId?: number; + username?: string; +} + diff --git a/packages/fineract-client/src/models/getSelfUserDetailsRoles.ts b/packages/fineract-client/src/models/getSelfUserDetailsRoles.ts new file mode 100644 index 0000000000..fb311d9629 --- /dev/null +++ b/packages/fineract-client/src/models/getSelfUserDetailsRoles.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetSelfUserDetailsRoles { + description?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsChargeAppliesTo.ts b/packages/fineract-client/src/models/getShareAccountsChargeAppliesTo.ts new file mode 100644 index 0000000000..c397a204e9 --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsChargeAppliesTo.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsChargeAppliesTo { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsChargeCalculationType.ts b/packages/fineract-client/src/models/getShareAccountsChargeCalculationType.ts new file mode 100644 index 0000000000..b97464da29 --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsChargeCalculationType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsChargeCalculationType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsChargeOptions.ts b/packages/fineract-client/src/models/getShareAccountsChargeOptions.ts new file mode 100644 index 0000000000..bf446fc297 --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsChargeOptions.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetShareAccountsCurrency } from './getShareAccountsCurrency'; +import { GetShareAccountsChargeTimeType } from './getShareAccountsChargeTimeType'; +import { GetShareAccountsChargeAppliesTo } from './getShareAccountsChargeAppliesTo'; +import { GetShareAccountsChargePaymentMode } from './getShareAccountsChargePaymentMode'; +import { GetShareAccountsChargeCalculationType } from './getShareAccountsChargeCalculationType'; + + +export interface GetShareAccountsChargeOptions { + active?: boolean; + amount?: number; + calculationType?: GetShareAccountsChargeCalculationType; + chargeAppliesTo?: GetShareAccountsChargeAppliesTo; + chargeTimeType?: GetShareAccountsChargeTimeType; + currency?: GetShareAccountsCurrency; + id?: number; + name?: string; + paymentMode?: GetShareAccountsChargePaymentMode; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsChargePaymentMode.ts b/packages/fineract-client/src/models/getShareAccountsChargePaymentMode.ts new file mode 100644 index 0000000000..67e4a54720 --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsChargePaymentMode.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsChargePaymentMode { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsChargeTimeType.ts b/packages/fineract-client/src/models/getShareAccountsChargeTimeType.ts new file mode 100644 index 0000000000..f006303149 --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsChargeTimeType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsChargeTimeType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsClientIdProductIdAccountingRule.ts b/packages/fineract-client/src/models/getShareAccountsClientIdProductIdAccountingRule.ts new file mode 100644 index 0000000000..cb3cf01be2 --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsClientIdProductIdAccountingRule.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsClientIdProductIdAccountingRule { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsClientIdProductIdLockPeriodTypeEnum.ts b/packages/fineract-client/src/models/getShareAccountsClientIdProductIdLockPeriodTypeEnum.ts new file mode 100644 index 0000000000..481e685570 --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsClientIdProductIdLockPeriodTypeEnum.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsClientIdProductIdLockPeriodTypeEnum { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsClientIdProductIdMinimumActivePeriodForDividendsTypeEnum.ts b/packages/fineract-client/src/models/getShareAccountsClientIdProductIdMinimumActivePeriodForDividendsTypeEnum.ts new file mode 100644 index 0000000000..7fce26e069 --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsClientIdProductIdMinimumActivePeriodForDividendsTypeEnum.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsClientIdProductIdMinimumActivePeriodForDividendsTypeEnum { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsClientIdProductIdResponse.ts b/packages/fineract-client/src/models/getShareAccountsClientIdProductIdResponse.ts new file mode 100644 index 0000000000..65e8cd3cfa --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsClientIdProductIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetClientIdProductIdChargeOptions } from './getClientIdProductIdChargeOptions'; +import { GetClientIdProductIdProductOptions } from './getClientIdProductIdProductOptions'; + + +/** + * GetShareAccountsClientIdProductIdResponse + */ +export interface GetShareAccountsClientIdProductIdResponse { + chargeOptions?: Set; + productOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsCurrency.ts b/packages/fineract-client/src/models/getShareAccountsCurrency.ts new file mode 100644 index 0000000000..46a0186eba --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsCurrency.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsIncomeFromFeeAccountId.ts b/packages/fineract-client/src/models/getShareAccountsIncomeFromFeeAccountId.ts new file mode 100644 index 0000000000..09302b5c7d --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsIncomeFromFeeAccountId.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsIncomeFromFeeAccountId { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsShareEquityId.ts b/packages/fineract-client/src/models/getShareAccountsShareEquityId.ts new file mode 100644 index 0000000000..c963c98c33 --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsShareEquityId.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsShareEquityId { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsShareReferenceId.ts b/packages/fineract-client/src/models/getShareAccountsShareReferenceId.ts new file mode 100644 index 0000000000..2f005a3a8d --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsShareReferenceId.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsShareReferenceId { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getShareAccountsShareSuspenseId.ts b/packages/fineract-client/src/models/getShareAccountsShareSuspenseId.ts new file mode 100644 index 0000000000..fb9b14355b --- /dev/null +++ b/packages/fineract-client/src/models/getShareAccountsShareSuspenseId.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareAccountsShareSuspenseId { + glCode?: number; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getShareEquityId.ts b/packages/fineract-client/src/models/getShareEquityId.ts new file mode 100644 index 0000000000..0676f32ca4 --- /dev/null +++ b/packages/fineract-client/src/models/getShareEquityId.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareEquityId { + glCode?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getShareReferenceId.ts b/packages/fineract-client/src/models/getShareReferenceId.ts new file mode 100644 index 0000000000..db67319a8b --- /dev/null +++ b/packages/fineract-client/src/models/getShareReferenceId.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareReferenceId { + glCode?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getShareSuspenseId.ts b/packages/fineract-client/src/models/getShareSuspenseId.ts new file mode 100644 index 0000000000..49fc7c8949 --- /dev/null +++ b/packages/fineract-client/src/models/getShareSuspenseId.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetShareSuspenseId { + glCode?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getStandingInstructionHistoryFromAccount.ts b/packages/fineract-client/src/models/getStandingInstructionHistoryFromAccount.ts new file mode 100644 index 0000000000..5f874d2e46 --- /dev/null +++ b/packages/fineract-client/src/models/getStandingInstructionHistoryFromAccount.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetStandingInstructionHistoryFromAccount { + accountNo?: number; + id?: number; + productId?: number; + productName?: string; +} + diff --git a/packages/fineract-client/src/models/getStandingInstructionHistoryPageItemsFromClient.ts b/packages/fineract-client/src/models/getStandingInstructionHistoryPageItemsFromClient.ts new file mode 100644 index 0000000000..081b682ba0 --- /dev/null +++ b/packages/fineract-client/src/models/getStandingInstructionHistoryPageItemsFromClient.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetStandingInstructionHistoryPageItemsFromClient { + displayName?: string; + id?: number; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getStandingInstructionHistoryPageItemsResponse.ts b/packages/fineract-client/src/models/getStandingInstructionHistoryPageItemsResponse.ts new file mode 100644 index 0000000000..3185e007d1 --- /dev/null +++ b/packages/fineract-client/src/models/getStandingInstructionHistoryPageItemsResponse.ts @@ -0,0 +1,38 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetStandingInstructionHistoryPageItemsFromClient } from './getStandingInstructionHistoryPageItemsFromClient'; +import { GetStandingInstructionHistoryToAccount } from './getStandingInstructionHistoryToAccount'; +import { GetFromOfficeStandingInstructionSwagger } from './getFromOfficeStandingInstructionSwagger'; +import { GetToAccountTypeStandingInstructionSwagger } from './getToAccountTypeStandingInstructionSwagger'; +import { GetFromAccountTypeStandingInstructionSwagger } from './getFromAccountTypeStandingInstructionSwagger'; +import { GetToOfficeStandingInstructionSwagger } from './getToOfficeStandingInstructionSwagger'; +import { GetStandingInstructionHistoryToClient } from './getStandingInstructionHistoryToClient'; +import { GetStandingInstructionHistoryFromAccount } from './getStandingInstructionHistoryFromAccount'; + + +export interface GetStandingInstructionHistoryPageItemsResponse { + amount?: number; + errorLog?: string; + executionTime?: string; + fromAccount?: GetStandingInstructionHistoryFromAccount; + fromAccountType?: GetFromAccountTypeStandingInstructionSwagger; + fromClient?: GetStandingInstructionHistoryPageItemsFromClient; + fromOffice?: GetFromOfficeStandingInstructionSwagger; + name?: string; + standingInstructionId?: number; + status?: string; + toAccount?: GetStandingInstructionHistoryToAccount; + toAccountType?: GetToAccountTypeStandingInstructionSwagger; + toClient?: GetStandingInstructionHistoryToClient; + toOffice?: GetToOfficeStandingInstructionSwagger; +} + diff --git a/packages/fineract-client/src/models/getStandingInstructionHistoryToAccount.ts b/packages/fineract-client/src/models/getStandingInstructionHistoryToAccount.ts new file mode 100644 index 0000000000..79bfcbfe22 --- /dev/null +++ b/packages/fineract-client/src/models/getStandingInstructionHistoryToAccount.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetStandingInstructionHistoryToAccount { + accountNo?: number; + id?: number; + productId?: number; + productName?: string; +} + diff --git a/packages/fineract-client/src/models/getStandingInstructionHistoryToClient.ts b/packages/fineract-client/src/models/getStandingInstructionHistoryToClient.ts new file mode 100644 index 0000000000..c6b5ecde73 --- /dev/null +++ b/packages/fineract-client/src/models/getStandingInstructionHistoryToClient.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetStandingInstructionHistoryToClient { + displayName?: string; + id?: number; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getStandingInstructionRunHistoryResponse.ts b/packages/fineract-client/src/models/getStandingInstructionRunHistoryResponse.ts new file mode 100644 index 0000000000..d7b1e1960e --- /dev/null +++ b/packages/fineract-client/src/models/getStandingInstructionRunHistoryResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetStandingInstructionHistoryPageItemsResponse } from './getStandingInstructionHistoryPageItemsResponse'; + + +/** + * GetStandingInstructionRunHistoryResponse + */ +export interface GetStandingInstructionRunHistoryResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getStandingInstructionsResponse.ts b/packages/fineract-client/src/models/getStandingInstructionsResponse.ts new file mode 100644 index 0000000000..df133f0298 --- /dev/null +++ b/packages/fineract-client/src/models/getStandingInstructionsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetPageItemsStandingInstructionSwagger } from './getPageItemsStandingInstructionSwagger'; + + +/** + * GetStandingInstructionsResponse + */ +export interface GetStandingInstructionsResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/getStandingInstructionsStandingInstructionIdResponse.ts b/packages/fineract-client/src/models/getStandingInstructionsStandingInstructionIdResponse.ts new file mode 100644 index 0000000000..f7f5a5007a --- /dev/null +++ b/packages/fineract-client/src/models/getStandingInstructionsStandingInstructionIdResponse.ts @@ -0,0 +1,54 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetToClientStandingInstructionSwagger } from './getToClientStandingInstructionSwagger'; +import { GetStatusStandingInstructionSwagger } from './getStatusStandingInstructionSwagger'; +import { GetToAccountStandingInstructionSwagger } from './getToAccountStandingInstructionSwagger'; +import { GetFromAccountTypeStandingInstructionSwagger } from './getFromAccountTypeStandingInstructionSwagger'; +import { GetRecurrenceFrequencyStandingInstructionSwagger } from './getRecurrenceFrequencyStandingInstructionSwagger'; +import { GetRecurrenceTypeStandingInstructionSwagger } from './getRecurrenceTypeStandingInstructionSwagger'; +import { GetFromOfficeStandingInstructionSwagger } from './getFromOfficeStandingInstructionSwagger'; +import { GetToAccountTypeStandingInstructionSwagger } from './getToAccountTypeStandingInstructionSwagger'; +import { GetFromAccountStandingInstructionSwagger } from './getFromAccountStandingInstructionSwagger'; +import { GetPriorityStandingInstructionSwagger } from './getPriorityStandingInstructionSwagger'; +import { GetToOfficeStandingInstructionSwagger } from './getToOfficeStandingInstructionSwagger'; +import { GetFromClientStandingInstructionSwagger } from './getFromClientStandingInstructionSwagger'; +import { GetTransferTypeStandingInstructionSwagger } from './getTransferTypeStandingInstructionSwagger'; +import { GetInstructionTypeStandingInstructionSwagger } from './getInstructionTypeStandingInstructionSwagger'; + + +/** + * GetStandingInstructionsStandingInstructionIdResponse + */ +export interface GetStandingInstructionsStandingInstructionIdResponse { + accountDetailId?: number; + amount?: number; + fromAccount?: GetFromAccountStandingInstructionSwagger; + fromAccountType?: GetFromAccountTypeStandingInstructionSwagger; + fromClient?: GetFromClientStandingInstructionSwagger; + fromOffice?: GetFromOfficeStandingInstructionSwagger; + id?: number; + instructionType?: GetInstructionTypeStandingInstructionSwagger; + name?: string; + priority?: GetPriorityStandingInstructionSwagger; + recurrenceFrequency?: GetRecurrenceFrequencyStandingInstructionSwagger; + recurrenceInterval?: number; + recurrenceOnMonthDay?: string; + recurrenceType?: GetRecurrenceTypeStandingInstructionSwagger; + status?: GetStatusStandingInstructionSwagger; + toAccount?: GetToAccountStandingInstructionSwagger; + toAccountType?: GetToAccountTypeStandingInstructionSwagger; + toClient?: GetToClientStandingInstructionSwagger; + toOffice?: GetToOfficeStandingInstructionSwagger; + transferType?: GetTransferTypeStandingInstructionSwagger; + validFrom?: string; +} + diff --git a/packages/fineract-client/src/models/getStandingInstructionsTemplateResponse.ts b/packages/fineract-client/src/models/getStandingInstructionsTemplateResponse.ts new file mode 100644 index 0000000000..850b1ecc9c --- /dev/null +++ b/packages/fineract-client/src/models/getStandingInstructionsTemplateResponse.ts @@ -0,0 +1,45 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetTransferTypeOptionsResponseStandingInstructionSwagger } from './getTransferTypeOptionsResponseStandingInstructionSwagger'; +import { GetRecurrenceFrequencyOptionsResponseStandingInstructionSwagger } from './getRecurrenceFrequencyOptionsResponseStandingInstructionSwagger'; +import { GetStatusOptionsResponseStandingInstructionSwagger } from './getStatusOptionsResponseStandingInstructionSwagger'; +import { GetFromAccountTypeOptionsResponseStandingInstructionSwagger } from './getFromAccountTypeOptionsResponseStandingInstructionSwagger'; +import { GetToAccountTypeOptionsResponseStandingInstructionSwagger } from './getToAccountTypeOptionsResponseStandingInstructionSwagger'; +import { GetFromAccountTypeResponseStandingInstructionSwagger } from './getFromAccountTypeResponseStandingInstructionSwagger'; +import { GetToOfficeOptionsResponseStandingInstructionSwagger } from './getToOfficeOptionsResponseStandingInstructionSwagger'; +import { GetInstructionTypeOptionsResponseStandingInstructionSwagger } from './getInstructionTypeOptionsResponseStandingInstructionSwagger'; +import { GetFromClientOptionsResponseStandingInstructionSwagger } from './getFromClientOptionsResponseStandingInstructionSwagger'; +import { GetRecurrenceTypeOptionsResponseStandingInstructionSwagger } from './getRecurrenceTypeOptionsResponseStandingInstructionSwagger'; +import { GetFromOfficeResponseStandingInstructionSwagger } from './getFromOfficeResponseStandingInstructionSwagger'; +import { GetFromOfficeOptionsResponseStandingInstructionSwagger } from './getFromOfficeOptionsResponseStandingInstructionSwagger'; +import { GetPriorityOptionsResponseStandingInstructionSwagger } from './getPriorityOptionsResponseStandingInstructionSwagger'; + + +/** + * GetStandingInstructionsTemplateResponse + */ +export interface GetStandingInstructionsTemplateResponse { + fromAccountType?: GetFromAccountTypeResponseStandingInstructionSwagger; + fromAccountTypeOptions?: Set; + fromClientOptions?: Set; + fromOffice?: GetFromOfficeResponseStandingInstructionSwagger; + fromOfficeOptions?: Set; + instructionTypeOptions?: Set; + priorityOptions?: Set; + recurrenceFrequencyOptions?: Set; + recurrenceTypeOptions?: Set; + statusOptions?: Set; + toAccountTypeOptions?: Set; + toOfficeOptions?: Set; + transferTypeOptions?: Set; +} + diff --git a/packages/fineract-client/src/models/getStatusOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getStatusOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..7f2737020e --- /dev/null +++ b/packages/fineract-client/src/models/getStatusOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetStatusOptionsResponseStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getStatusStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getStatusStandingInstructionSwagger.ts new file mode 100644 index 0000000000..144c85638a --- /dev/null +++ b/packages/fineract-client/src/models/getStatusStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetStatusStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getSurveyResponse.ts b/packages/fineract-client/src/models/getSurveyResponse.ts new file mode 100644 index 0000000000..746a58b169 --- /dev/null +++ b/packages/fineract-client/src/models/getSurveyResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSurveyResponseDatatableData } from './getSurveyResponseDatatableData'; + + +/** + * GetSurveyResponse + */ +export interface GetSurveyResponse { + datatableData?: GetSurveyResponseDatatableData; + enabled?: boolean; +} + diff --git a/packages/fineract-client/src/models/getSurveyResponseDatatableData.ts b/packages/fineract-client/src/models/getSurveyResponseDatatableData.ts new file mode 100644 index 0000000000..995b0ec178 --- /dev/null +++ b/packages/fineract-client/src/models/getSurveyResponseDatatableData.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ResultsetColumnHeaderData } from './resultsetColumnHeaderData'; + + +export interface GetSurveyResponseDatatableData { + applicationTableName?: string; + columnHeaderData?: Array; + registeredTableName?: string; +} + diff --git a/packages/fineract-client/src/models/getTaxesComponentsCreditAccount.ts b/packages/fineract-client/src/models/getTaxesComponentsCreditAccount.ts new file mode 100644 index 0000000000..9f99e00bd3 --- /dev/null +++ b/packages/fineract-client/src/models/getTaxesComponentsCreditAccount.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetTaxesComponentsCreditAccount { + glCode?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getTaxesComponentsCreditAccountType.ts b/packages/fineract-client/src/models/getTaxesComponentsCreditAccountType.ts new file mode 100644 index 0000000000..984d3ee355 --- /dev/null +++ b/packages/fineract-client/src/models/getTaxesComponentsCreditAccountType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetTaxesComponentsCreditAccountType { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getTaxesComponentsResponse.ts b/packages/fineract-client/src/models/getTaxesComponentsResponse.ts new file mode 100644 index 0000000000..127524d8b1 --- /dev/null +++ b/packages/fineract-client/src/models/getTaxesComponentsResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetTaxesComponentsCreditAccount } from './getTaxesComponentsCreditAccount'; +import { GetTaxesComponentsCreditAccountType } from './getTaxesComponentsCreditAccountType'; + + +/** + * GetTaxesComponentsResponse + */ +export interface GetTaxesComponentsResponse { + creditAccount?: GetTaxesComponentsCreditAccount; + creditAccountType?: GetTaxesComponentsCreditAccountType; + id?: number; + name?: string; + percentage?: number; + startDate?: string; + taxComponentsHistories?: Set; +} + diff --git a/packages/fineract-client/src/models/getTaxesGroupResponse.ts b/packages/fineract-client/src/models/getTaxesGroupResponse.ts new file mode 100644 index 0000000000..77a394e3d6 --- /dev/null +++ b/packages/fineract-client/src/models/getTaxesGroupResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetTaxesGroupTaxAssociations } from './getTaxesGroupTaxAssociations'; + + +/** + * GetTaxesGroupResponse + */ +export interface GetTaxesGroupResponse { + id?: number; + name?: string; + taxAssociations?: Set; +} + diff --git a/packages/fineract-client/src/models/getTaxesGroupTaxAssociations.ts b/packages/fineract-client/src/models/getTaxesGroupTaxAssociations.ts new file mode 100644 index 0000000000..0e5fee8a00 --- /dev/null +++ b/packages/fineract-client/src/models/getTaxesGroupTaxAssociations.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetTaxesGroupTaxComponent } from './getTaxesGroupTaxComponent'; + + +export interface GetTaxesGroupTaxAssociations { + id?: number; + startDate?: string; + taxComponent?: GetTaxesGroupTaxComponent; +} + diff --git a/packages/fineract-client/src/models/getTaxesGroupTaxComponent.ts b/packages/fineract-client/src/models/getTaxesGroupTaxComponent.ts new file mode 100644 index 0000000000..03d57bbf9b --- /dev/null +++ b/packages/fineract-client/src/models/getTaxesGroupTaxComponent.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetTaxesGroupTaxComponent { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getTellersResponse.ts b/packages/fineract-client/src/models/getTellersResponse.ts new file mode 100644 index 0000000000..566bd444e3 --- /dev/null +++ b/packages/fineract-client/src/models/getTellersResponse.ts @@ -0,0 +1,38 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetTellersResponse + */ +export interface GetTellersResponse { + creditAccountId?: number; + debitAccountId?: number; + id?: number; + name?: string; + officeId?: number; + officeName?: string; + startDate?: string; + status?: GetTellersResponse.StatusEnum; +} +export namespace GetTellersResponse { + export type StatusEnum = 'INVALID' | 'PENDING' | 'ACTIVE' | 'INACTIVE' | 'CLOSED'; + export const StatusEnum = { + Invalid: 'INVALID' as StatusEnum, + Pending: 'PENDING' as StatusEnum, + Active: 'ACTIVE' as StatusEnum, + Inactive: 'INACTIVE' as StatusEnum, + Closed: 'CLOSED' as StatusEnum + }; +} + + diff --git a/packages/fineract-client/src/models/getTellersTellerIdCashiersCashierIdResponse.ts b/packages/fineract-client/src/models/getTellersTellerIdCashiersCashierIdResponse.ts new file mode 100644 index 0000000000..7c1c835518 --- /dev/null +++ b/packages/fineract-client/src/models/getTellersTellerIdCashiersCashierIdResponse.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetTellersTellerIdCashiersCashierIdResponse + */ +export interface GetTellersTellerIdCashiersCashierIdResponse { + description?: string; + endDate?: string; + endTime?: string; + id?: number; + isFullDay?: boolean; + staffId?: number; + staffName?: string; + startDate?: string; + startTime?: string; + tellerId?: number; + tellerName?: string; +} + diff --git a/packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdSummaryAndTransactionsResponse.ts b/packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdSummaryAndTransactionsResponse.ts new file mode 100644 index 0000000000..6b8621b181 --- /dev/null +++ b/packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdSummaryAndTransactionsResponse.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PageCashierTransactionData } from './pageCashierTransactionData'; + + +/** + * GetTellersTellerIdCashiersCashiersIdSummaryAndTransactionsResponse + */ +export interface GetTellersTellerIdCashiersCashiersIdSummaryAndTransactionsResponse { + cashierId?: number; + cashierName?: string; + cashierTransactions?: PageCashierTransactionData; + netCash?: number; + officeName?: string; + sumCashAllocation?: number; + sumCashSettlement?: number; + sumInwardCash?: number; + sumOutwardCash?: number; + tellerId?: number; + tellerName?: string; +} + diff --git a/packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdTransactionsResponse.ts b/packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdTransactionsResponse.ts new file mode 100644 index 0000000000..798b1ac117 --- /dev/null +++ b/packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdTransactionsResponse.ts @@ -0,0 +1,33 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CashierTxnType } from './cashierTxnType'; + + +/** + * GetTellersTellerIdCashiersCashiersIdTransactionsResponse + */ +export interface GetTellersTellerIdCashiersCashiersIdTransactionsResponse { + cashierId?: number; + cashierName?: string; + createdDate?: string; + entityId?: number; + entityType?: string; + id?: number; + officeId?: number; + officeName?: string; + tellerId?: number; + txnAmount?: number; + txnDate?: string; + txnNote?: string; + txnType?: CashierTxnType; +} + diff --git a/packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdTransactionsTemplateResponse.ts b/packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdTransactionsTemplateResponse.ts new file mode 100644 index 0000000000..1294c378e9 --- /dev/null +++ b/packages/fineract-client/src/models/getTellersTellerIdCashiersCashiersIdTransactionsTemplateResponse.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CurrencyData } from './currencyData'; +import { CashierData } from './cashierData'; + + +/** + * GetTellersTellerIdCashiersCashiersIdTransactionsTemplateResponse + */ +export interface GetTellersTellerIdCashiersCashiersIdTransactionsTemplateResponse { + cashierData?: CashierData; + cashierId?: number; + cashierName?: string; + currencyOptions?: Array; + endDate?: string; + officeName?: string; + startDate?: string; + tellerId?: number; + tellerName?: string; +} + diff --git a/packages/fineract-client/src/models/getTellersTellerIdCashiersResponse.ts b/packages/fineract-client/src/models/getTellersTellerIdCashiersResponse.ts new file mode 100644 index 0000000000..84ea3eca94 --- /dev/null +++ b/packages/fineract-client/src/models/getTellersTellerIdCashiersResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CashierData } from './cashierData'; + + +/** + * GetTellersTellerIdCashiersResponse + */ +export interface GetTellersTellerIdCashiersResponse { + cashiers?: Array; + officeId?: number; + officeName?: string; + tellerId?: number; + tellerName?: string; +} + diff --git a/packages/fineract-client/src/models/getTellersTellerIdCashiersTemplateResponse.ts b/packages/fineract-client/src/models/getTellersTellerIdCashiersTemplateResponse.ts new file mode 100644 index 0000000000..2b9b1f65eb --- /dev/null +++ b/packages/fineract-client/src/models/getTellersTellerIdCashiersTemplateResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { StaffData } from './staffData'; + + +/** + * GetTellersTellerIdCashiersTemplateResponse + */ +export interface GetTellersTellerIdCashiersTemplateResponse { + officeId?: number; + officeName?: string; + staffOptions?: Array; + tellerId?: number; + tellerName?: string; +} + diff --git a/packages/fineract-client/src/models/getTemplatesResponse.ts b/packages/fineract-client/src/models/getTemplatesResponse.ts new file mode 100644 index 0000000000..e4ed86cf72 --- /dev/null +++ b/packages/fineract-client/src/models/getTemplatesResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TemplateMapper } from './templateMapper'; + + +/** + * GetTemplatesResponse + */ +export interface GetTemplatesResponse { + entity?: number; + id?: number; + mappers?: Array; + name?: string; + text?: string; + type?: number; +} + diff --git a/packages/fineract-client/src/models/getTemplatesTemplateIdResponse.ts b/packages/fineract-client/src/models/getTemplatesTemplateIdResponse.ts new file mode 100644 index 0000000000..c9376b25a8 --- /dev/null +++ b/packages/fineract-client/src/models/getTemplatesTemplateIdResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TemplateMapper } from './templateMapper'; + + +/** + * GetTemplatesTemplateIdResponse + */ +export interface GetTemplatesTemplateIdResponse { + entity?: number; + id?: number; + mappers?: Array; + name?: string; + text?: string; + type?: number; +} + diff --git a/packages/fineract-client/src/models/getTemplatesTemplateResponse.ts b/packages/fineract-client/src/models/getTemplatesTemplateResponse.ts new file mode 100644 index 0000000000..a52f93178f --- /dev/null +++ b/packages/fineract-client/src/models/getTemplatesTemplateResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TemplateMapper } from './templateMapper'; + + +/** + * GetTemplatesTemplateResponse + */ +export interface GetTemplatesTemplateResponse { + entity?: number; + id?: number; + mappers?: Array; + name?: string; + text?: string; + type?: number; +} + diff --git a/packages/fineract-client/src/models/getToAccountStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getToAccountStandingInstructionSwagger.ts new file mode 100644 index 0000000000..4f5475d6ff --- /dev/null +++ b/packages/fineract-client/src/models/getToAccountStandingInstructionSwagger.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetToAccountStandingInstructionSwagger { + accountNo?: number; + id?: number; + productId?: number; + productName?: string; +} + diff --git a/packages/fineract-client/src/models/getToAccountTypeOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getToAccountTypeOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..e4fcef3b99 --- /dev/null +++ b/packages/fineract-client/src/models/getToAccountTypeOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetToAccountTypeOptionsResponseStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getToAccountTypeStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getToAccountTypeStandingInstructionSwagger.ts new file mode 100644 index 0000000000..ee5a629c09 --- /dev/null +++ b/packages/fineract-client/src/models/getToAccountTypeStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetToAccountTypeStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getToClientStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getToClientStandingInstructionSwagger.ts new file mode 100644 index 0000000000..3fa3fa50ac --- /dev/null +++ b/packages/fineract-client/src/models/getToClientStandingInstructionSwagger.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetToClientStandingInstructionSwagger { + displayName?: string; + id?: number; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/getToOfficeOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getToOfficeOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..d03f914d24 --- /dev/null +++ b/packages/fineract-client/src/models/getToOfficeOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetToOfficeOptionsResponseStandingInstructionSwagger { + id?: number; + name?: string; + nameDecorated?: string; +} + diff --git a/packages/fineract-client/src/models/getToOfficeStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getToOfficeStandingInstructionSwagger.ts new file mode 100644 index 0000000000..4877ad6694 --- /dev/null +++ b/packages/fineract-client/src/models/getToOfficeStandingInstructionSwagger.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetToOfficeStandingInstructionSwagger { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/getTransactionsCurrency.ts b/packages/fineract-client/src/models/getTransactionsCurrency.ts new file mode 100644 index 0000000000..f15f629615 --- /dev/null +++ b/packages/fineract-client/src/models/getTransactionsCurrency.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetTransactionsCurrency { + code?: string; + decimalPlaces?: number; + displayLabel?: string; + displaySymbol?: string; + isMultiplesOf?: number; + name?: string; + nameCode?: string; +} + diff --git a/packages/fineract-client/src/models/getTransactionsPaymentDetailData.ts b/packages/fineract-client/src/models/getTransactionsPaymentDetailData.ts new file mode 100644 index 0000000000..47198f6ed8 --- /dev/null +++ b/packages/fineract-client/src/models/getTransactionsPaymentDetailData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetPaymentTypeData } from './getPaymentTypeData'; + + +export interface GetTransactionsPaymentDetailData { + accountNumber?: string; + bankNumber?: string; + checkNumber?: string; + id?: number; + paymentType?: GetPaymentTypeData; + receiptNumber?: string; + routingCode?: string; +} + diff --git a/packages/fineract-client/src/models/getTranscationEnumData.ts b/packages/fineract-client/src/models/getTranscationEnumData.ts new file mode 100644 index 0000000000..823fe2b237 --- /dev/null +++ b/packages/fineract-client/src/models/getTranscationEnumData.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetTranscationEnumData { + amountHold?: boolean; + amountRelease?: boolean; + approveTransfer?: boolean; + code?: string; + deposit?: boolean; + dividendPayout?: boolean; + escheat?: boolean; + feeDeduction?: boolean; + id?: number; + initiateTransfer?: boolean; + interestPosting?: boolean; + overdraftFee?: boolean; + overdraftInterest?: boolean; + rejectTransfer?: boolean; + value?: string; + withdrawTransfer?: boolean; + withdrawal?: boolean; + withholdTax?: boolean; + writtenoff?: boolean; +} + diff --git a/packages/fineract-client/src/models/getTransferTypeOptionsResponseStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getTransferTypeOptionsResponseStandingInstructionSwagger.ts new file mode 100644 index 0000000000..d341720c1c --- /dev/null +++ b/packages/fineract-client/src/models/getTransferTypeOptionsResponseStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetTransferTypeOptionsResponseStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getTransferTypeStandingInstructionSwagger.ts b/packages/fineract-client/src/models/getTransferTypeStandingInstructionSwagger.ts new file mode 100644 index 0000000000..6ba2661b2d --- /dev/null +++ b/packages/fineract-client/src/models/getTransferTypeStandingInstructionSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GetTransferTypeStandingInstructionSwagger { + code?: string; + description?: string; + id?: number; +} + diff --git a/packages/fineract-client/src/models/getUserDetailsResponse.ts b/packages/fineract-client/src/models/getUserDetailsResponse.ts new file mode 100644 index 0000000000..311b9ed07b --- /dev/null +++ b/packages/fineract-client/src/models/getUserDetailsResponse.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; +import { RoleData } from './roleData'; + + +/** + * GetUserDetailsResponse + */ +export interface GetUserDetailsResponse { + accessToken?: string; + authenticated?: boolean; + officeId?: number; + officeName?: string; + organisationalRole?: EnumOptionData; + permissions?: Array; + roles?: Array; + staffDisplayName?: string; + staffId?: number; + userId?: number; + username?: string; +} + diff --git a/packages/fineract-client/src/models/getUsersResponse.ts b/packages/fineract-client/src/models/getUsersResponse.ts new file mode 100644 index 0000000000..e5dbca88dc --- /dev/null +++ b/packages/fineract-client/src/models/getUsersResponse.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { StaffData } from './staffData'; +import { RoleData } from './roleData'; + + +/** + * GetUsersResponse + */ +export interface GetUsersResponse { + email?: string; + firstname?: string; + id?: number; + lastname?: string; + officeId?: number; + officeName?: string; + passwordNeverExpires?: boolean; + selectedRoles?: Array; + staff?: StaffData; + username?: string; +} + diff --git a/packages/fineract-client/src/models/getUsersTemplateResponse.ts b/packages/fineract-client/src/models/getUsersTemplateResponse.ts new file mode 100644 index 0000000000..acc8428b6d --- /dev/null +++ b/packages/fineract-client/src/models/getUsersTemplateResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { OfficeData } from './officeData'; +import { RoleData } from './roleData'; + + +/** + * GetUsersTemplateResponse + */ +export interface GetUsersTemplateResponse { + allowedOffices?: Array; + availableRoles?: Array; + selfServiceRoles?: Array; +} + diff --git a/packages/fineract-client/src/models/getUsersUserIdResponse.ts b/packages/fineract-client/src/models/getUsersUserIdResponse.ts new file mode 100644 index 0000000000..245ed551b8 --- /dev/null +++ b/packages/fineract-client/src/models/getUsersUserIdResponse.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { StaffData } from './staffData'; +import { RoleData } from './roleData'; + + +/** + * GetUsersUserIdResponse + */ +export interface GetUsersUserIdResponse { + availableRoles?: Array; + email?: string; + firstname?: string; + id?: number; + lastname?: string; + officeId?: number; + officeName?: string; + passwordNeverExpires?: boolean; + selectedRoles?: Array; + staff?: StaffData; + username?: string; +} + diff --git a/packages/fineract-client/src/models/getWorkingDaysResponse.ts b/packages/fineract-client/src/models/getWorkingDaysResponse.ts new file mode 100644 index 0000000000..8424d089f4 --- /dev/null +++ b/packages/fineract-client/src/models/getWorkingDaysResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +/** + * GetWorkingDaysResponse + */ +export interface GetWorkingDaysResponse { + extendTermForDailyRepayments?: boolean; + id?: number; + recurrence?: string; + repaymentRescheduleType?: EnumOptionData; +} + diff --git a/packages/fineract-client/src/models/getWorkingDaysTemplateResponse.ts b/packages/fineract-client/src/models/getWorkingDaysTemplateResponse.ts new file mode 100644 index 0000000000..b1e51ebce9 --- /dev/null +++ b/packages/fineract-client/src/models/getWorkingDaysTemplateResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +/** + * GetWorkingDaysTemplateResponse + */ +export interface GetWorkingDaysTemplateResponse { + repaymentRescheduleOptions?: Array; +} + diff --git a/packages/fineract-client/src/models/globalConfigurationPropertyData.ts b/packages/fineract-client/src/models/globalConfigurationPropertyData.ts new file mode 100644 index 0000000000..85b4cd7e40 --- /dev/null +++ b/packages/fineract-client/src/models/globalConfigurationPropertyData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GlobalConfigurationPropertyData { + dateValue?: string; + description?: string; + enabled?: boolean; + id?: number; + name?: string; + stringValue?: string; + trapDoor?: boolean; + value?: number; +} + diff --git a/packages/fineract-client/src/models/grantedAuthority.ts b/packages/fineract-client/src/models/grantedAuthority.ts new file mode 100644 index 0000000000..bdc54228dd --- /dev/null +++ b/packages/fineract-client/src/models/grantedAuthority.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GrantedAuthority { + authority?: string; +} + diff --git a/packages/fineract-client/src/models/group.ts b/packages/fineract-client/src/models/group.ts new file mode 100644 index 0000000000..c3ce56db7f --- /dev/null +++ b/packages/fineract-client/src/models/group.ts @@ -0,0 +1,43 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Office } from './office'; +import { GroupLevel } from './groupLevel'; +import { Staff } from './staff'; +import { Client } from './client'; + + +export interface Group { + accountNumberRequiresAutoGeneration?: boolean; + activationLocalDate?: string; + active?: boolean; + activeClientMembers?: Set; + center?: boolean; + childGroup?: boolean; + clientMembers?: Set; + closed?: boolean; + group?: boolean; + groupLevel?: GroupLevel; + groupMembers?: Array; + id?: number; + _new?: boolean; + notActive?: boolean; + notPending?: boolean; + office?: Office; + parent?: Group; + pending?: boolean; + staff?: Staff; + submittedOnDate?: string; + transferInProgress?: boolean; + transferInProgressOrOnHold?: boolean; + transferOnHold?: boolean; +} + diff --git a/packages/fineract-client/src/models/groupGeneralData.ts b/packages/fineract-client/src/models/groupGeneralData.ts new file mode 100644 index 0000000000..c94a33939c --- /dev/null +++ b/packages/fineract-client/src/models/groupGeneralData.ts @@ -0,0 +1,60 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CenterData } from './centerData'; +import { GroupRoleData } from './groupRoleData'; +import { ClientData } from './clientData'; +import { OfficeData } from './officeData'; +import { CalendarData } from './calendarData'; +import { CodeValueData } from './codeValueData'; +import { DatatableData } from './datatableData'; +import { StaffData } from './staffData'; +import { EnumOptionData } from './enumOptionData'; + + +export interface GroupGeneralData { + accountNo?: string; + activationDate?: string; + active?: boolean; + activeClientMembers?: Array; + availableRoles?: Array; + calendarsData?: Array; + centerId?: number; + centerName?: string; + centerOptions?: Array; + childGroup?: boolean; + clientMembers?: Array; + clientOptions?: Array; + closureReasons?: Array; + collectionMeetingCalendar?: CalendarData; + datatables?: Array; + dateFormat?: string; + externalId?: string; + groupLevel?: string; + groupRoles?: Array; + hierarchy?: string; + id?: number; + locale?: string; + name?: string; + officeId?: number; + officeName?: string; + officeOptions?: Array; + parentId?: number; + rowIndex?: number; + selectedRole?: GroupRoleData; + staffId?: number; + staffName?: string; + staffOptions?: Array; + status?: EnumOptionData; + submittedOnDate?: string; + timeline?: object; +} + diff --git a/packages/fineract-client/src/models/groupLevel.ts b/packages/fineract-client/src/models/groupLevel.ts new file mode 100644 index 0000000000..2c440627d2 --- /dev/null +++ b/packages/fineract-client/src/models/groupLevel.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface GroupLevel { + center?: boolean; + group?: boolean; + id?: number; + levelName?: string; + _new?: boolean; + parentId?: number; + recursable?: boolean; + superParent?: boolean; +} + diff --git a/packages/fineract-client/src/models/groupRoleData.ts b/packages/fineract-client/src/models/groupRoleData.ts new file mode 100644 index 0000000000..6e8387fc19 --- /dev/null +++ b/packages/fineract-client/src/models/groupRoleData.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CodeValueData } from './codeValueData'; + + +export interface GroupRoleData { + clientId?: number; + clientName?: string; + id?: number; + role?: CodeValueData; +} + diff --git a/packages/fineract-client/src/models/grouping.ts b/packages/fineract-client/src/models/grouping.ts new file mode 100644 index 0000000000..e8f005a4e4 --- /dev/null +++ b/packages/fineract-client/src/models/grouping.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Entity } from './entity'; + + +export interface Grouping { + entities?: Array; + name?: string; +} + diff --git a/packages/fineract-client/src/models/header.ts b/packages/fineract-client/src/models/header.ts new file mode 100644 index 0000000000..dee90ce0f0 --- /dev/null +++ b/packages/fineract-client/src/models/header.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface Header { + name?: string; + value?: string; +} + diff --git a/packages/fineract-client/src/models/hookTemplateData.ts b/packages/fineract-client/src/models/hookTemplateData.ts new file mode 100644 index 0000000000..59d2fe8e61 --- /dev/null +++ b/packages/fineract-client/src/models/hookTemplateData.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Field } from './field'; + + +export interface HookTemplateData { + id?: number; + name?: string; + schema?: Array; +} + diff --git a/packages/fineract-client/src/models/idDocument.ts b/packages/fineract-client/src/models/idDocument.ts new file mode 100644 index 0000000000..4ae6b875de --- /dev/null +++ b/packages/fineract-client/src/models/idDocument.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface IdDocument { + idNumber?: string; + idType?: string; + issuerCountry?: string; + otherIdDescription?: string; +} + diff --git a/packages/fineract-client/src/models/image.ts b/packages/fineract-client/src/models/image.ts new file mode 100644 index 0000000000..dd5f7c86f3 --- /dev/null +++ b/packages/fineract-client/src/models/image.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface Image { + id?: number; + location?: string; + _new?: boolean; + storageType?: number; +} + diff --git a/packages/fineract-client/src/models/inlineJobRequest.ts b/packages/fineract-client/src/models/inlineJobRequest.ts new file mode 100644 index 0000000000..7f5e0cd57d --- /dev/null +++ b/packages/fineract-client/src/models/inlineJobRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * InlineJobRequest + */ +export interface InlineJobRequest { + loanIds?: Array; +} + diff --git a/packages/fineract-client/src/models/inlineJobResponse.ts b/packages/fineract-client/src/models/inlineJobResponse.ts new file mode 100644 index 0000000000..a98d8aa2df --- /dev/null +++ b/packages/fineract-client/src/models/inlineJobResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * InlineJobResponse + */ +export interface InlineJobResponse { + loanIds?: Array; +} + diff --git a/packages/fineract-client/src/models/interopAccountData.ts b/packages/fineract-client/src/models/interopAccountData.ts new file mode 100644 index 0000000000..39421af51e --- /dev/null +++ b/packages/fineract-client/src/models/interopAccountData.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalId } from './externalId'; + + +export interface InteropAccountData { + changes?: { [key: string]: object; }; + clientId?: number; + commandId?: number; + creditBureauReportData?: { [key: string]: object; }; + glimId?: number; + groupId?: number; + gsimId?: number; + loanId?: number; + officeId?: number; + productId?: number; + resourceExternalId?: ExternalId; + resourceId?: number; + resourceIdentifier?: string; + rollbackTransaction?: boolean; + savingsId?: number; + subResourceExternalId?: ExternalId; + subResourceId?: number; + transactionId?: string; +} + diff --git a/packages/fineract-client/src/models/interopIdentifierAccountResponseData.ts b/packages/fineract-client/src/models/interopIdentifierAccountResponseData.ts new file mode 100644 index 0000000000..ce534127b1 --- /dev/null +++ b/packages/fineract-client/src/models/interopIdentifierAccountResponseData.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalId } from './externalId'; + + +export interface InteropIdentifierAccountResponseData { + accountId: string; + changes?: { [key: string]: object; }; + clientId?: number; + commandId?: number; + creditBureauReportData?: { [key: string]: object; }; + glimId?: number; + groupId?: number; + gsimId?: number; + loanId?: number; + officeId?: number; + productId?: number; + resourceExternalId?: ExternalId; + resourceId?: number; + resourceIdentifier?: string; + rollbackTransaction?: boolean; + savingsId?: number; + subResourceExternalId?: ExternalId; + subResourceId?: number; + transactionId?: string; +} + diff --git a/packages/fineract-client/src/models/interopIdentifierRequestData.ts b/packages/fineract-client/src/models/interopIdentifierRequestData.ts new file mode 100644 index 0000000000..7cce8f04a5 --- /dev/null +++ b/packages/fineract-client/src/models/interopIdentifierRequestData.ts @@ -0,0 +1,34 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface InteropIdentifierRequestData { + accountId: string; + idType: InteropIdentifierRequestData.IdTypeEnum; + idValue: string; + subIdOrType?: string; +} +export namespace InteropIdentifierRequestData { + export type IdTypeEnum = 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS'; + export const IdTypeEnum = { + Msisdn: 'MSISDN' as IdTypeEnum, + Email: 'EMAIL' as IdTypeEnum, + PersonalId: 'PERSONAL_ID' as IdTypeEnum, + Business: 'BUSINESS' as IdTypeEnum, + Device: 'DEVICE' as IdTypeEnum, + AccountId: 'ACCOUNT_ID' as IdTypeEnum, + Iban: 'IBAN' as IdTypeEnum, + Alias: 'ALIAS' as IdTypeEnum + }; +} + + diff --git a/packages/fineract-client/src/models/interopIdentifiersResponseData.ts b/packages/fineract-client/src/models/interopIdentifiersResponseData.ts new file mode 100644 index 0000000000..7c7e6e3e48 --- /dev/null +++ b/packages/fineract-client/src/models/interopIdentifiersResponseData.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalId } from './externalId'; + + +export interface InteropIdentifiersResponseData { + changes?: { [key: string]: object; }; + clientId?: number; + commandId?: number; + creditBureauReportData?: { [key: string]: object; }; + glimId?: number; + groupId?: number; + gsimId?: number; + loanId?: number; + officeId?: number; + productId?: number; + resourceExternalId?: ExternalId; + resourceId?: number; + resourceIdentifier?: string; + rollbackTransaction?: boolean; + savingsId?: number; + subResourceExternalId?: ExternalId; + subResourceId?: number; + transactionId?: string; +} + diff --git a/packages/fineract-client/src/models/interopKycResponseData.ts b/packages/fineract-client/src/models/interopKycResponseData.ts new file mode 100644 index 0000000000..cbb4c7f4d7 --- /dev/null +++ b/packages/fineract-client/src/models/interopKycResponseData.ts @@ -0,0 +1,47 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostalAddress } from './postalAddress'; +import { IdDocument } from './idDocument'; +import { SubjectName } from './subjectName'; +import { ExternalId } from './externalId'; + + +export interface InteropKycResponseData { + birthCountry?: string; + changes?: { [key: string]: object; }; + clientId?: number; + commandId?: number; + contactPhone?: string; + creditBureauReportData?: { [key: string]: object; }; + dateOfBirth?: string; + emailAddress?: string; + gender?: string; + glimId?: number; + groupId?: number; + gsimId?: number; + idDocument?: Array; + loanId?: number; + nationality?: string; + officeId?: number; + postalAddress?: PostalAddress; + productId?: number; + resourceExternalId?: ExternalId; + resourceId?: number; + resourceIdentifier?: string; + rollbackTransaction?: boolean; + savingsId?: number; + subResourceExternalId?: ExternalId; + subResourceId?: number; + subjectName?: SubjectName; + transactionId?: string; +} + diff --git a/packages/fineract-client/src/models/interopQuoteRequestData.ts b/packages/fineract-client/src/models/interopQuoteRequestData.ts new file mode 100644 index 0000000000..d5f7164751 --- /dev/null +++ b/packages/fineract-client/src/models/interopQuoteRequestData.ts @@ -0,0 +1,47 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GeoCodeData } from './geoCodeData'; +import { MoneyData } from './moneyData'; +import { InteropTransactionTypeData } from './interopTransactionTypeData'; +import { ExtensionData } from './extensionData'; + + +export interface InteropQuoteRequestData { + accountId: string; + amount: MoneyData; + amountType: InteropQuoteRequestData.AmountTypeEnum; + expiration?: string; + expirationLocalDate?: string; + extensionList?: Array; + fees?: MoneyData; + geoCode?: GeoCodeData; + note?: string; + quoteCode: string; + requestCode?: string; + transactionCode: string; + transactionRole: InteropQuoteRequestData.TransactionRoleEnum; + transactionType?: InteropTransactionTypeData; +} +export namespace InteropQuoteRequestData { + export type AmountTypeEnum = 'SEND' | 'RECEIVE'; + export const AmountTypeEnum = { + Send: 'SEND' as AmountTypeEnum, + Receive: 'RECEIVE' as AmountTypeEnum + }; + export type TransactionRoleEnum = 'PAYER' | 'PAYEE'; + export const TransactionRoleEnum = { + Payer: 'PAYER' as TransactionRoleEnum, + Payee: 'PAYEE' as TransactionRoleEnum + }; +} + + diff --git a/packages/fineract-client/src/models/interopQuoteResponseData.ts b/packages/fineract-client/src/models/interopQuoteResponseData.ts new file mode 100644 index 0000000000..53793d7a19 --- /dev/null +++ b/packages/fineract-client/src/models/interopQuoteResponseData.ts @@ -0,0 +1,52 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { MoneyData } from './moneyData'; +import { ExternalId } from './externalId'; +import { ExtensionData } from './extensionData'; + + +export interface InteropQuoteResponseData { + changes?: { [key: string]: object; }; + clientId?: number; + commandId?: number; + creditBureauReportData?: { [key: string]: object; }; + expiration?: string; + extensionList?: Array; + fspCommission?: MoneyData; + fspFee?: MoneyData; + glimId?: number; + groupId?: number; + gsimId?: number; + loanId?: number; + officeId?: number; + productId?: number; + quoteCode: string; + resourceExternalId?: ExternalId; + resourceId?: number; + resourceIdentifier?: string; + rollbackTransaction?: boolean; + savingsId?: number; + state: InteropQuoteResponseData.StateEnum; + subResourceExternalId?: ExternalId; + subResourceId?: number; + transactionCode: string; + transactionId?: string; +} +export namespace InteropQuoteResponseData { + export type StateEnum = 'ACCEPTED' | 'REJECTED'; + export const StateEnum = { + Accepted: 'ACCEPTED' as StateEnum, + Rejected: 'REJECTED' as StateEnum + }; +} + + diff --git a/packages/fineract-client/src/models/interopTransactionRequestData.ts b/packages/fineract-client/src/models/interopTransactionRequestData.ts new file mode 100644 index 0000000000..e1bfc22fca --- /dev/null +++ b/packages/fineract-client/src/models/interopTransactionRequestData.ts @@ -0,0 +1,39 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GeoCodeData } from './geoCodeData'; +import { MoneyData } from './moneyData'; +import { InteropTransactionTypeData } from './interopTransactionTypeData'; +import { ExtensionData } from './extensionData'; + + +export interface InteropTransactionRequestData { + accountId: string; + amount: MoneyData; + expiration?: string; + expirationLocalDate?: string; + extensionList?: Array; + geoCode?: GeoCodeData; + note?: string; + requestCode?: string; + transactionCode: string; + transactionRole: InteropTransactionRequestData.TransactionRoleEnum; + transactionType?: InteropTransactionTypeData; +} +export namespace InteropTransactionRequestData { + export type TransactionRoleEnum = 'PAYER' | 'PAYEE'; + export const TransactionRoleEnum = { + Payer: 'PAYER' as TransactionRoleEnum, + Payee: 'PAYEE' as TransactionRoleEnum + }; +} + + diff --git a/packages/fineract-client/src/models/interopTransactionRequestResponseData.ts b/packages/fineract-client/src/models/interopTransactionRequestResponseData.ts new file mode 100644 index 0000000000..0124919f8c --- /dev/null +++ b/packages/fineract-client/src/models/interopTransactionRequestResponseData.ts @@ -0,0 +1,49 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalId } from './externalId'; +import { ExtensionData } from './extensionData'; + + +export interface InteropTransactionRequestResponseData { + changes?: { [key: string]: object; }; + clientId?: number; + commandId?: number; + creditBureauReportData?: { [key: string]: object; }; + expiration?: string; + extensionList?: Array; + glimId?: number; + groupId?: number; + gsimId?: number; + loanId?: number; + officeId?: number; + productId?: number; + requestCode: string; + resourceExternalId?: ExternalId; + resourceId?: number; + resourceIdentifier?: string; + rollbackTransaction?: boolean; + savingsId?: number; + state: InteropTransactionRequestResponseData.StateEnum; + subResourceExternalId?: ExternalId; + subResourceId?: number; + transactionCode: string; + transactionId?: string; +} +export namespace InteropTransactionRequestResponseData { + export type StateEnum = 'ACCEPTED' | 'REJECTED'; + export const StateEnum = { + Accepted: 'ACCEPTED' as StateEnum, + Rejected: 'REJECTED' as StateEnum + }; +} + + diff --git a/packages/fineract-client/src/models/interopTransactionTypeData.ts b/packages/fineract-client/src/models/interopTransactionTypeData.ts new file mode 100644 index 0000000000..ae86c6f463 --- /dev/null +++ b/packages/fineract-client/src/models/interopTransactionTypeData.ts @@ -0,0 +1,43 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface InteropTransactionTypeData { + initiator: InteropTransactionTypeData.InitiatorEnum; + initiatorType: InteropTransactionTypeData.InitiatorTypeEnum; + scenario: InteropTransactionTypeData.ScenarioEnum; + subScenario?: string; +} +export namespace InteropTransactionTypeData { + export type InitiatorEnum = 'PAYER' | 'PAYEE'; + export const InitiatorEnum = { + Payer: 'PAYER' as InitiatorEnum, + Payee: 'PAYEE' as InitiatorEnum + }; + export type InitiatorTypeEnum = 'CONSUMER' | 'AGENT' | 'BUSINESS' | 'DEVICE'; + export const InitiatorTypeEnum = { + Consumer: 'CONSUMER' as InitiatorTypeEnum, + Agent: 'AGENT' as InitiatorTypeEnum, + Business: 'BUSINESS' as InitiatorTypeEnum, + Device: 'DEVICE' as InitiatorTypeEnum + }; + export type ScenarioEnum = 'DEPOSIT' | 'WITHDRAWAL' | 'TRANSFER' | 'PAYMENT' | 'REFUND'; + export const ScenarioEnum = { + Deposit: 'DEPOSIT' as ScenarioEnum, + Withdrawal: 'WITHDRAWAL' as ScenarioEnum, + Transfer: 'TRANSFER' as ScenarioEnum, + Payment: 'PAYMENT' as ScenarioEnum, + Refund: 'REFUND' as ScenarioEnum + }; +} + + diff --git a/packages/fineract-client/src/models/interopTransactionsData.ts b/packages/fineract-client/src/models/interopTransactionsData.ts new file mode 100644 index 0000000000..3a3ed08fa2 --- /dev/null +++ b/packages/fineract-client/src/models/interopTransactionsData.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalId } from './externalId'; + + +export interface InteropTransactionsData { + changes?: { [key: string]: object; }; + clientId?: number; + commandId?: number; + creditBureauReportData?: { [key: string]: object; }; + glimId?: number; + groupId?: number; + gsimId?: number; + loanId?: number; + officeId?: number; + productId?: number; + resourceExternalId?: ExternalId; + resourceId?: number; + resourceIdentifier?: string; + rollbackTransaction?: boolean; + savingsId?: number; + subResourceExternalId?: ExternalId; + subResourceId?: number; + transactionId?: string; +} + diff --git a/packages/fineract-client/src/models/interopTransferRequestData.ts b/packages/fineract-client/src/models/interopTransferRequestData.ts new file mode 100644 index 0000000000..b2364f439f --- /dev/null +++ b/packages/fineract-client/src/models/interopTransferRequestData.ts @@ -0,0 +1,42 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GeoCodeData } from './geoCodeData'; +import { MoneyData } from './moneyData'; +import { InteropTransactionTypeData } from './interopTransactionTypeData'; +import { ExtensionData } from './extensionData'; + + +export interface InteropTransferRequestData { + accountId: string; + amount: MoneyData; + expiration?: string; + expirationLocalDate?: string; + extensionList?: Array; + fspCommission?: MoneyData; + fspFee?: MoneyData; + geoCode?: GeoCodeData; + note?: string; + requestCode?: string; + transactionCode: string; + transactionRole: InteropTransferRequestData.TransactionRoleEnum; + transactionType?: InteropTransactionTypeData; + transferCode: string; +} +export namespace InteropTransferRequestData { + export type TransactionRoleEnum = 'PAYER' | 'PAYEE'; + export const TransactionRoleEnum = { + Payer: 'PAYER' as TransactionRoleEnum, + Payee: 'PAYEE' as TransactionRoleEnum + }; +} + + diff --git a/packages/fineract-client/src/models/interopTransferResponseData.ts b/packages/fineract-client/src/models/interopTransferResponseData.ts new file mode 100644 index 0000000000..c2139a12a2 --- /dev/null +++ b/packages/fineract-client/src/models/interopTransferResponseData.ts @@ -0,0 +1,50 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalId } from './externalId'; +import { ExtensionData } from './extensionData'; + + +export interface InteropTransferResponseData { + changes?: { [key: string]: object; }; + clientId?: number; + commandId?: number; + completedTimestamp?: string; + creditBureauReportData?: { [key: string]: object; }; + expiration?: string; + extensionList?: Array; + glimId?: number; + groupId?: number; + gsimId?: number; + loanId?: number; + officeId?: number; + productId?: number; + resourceExternalId?: ExternalId; + resourceId?: number; + resourceIdentifier?: string; + rollbackTransaction?: boolean; + savingsId?: number; + state: InteropTransferResponseData.StateEnum; + subResourceExternalId?: ExternalId; + subResourceId?: number; + transactionCode: string; + transactionId?: string; + transferCode: string; +} +export namespace InteropTransferResponseData { + export type StateEnum = 'ACCEPTED' | 'REJECTED'; + export const StateEnum = { + Accepted: 'ACCEPTED' as StateEnum, + Rejected: 'REJECTED' as StateEnum + }; +} + + diff --git a/packages/fineract-client/src/models/isCatchUpRunningResponse.ts b/packages/fineract-client/src/models/isCatchUpRunningResponse.ts new file mode 100644 index 0000000000..d02d6a191e --- /dev/null +++ b/packages/fineract-client/src/models/isCatchUpRunningResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * IsCatchUpRunningResponse + */ +export interface IsCatchUpRunningResponse { + isCatchUpRunning?: boolean; + processingDate?: string; +} + diff --git a/packages/fineract-client/src/models/jobDetailHistoryData.ts b/packages/fineract-client/src/models/jobDetailHistoryData.ts new file mode 100644 index 0000000000..acc60f1b39 --- /dev/null +++ b/packages/fineract-client/src/models/jobDetailHistoryData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface JobDetailHistoryData { + jobRunEndTime?: string; + jobRunErrorLog?: string; + jobRunErrorMessage?: string; + jobRunStartTime?: string; + status?: string; + triggerType?: string; + version?: number; +} + diff --git a/packages/fineract-client/src/models/jobDetailHistoryDataSwagger.ts b/packages/fineract-client/src/models/jobDetailHistoryDataSwagger.ts new file mode 100644 index 0000000000..81d8f91613 --- /dev/null +++ b/packages/fineract-client/src/models/jobDetailHistoryDataSwagger.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface JobDetailHistoryDataSwagger { + jobRunEndTime?: string; + jobRunStartTime?: string; + status?: string; + triggerType?: string; + version?: number; +} + diff --git a/packages/fineract-client/src/models/jobParameterDTO.ts b/packages/fineract-client/src/models/jobParameterDTO.ts new file mode 100644 index 0000000000..b45351a82e --- /dev/null +++ b/packages/fineract-client/src/models/jobParameterDTO.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface JobParameterDTO { + parameterName?: string; + parameterValue?: string; +} + diff --git a/packages/fineract-client/src/models/journalEntryCommand.ts b/packages/fineract-client/src/models/journalEntryCommand.ts new file mode 100644 index 0000000000..17d4cf2e0a --- /dev/null +++ b/packages/fineract-client/src/models/journalEntryCommand.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { SingleDebitOrCreditEntryCommand } from './singleDebitOrCreditEntryCommand'; + + +export interface JournalEntryCommand { + accountNumber?: string; + accountingRuleId?: number; + amount?: number; + bankNumber?: string; + checkNumber?: string; + comments?: string; + credits?: Array; + currencyCode?: string; + debits?: Array; + officeId?: number; + paymentTypeId?: number; + receiptNumber?: string; + referenceNumber?: string; + routingCode?: string; + transactionDate?: string; +} + diff --git a/packages/fineract-client/src/models/journalEntryData.ts b/packages/fineract-client/src/models/journalEntryData.ts new file mode 100644 index 0000000000..bb95c3837d --- /dev/null +++ b/packages/fineract-client/src/models/journalEntryData.ts @@ -0,0 +1,59 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CreditDebit } from './creditDebit'; +import { CurrencyData } from './currencyData'; +import { TransactionDetailData } from './transactionDetailData'; +import { EnumOptionData } from './enumOptionData'; + + +export interface JournalEntryData { + accountNumber?: string; + amount?: number; + bankNumber?: string; + checkNumber?: string; + comments?: string; + createdByUserId?: number; + createdByUserName?: string; + createdDate?: string; + credits?: Array; + currency?: CurrencyData; + currencyCode?: string; + dateFormat?: string; + debits?: Array; + entityId?: number; + entityType?: EnumOptionData; + entryType?: EnumOptionData; + glAccountCode?: string; + glAccountId?: number; + glAccountName?: string; + glAccountType?: EnumOptionData; + id?: number; + locale?: string; + manualEntry?: boolean; + officeId?: number; + officeName?: string; + officeRunningBalance?: number; + organizationRunningBalance?: number; + paymentTypeId?: number; + receiptNumber?: string; + referenceNumber?: string; + reversed?: boolean; + routingCode?: string; + rowIndex?: number; + runningBalanceComputed?: boolean; + savingTransactionId?: number; + submittedOnDate?: string; + transactionDate?: string; + transactionDetails?: TransactionDetailData; + transactionId?: string; +} + diff --git a/packages/fineract-client/src/models/journalEntryTransactionItem.ts b/packages/fineract-client/src/models/journalEntryTransactionItem.ts new file mode 100644 index 0000000000..db191c0980 --- /dev/null +++ b/packages/fineract-client/src/models/journalEntryTransactionItem.ts @@ -0,0 +1,45 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CurrencyItem } from './currencyItem'; +import { EnumOptionType } from './enumOptionType'; +import { TransactionDetails } from './transactionDetails'; + + +export interface JournalEntryTransactionItem { + amount?: number; + comments?: string; + createdByUserId?: number; + createdByUserName?: string; + createdDate?: string; + currency?: CurrencyItem; + entityId?: number; + entityType?: EnumOptionType; + entryType?: EnumOptionType; + glAccountCode?: string; + glAccountId?: number; + glAccountName?: string; + glAccountType?: EnumOptionType; + id?: number; + manualEntry?: boolean; + officeId?: number; + officeName?: string; + officeRunningBalance?: number; + organizationRunningBalance?: number; + referenceNumber?: string; + reversed?: boolean; + runningBalanceComputed?: boolean; + submittedOnDate?: string; + transactionDate?: string; + transactionDetails?: TransactionDetails; + transactionId?: string; +} + diff --git a/packages/fineract-client/src/models/loanAccountLock.ts b/packages/fineract-client/src/models/loanAccountLock.ts new file mode 100644 index 0000000000..347fe6db2e --- /dev/null +++ b/packages/fineract-client/src/models/loanAccountLock.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface LoanAccountLock { + error?: string; + loanId?: number; + lockOwner?: LoanAccountLock.LockOwnerEnum; + lockPlacedOn?: string; + lockPlacedOnCobBusinessDate?: string; + newLockOwner?: LoanAccountLock.NewLockOwnerEnum; + stacktrace?: string; + version?: number; +} +export namespace LoanAccountLock { + export type LockOwnerEnum = 'LOAN_COB_CHUNK_PROCESSING' | 'LOAN_INLINE_COB_PROCESSING'; + export const LockOwnerEnum = { + CobChunkProcessing: 'LOAN_COB_CHUNK_PROCESSING' as LockOwnerEnum, + InlineCobProcessing: 'LOAN_INLINE_COB_PROCESSING' as LockOwnerEnum + }; + export type NewLockOwnerEnum = 'LOAN_COB_CHUNK_PROCESSING' | 'LOAN_INLINE_COB_PROCESSING'; + export const NewLockOwnerEnum = { + CobChunkProcessing: 'LOAN_COB_CHUNK_PROCESSING' as NewLockOwnerEnum, + InlineCobProcessing: 'LOAN_INLINE_COB_PROCESSING' as NewLockOwnerEnum + }; +} + + diff --git a/packages/fineract-client/src/models/loanProduct.ts b/packages/fineract-client/src/models/loanProduct.ts new file mode 100644 index 0000000000..67221d3390 --- /dev/null +++ b/packages/fineract-client/src/models/loanProduct.ts @@ -0,0 +1,93 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Money } from './money'; +import { MonetaryCurrency } from './monetaryCurrency'; +import { LoanProductGuaranteeDetails } from './loanProductGuaranteeDetails'; +import { Rate } from './rate'; +import { ExternalId } from './externalId'; +import { Charge } from './charge'; +import { LoanProductConfigurableAttributes } from './loanProductConfigurableAttributes'; +import { DelinquencyBucket } from './delinquencyBucket'; +import { LoanProductTrancheDetails } from './loanProductTrancheDetails'; +import { LoanProductInterestRecalculationDetails } from './loanProductInterestRecalculationDetails'; +import { LoanProductRelatedDetail } from './loanProductRelatedDetail'; +import { LoanProductFloatingRates } from './loanProductFloatingRates'; + + +export interface LoanProduct { + accountingDisabled?: boolean; + accountingType?: number; + accrualBasedAccountingEnabled?: boolean; + allowApprovedDisbursedAmountsOverApplied?: boolean; + arrearsBasedOnOriginalSchedule?: boolean; + cashBasedAccountingEnabled?: boolean; + closeDate?: string; + currency?: MonetaryCurrency; + delinquencyBucket?: DelinquencyBucket; + disallowExpectedDisbursements?: boolean; + dueDaysForRepaymentEvent?: number; + equalAmortization?: boolean; + externalId?: ExternalId; + fixedPrincipalPercentagePerInstallment?: number; + floatingRates?: LoanProductFloatingRates; + holdGuaranteeFundsEnabled?: boolean; + id?: number; + includeInBorrowerCycle?: boolean; + installmentAmountInMultiplesOf?: number; + interestPeriodFrequencyType?: LoanProduct.InterestPeriodFrequencyTypeEnum; + interestRecalculationEnabled?: boolean; + linkedToFloatingInterestRate?: boolean; + loanProductCharges?: Array; + loanProductConfigurableAttributes?: LoanProductConfigurableAttributes; + loanProductGuaranteeDetails?: LoanProductGuaranteeDetails; + loanProductRelatedDetail?: LoanProductRelatedDetail; + loanProductTrancheDetails?: LoanProductTrancheDetails; + maxNominalInterestRatePerPeriod?: number; + maxNumberOfRepayments?: number; + maxPrincipalAmount?: Money; + minNominalInterestRatePerPeriod?: number; + minNumberOfRepayments?: number; + minPrincipalAmount?: Money; + minimumDaysBetweenDisbursalAndFirstRepayment?: number; + multiDisburseLoan?: boolean; + _new?: boolean; + nominalInterestRatePerPeriod?: number; + numberOfRepayments?: number; + overAppliedCalculationType?: string; + overAppliedNumber?: number; + overDueDaysForRepaymentEvent?: number; + periodicAccrualAccountingEnabled?: boolean; + principalAmount?: Money; + principalThresholdForLastInstallment?: number; + productInterestRecalculationDetails?: LoanProductInterestRecalculationDetails; + rates?: Array; + repaymentStrategy?: string; + shortName?: string; + startDate?: string; + syncExpectedWithDisbursementDate?: boolean; + transactionProcessingStrategyCode?: string; + transactionProcessingStrategyName?: string; + upfrontAccrualAccountingEnabled?: boolean; +} +export namespace LoanProduct { + export type InterestPeriodFrequencyTypeEnum = 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS' | 'WHOLE_TERM' | 'INVALID'; + export const InterestPeriodFrequencyTypeEnum = { + Days: 'DAYS' as InterestPeriodFrequencyTypeEnum, + Weeks: 'WEEKS' as InterestPeriodFrequencyTypeEnum, + Months: 'MONTHS' as InterestPeriodFrequencyTypeEnum, + Years: 'YEARS' as InterestPeriodFrequencyTypeEnum, + WholeTerm: 'WHOLE_TERM' as InterestPeriodFrequencyTypeEnum, + Invalid: 'INVALID' as InterestPeriodFrequencyTypeEnum + }; +} + + diff --git a/packages/fineract-client/src/models/loanProductBorrowerCycleVariationData.ts b/packages/fineract-client/src/models/loanProductBorrowerCycleVariationData.ts new file mode 100644 index 0000000000..a6d955c4c9 --- /dev/null +++ b/packages/fineract-client/src/models/loanProductBorrowerCycleVariationData.ts @@ -0,0 +1,42 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +export interface LoanProductBorrowerCycleVariationData { + borrowerCycleNumber?: number; + defaultValue?: number; + id?: number; + loanProductParamType?: LoanProductBorrowerCycleVariationData.LoanProductParamTypeEnum; + loanProductValueConditionType?: LoanProductBorrowerCycleVariationData.LoanProductValueConditionTypeEnum; + maxValue?: number; + minValue?: number; + paramType?: EnumOptionData; + valueConditionType?: EnumOptionData; +} +export namespace LoanProductBorrowerCycleVariationData { + export type LoanProductParamTypeEnum = 'INVALID' | 'PRINCIPAL' | 'INTERESTRATE' | 'REPAYMENT'; + export const LoanProductParamTypeEnum = { + Invalid: 'INVALID' as LoanProductParamTypeEnum, + Principal: 'PRINCIPAL' as LoanProductParamTypeEnum, + Interestrate: 'INTERESTRATE' as LoanProductParamTypeEnum, + Repayment: 'REPAYMENT' as LoanProductParamTypeEnum + }; + export type LoanProductValueConditionTypeEnum = 'INVALID' | 'EQUAL' | 'GREATERTHAN'; + export const LoanProductValueConditionTypeEnum = { + Invalid: 'INVALID' as LoanProductValueConditionTypeEnum, + Equal: 'EQUAL' as LoanProductValueConditionTypeEnum, + Greaterthan: 'GREATERTHAN' as LoanProductValueConditionTypeEnum + }; +} + + diff --git a/packages/fineract-client/src/models/loanProductConfigurableAttributes.ts b/packages/fineract-client/src/models/loanProductConfigurableAttributes.ts new file mode 100644 index 0000000000..584e562541 --- /dev/null +++ b/packages/fineract-client/src/models/loanProductConfigurableAttributes.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { LoanProduct } from './loanProduct'; + + +export interface LoanProductConfigurableAttributes { + amortizationBoolean?: boolean; + amortizationType?: boolean; + arrearsToleranceBoolean?: boolean; + graceOnArrearsAgeing?: boolean; + graceOnArrearsAgingBoolean?: boolean; + graceOnPrincipalAndInterestPayment?: boolean; + graceOnPrincipalAndInterestPaymentBoolean?: boolean; + id?: number; + inArrearsTolerance?: boolean; + interestCalcPeriodBoolean?: boolean; + interestCalculationPeriodType?: boolean; + interestMethodBoolean?: boolean; + interestType?: boolean; + loanProduct?: LoanProduct; + _new?: boolean; + repaymentEvery?: boolean; + repaymentEveryBoolean?: boolean; + transactionProcessingStrategyBoolean?: boolean; + transactionProcessingStrategyCode?: boolean; +} + diff --git a/packages/fineract-client/src/models/loanProductData.ts b/packages/fineract-client/src/models/loanProductData.ts new file mode 100644 index 0000000000..9a11961f80 --- /dev/null +++ b/packages/fineract-client/src/models/loanProductData.ts @@ -0,0 +1,152 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GLAccountData } from './gLAccountData'; +import { TransactionProcessingStrategyData } from './transactionProcessingStrategyData'; +import { LoanProductConfigurableAttributes } from './loanProductConfigurableAttributes'; +import { FundData } from './fundData'; +import { LoanProductGuaranteeData } from './loanProductGuaranteeData'; +import { ChargeData } from './chargeData'; +import { EnumOptionData } from './enumOptionData'; +import { PaymentTypeData } from './paymentTypeData'; +import { ChargeToGLAccountMapper } from './chargeToGLAccountMapper'; +import { LoanProductBorrowerCycleVariationData } from './loanProductBorrowerCycleVariationData'; +import { CurrencyData } from './currencyData'; +import { DelinquencyBucketData } from './delinquencyBucketData'; +import { RateData } from './rateData'; +import { FloatingRateData } from './floatingRateData'; +import { LoanProductInterestRecalculationData } from './loanProductInterestRecalculationData'; +import { PaymentTypeToGLAccountMapper } from './paymentTypeToGLAccountMapper'; + + +export interface LoanProductData { + accountMovesOutOfNPAOnlyOnArrearsCompletion?: boolean; + accountingMappingOptions?: { [key: string]: Array; }; + accountingMappings?: { [key: string]: object; }; + accountingRule?: EnumOptionData; + accountingRuleOptions?: Array; + allowApprovedDisbursedAmountsOverApplied?: boolean; + allowAttributeOverrides?: LoanProductConfigurableAttributes; + allowPartialPeriodInterestCalculation?: boolean; + allowVariableInstallments?: boolean; + amortizationType?: EnumOptionData; + amortizationTypeOptions?: Array; + annualInterestRate?: number; + canDefineInstallmentAmount?: boolean; + canUseForTopup?: boolean; + chargeOptions?: Array; + charges?: Array; + closeDate?: string; + compoundingToBePostedAsTransaction?: boolean; + currency?: CurrencyData; + currencyOptions?: Array; + daysInMonthType?: EnumOptionData; + daysInMonthTypeOptions?: Array; + daysInYearType?: EnumOptionData; + daysInYearTypeOptions?: Array; + defaultDifferentialLendingRate?: number; + delinquencyBucket?: DelinquencyBucketData; + delinquencyBucketOptions?: Array; + description?: string; + disallowExpectedDisbursements?: boolean; + dueDaysForRepaymentEvent?: number; + equalAmortization?: boolean; + externalId?: string; + feeToIncomeAccountMappings?: Array; + fixedPrincipalPercentagePerInstallment?: number; + floatingInterestRateCalculationAllowed?: boolean; + floatingRateId?: number; + floatingRateName?: string; + floatingRateOptions?: Array; + fundId?: number; + fundName?: string; + fundOptions?: Array; + graceOnArrearsAgeing?: number; + graceOnInterestCharged?: number; + graceOnInterestPayment?: number; + graceOnPrincipalPayment?: number; + holdGuaranteeFunds?: boolean; + id?: number; + inArrearsTolerance?: number; + includeInBorrowerCycle?: boolean; + installmentAmountInMultiplesOf?: number; + interestCalculationPeriodType?: EnumOptionData; + interestCalculationPeriodTypeOptions?: Array; + interestRateDifferential?: number; + interestRateFrequencyType?: EnumOptionData; + interestRateFrequencyTypeOptions?: Array; + interestRatePerPeriod?: number; + interestRateVariationsForBorrowerCycle?: Array; + interestRecalculationCompoundingTypeOptions?: Array; + interestRecalculationData?: LoanProductInterestRecalculationData; + interestRecalculationDayOfWeekTypeOptions?: Array; + interestRecalculationEnabled?: boolean; + interestRecalculationFrequencyTypeOptions?: Array; + interestRecalculationNthDayTypeOptions?: Array; + interestType?: EnumOptionData; + interestTypeOptions?: Array; + isAllowPartialPeriodInterestCalculation?: boolean; + isEqualAmortization?: boolean; + isFloatingInterestRateCalculationAllowed?: boolean; + isInterestRecalculationEnabled?: boolean; + isLinkedToFloatingInterestRates?: boolean; + isRatesEnabled?: boolean; + linkedToFloatingInterestRates?: boolean; + loanProductConfigurableAttributes?: LoanProductConfigurableAttributes; + maxDifferentialLendingRate?: number; + maxInterestRatePerPeriod?: number; + maxNumberOfRepayments?: number; + maxPrincipal?: number; + maxTrancheCount?: number; + maximumGap?: number; + minDifferentialLendingRate?: number; + minInterestRatePerPeriod?: number; + minNumberOfRepayments?: number; + minPrincipal?: number; + minimumDaysBetweenDisbursalAndFirstRepayment?: number; + minimumGap?: number; + multiDisburseLoan?: boolean; + name?: string; + numberOfRepaymentVariationsForBorrowerCycle?: Array; + numberOfRepayments?: number; + outstandingLoanBalance?: number; + overAppliedCalculationType?: string; + overAppliedNumber?: number; + overDueDaysForRepaymentEvent?: number; + overdueDaysForNPA?: number; + paymentChannelToFundSourceMappings?: Array; + paymentTypeOptions?: Array; + penaltyOptions?: Array; + penaltyToIncomeAccountMappings?: Array; + preClosureInterestCalculationStrategyOptions?: Array; + principal?: number; + principalThresholdForLastInstallment?: number; + principalVariationsForBorrowerCycle?: Array; + productGuaranteeData?: LoanProductGuaranteeData; + rateOptions?: Array; + rates?: Array; + ratesEnabled?: boolean; + recurringMoratoriumOnPrincipalPeriods?: number; + repaymentEvery?: number; + repaymentFrequencyType?: EnumOptionData; + repaymentFrequencyTypeOptions?: Array; + rescheduleStrategyTypeOptions?: Array; + shortName?: string; + startDate?: string; + status?: string; + syncExpectedWithDisbursementDate?: boolean; + transactionProcessingStrategyCode?: string; + transactionProcessingStrategyName?: string; + transactionProcessingStrategyOptions?: Array; + useBorrowerCycle?: boolean; + valueConditionTypeOptions?: Array; +} + diff --git a/packages/fineract-client/src/models/loanProductFloatingRates.ts b/packages/fineract-client/src/models/loanProductFloatingRates.ts new file mode 100644 index 0000000000..2c15e04d1f --- /dev/null +++ b/packages/fineract-client/src/models/loanProductFloatingRates.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { FloatingRate } from './floatingRate'; +import { LoanProduct } from './loanProduct'; + + +export interface LoanProductFloatingRates { + defaultDifferentialLendingRate?: number; + floatingInterestRateCalculationAllowed?: boolean; + floatingRate?: FloatingRate; + id?: number; + interestRateDifferential?: number; + loanProduct?: LoanProduct; + maxDifferentialLendingRate?: number; + minDifferentialLendingRate?: number; + _new?: boolean; +} + diff --git a/packages/fineract-client/src/models/loanProductGuaranteeData.ts b/packages/fineract-client/src/models/loanProductGuaranteeData.ts new file mode 100644 index 0000000000..ac32e696bf --- /dev/null +++ b/packages/fineract-client/src/models/loanProductGuaranteeData.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface LoanProductGuaranteeData { + id?: number; + mandatoryGuarantee?: number; + minimumGuaranteeFromGuarantor?: number; + minimumGuaranteeFromOwnFunds?: number; + productId?: number; +} + diff --git a/packages/fineract-client/src/models/loanProductGuaranteeDetails.ts b/packages/fineract-client/src/models/loanProductGuaranteeDetails.ts new file mode 100644 index 0000000000..2cb5982a99 --- /dev/null +++ b/packages/fineract-client/src/models/loanProductGuaranteeDetails.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface LoanProductGuaranteeDetails { + id?: number; + mandatoryGuarantee?: number; + minimumGuaranteeFromGuarantor?: number; + minimumGuaranteeFromOwnFunds?: number; + _new?: boolean; +} + diff --git a/packages/fineract-client/src/models/loanProductInterestRecalculationData.ts b/packages/fineract-client/src/models/loanProductInterestRecalculationData.ts new file mode 100644 index 0000000000..a201b7d79a --- /dev/null +++ b/packages/fineract-client/src/models/loanProductInterestRecalculationData.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +export interface LoanProductInterestRecalculationData { + allowCompoundingOnEod?: boolean; + arrearsBasedOnOriginalSchedule?: boolean; + compoundingToBePostedAsTransaction?: boolean; + id?: number; + interestRecalculationCompoundingType?: EnumOptionData; + isArrearsBasedOnOriginalSchedule?: boolean; + isCompoundingToBePostedAsTransaction?: boolean; + preClosureInterestCalculationStrategy?: EnumOptionData; + productId?: number; + recalculationCompoundingFrequencyInterval?: number; + recalculationCompoundingFrequencyNthDay?: EnumOptionData; + recalculationCompoundingFrequencyOnDay?: number; + recalculationCompoundingFrequencyType?: EnumOptionData; + recalculationCompoundingFrequencyWeekday?: EnumOptionData; + recalculationRestFrequencyInterval?: number; + recalculationRestFrequencyNthDay?: EnumOptionData; + recalculationRestFrequencyOnDay?: number; + recalculationRestFrequencyType?: EnumOptionData; + recalculationRestFrequencyWeekday?: EnumOptionData; + rescheduleStrategyType?: EnumOptionData; +} + diff --git a/packages/fineract-client/src/models/loanProductInterestRecalculationDetails.ts b/packages/fineract-client/src/models/loanProductInterestRecalculationDetails.ts new file mode 100644 index 0000000000..c09ce9324a --- /dev/null +++ b/packages/fineract-client/src/models/loanProductInterestRecalculationDetails.ts @@ -0,0 +1,51 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface LoanProductInterestRecalculationDetails { + arrearsBasedOnOriginalSchedule?: boolean; + compoundingFrequencyNthDay?: number; + compoundingFrequencyOnDay?: number; + compoundingFrequencyType?: LoanProductInterestRecalculationDetails.CompoundingFrequencyTypeEnum; + compoundingFrequencyWeekday?: number; + compoundingInterval?: number; + id?: number; + interestRecalculationCompoundingMethod?: number; + isCompoundingToBePostedAsTransaction?: boolean; + _new?: boolean; + rescheduleStrategyMethod?: number; + restFrequencyNthDay?: number; + restFrequencyOnDay?: number; + restFrequencyType?: LoanProductInterestRecalculationDetails.RestFrequencyTypeEnum; + restFrequencyWeekday?: number; + restInterval?: number; +} +export namespace LoanProductInterestRecalculationDetails { + export type CompoundingFrequencyTypeEnum = 'INVALID' | 'SAME_AS_REPAYMENT_PERIOD' | 'DAILY' | 'WEEKLY' | 'MONTHLY'; + export const CompoundingFrequencyTypeEnum = { + Invalid: 'INVALID' as CompoundingFrequencyTypeEnum, + SameAsRepaymentPeriod: 'SAME_AS_REPAYMENT_PERIOD' as CompoundingFrequencyTypeEnum, + Daily: 'DAILY' as CompoundingFrequencyTypeEnum, + Weekly: 'WEEKLY' as CompoundingFrequencyTypeEnum, + Monthly: 'MONTHLY' as CompoundingFrequencyTypeEnum + }; + export type RestFrequencyTypeEnum = 'INVALID' | 'SAME_AS_REPAYMENT_PERIOD' | 'DAILY' | 'WEEKLY' | 'MONTHLY'; + export const RestFrequencyTypeEnum = { + Invalid: 'INVALID' as RestFrequencyTypeEnum, + SameAsRepaymentPeriod: 'SAME_AS_REPAYMENT_PERIOD' as RestFrequencyTypeEnum, + Daily: 'DAILY' as RestFrequencyTypeEnum, + Weekly: 'WEEKLY' as RestFrequencyTypeEnum, + Monthly: 'MONTHLY' as RestFrequencyTypeEnum + }; +} + + diff --git a/packages/fineract-client/src/models/loanProductProvisioningEntryData.ts b/packages/fineract-client/src/models/loanProductProvisioningEntryData.ts new file mode 100644 index 0000000000..91e207ce67 --- /dev/null +++ b/packages/fineract-client/src/models/loanProductProvisioningEntryData.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface LoanProductProvisioningEntryData { + amountreserved?: number; + balance?: number; + categoryId?: number; + categoryName?: string; + criteriaId?: number; + currencyCode?: string; + expenseAccount?: number; + expenseAccountCode?: string; + expenseAccountName?: string; + historyId?: number; + liabilityAccountCode?: string; + liabilityAccountName?: string; + liablityAccount?: number; + officeId?: number; + officeName?: string; + overdueInDays?: number; + percentage?: number; + productId?: number; + productName?: string; +} + diff --git a/packages/fineract-client/src/models/loanProductRelatedDetail.ts b/packages/fineract-client/src/models/loanProductRelatedDetail.ts new file mode 100644 index 0000000000..12f19a1d88 --- /dev/null +++ b/packages/fineract-client/src/models/loanProductRelatedDetail.ts @@ -0,0 +1,77 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Money } from './money'; +import { MonetaryCurrency } from './monetaryCurrency'; + + +export interface LoanProductRelatedDetail { + allowPartialPeriodInterestCalcualtion?: boolean; + amortizationMethod?: LoanProductRelatedDetail.AmortizationMethodEnum; + annualNominalInterestRate?: number; + arrearsTolerance?: number; + currency?: MonetaryCurrency; + equalAmortization?: boolean; + graceOnArrearsAgeing?: number; + graceOnDueDate?: number; + graceOnInterestPayment?: number; + graceOnPrincipalPayment?: number; + inArrearsTolerance?: Money; + interestCalculationPeriodMethod?: LoanProductRelatedDetail.InterestCalculationPeriodMethodEnum; + interestMethod?: LoanProductRelatedDetail.InterestMethodEnum; + interestPeriodFrequencyType?: LoanProductRelatedDetail.InterestPeriodFrequencyTypeEnum; + interestRecalculationEnabled?: boolean; + nominalInterestRatePerPeriod?: number; + numberOfRepayments?: number; + principal?: Money; + repayEvery?: number; + repaymentPeriodFrequencyType?: LoanProductRelatedDetail.RepaymentPeriodFrequencyTypeEnum; +} +export namespace LoanProductRelatedDetail { + export type AmortizationMethodEnum = 'EQUAL_PRINCIPAL' | 'EQUAL_INSTALLMENTS' | 'INVALID'; + export const AmortizationMethodEnum = { + EqualPrincipal: 'EQUAL_PRINCIPAL' as AmortizationMethodEnum, + EqualInstallments: 'EQUAL_INSTALLMENTS' as AmortizationMethodEnum, + Invalid: 'INVALID' as AmortizationMethodEnum + }; + export type InterestCalculationPeriodMethodEnum = 'DAILY' | 'SAME_AS_REPAYMENT_PERIOD' | 'INVALID'; + export const InterestCalculationPeriodMethodEnum = { + Daily: 'DAILY' as InterestCalculationPeriodMethodEnum, + SameAsRepaymentPeriod: 'SAME_AS_REPAYMENT_PERIOD' as InterestCalculationPeriodMethodEnum, + Invalid: 'INVALID' as InterestCalculationPeriodMethodEnum + }; + export type InterestMethodEnum = 'DECLINING_BALANCE' | 'FLAT' | 'INVALID'; + export const InterestMethodEnum = { + DecliningBalance: 'DECLINING_BALANCE' as InterestMethodEnum, + Flat: 'FLAT' as InterestMethodEnum, + Invalid: 'INVALID' as InterestMethodEnum + }; + export type InterestPeriodFrequencyTypeEnum = 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS' | 'WHOLE_TERM' | 'INVALID'; + export const InterestPeriodFrequencyTypeEnum = { + Days: 'DAYS' as InterestPeriodFrequencyTypeEnum, + Weeks: 'WEEKS' as InterestPeriodFrequencyTypeEnum, + Months: 'MONTHS' as InterestPeriodFrequencyTypeEnum, + Years: 'YEARS' as InterestPeriodFrequencyTypeEnum, + WholeTerm: 'WHOLE_TERM' as InterestPeriodFrequencyTypeEnum, + Invalid: 'INVALID' as InterestPeriodFrequencyTypeEnum + }; + export type RepaymentPeriodFrequencyTypeEnum = 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS' | 'WHOLE_TERM' | 'INVALID'; + export const RepaymentPeriodFrequencyTypeEnum = { + Days: 'DAYS' as RepaymentPeriodFrequencyTypeEnum, + Weeks: 'WEEKS' as RepaymentPeriodFrequencyTypeEnum, + Months: 'MONTHS' as RepaymentPeriodFrequencyTypeEnum, + Years: 'YEARS' as RepaymentPeriodFrequencyTypeEnum, + WholeTerm: 'WHOLE_TERM' as RepaymentPeriodFrequencyTypeEnum, + Invalid: 'INVALID' as RepaymentPeriodFrequencyTypeEnum + }; +} + + diff --git a/packages/fineract-client/src/models/loanProductTrancheDetails.ts b/packages/fineract-client/src/models/loanProductTrancheDetails.ts new file mode 100644 index 0000000000..07cdc3ce35 --- /dev/null +++ b/packages/fineract-client/src/models/loanProductTrancheDetails.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface LoanProductTrancheDetails { + multiDisburseLoan?: boolean; +} + diff --git a/packages/fineract-client/src/models/loanTermTypeOptions.ts b/packages/fineract-client/src/models/loanTermTypeOptions.ts new file mode 100644 index 0000000000..2ffcff384a --- /dev/null +++ b/packages/fineract-client/src/models/loanTermTypeOptions.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface LoanTermTypeOptions { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/loanTermVariationsData.ts b/packages/fineract-client/src/models/loanTermVariationsData.ts new file mode 100644 index 0000000000..4d1cf30f29 --- /dev/null +++ b/packages/fineract-client/src/models/loanTermVariationsData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { LoanTermTypeOptions } from './loanTermTypeOptions'; + + +export interface LoanTermVariationsData { + dateValue?: string; + decimalValue?: number; + id?: number; + isProcessed?: boolean; + isSpecificToInstallment?: boolean; + termType?: LoanTermTypeOptions; + termVariationApplicableFrom?: string; +} + diff --git a/packages/fineract-client/src/models/localTime.ts b/packages/fineract-client/src/models/localTime.ts new file mode 100644 index 0000000000..a49be21348 --- /dev/null +++ b/packages/fineract-client/src/models/localTime.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface LocalTime { + hour?: number; + minute?: number; + nano?: number; + second?: number; +} + diff --git a/packages/fineract-client/src/models/lookupTableData.ts b/packages/fineract-client/src/models/lookupTableData.ts new file mode 100644 index 0000000000..9bd5c93943 --- /dev/null +++ b/packages/fineract-client/src/models/lookupTableData.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { LookupTableEntry } from './lookupTableEntry'; + + +export interface LookupTableData { + description?: string; + entries?: Array; + key?: string; +} + diff --git a/packages/fineract-client/src/models/lookupTableEntry.ts b/packages/fineract-client/src/models/lookupTableEntry.ts new file mode 100644 index 0000000000..f668585e93 --- /dev/null +++ b/packages/fineract-client/src/models/lookupTableEntry.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface LookupTableEntry { + score?: number; + valueFrom?: number; + valueTo?: number; +} + diff --git a/packages/fineract-client/src/models/mediaType.ts b/packages/fineract-client/src/models/mediaType.ts new file mode 100644 index 0000000000..e5ccca29f4 --- /dev/null +++ b/packages/fineract-client/src/models/mediaType.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface MediaType { + parameters?: { [key: string]: string; }; + subtype?: string; + type?: string; + wildcardSubtype?: boolean; + wildcardType?: boolean; +} + diff --git a/packages/fineract-client/src/models/models.ts b/packages/fineract-client/src/models/models.ts new file mode 100644 index 0000000000..c0df3d373d --- /dev/null +++ b/packages/fineract-client/src/models/models.ts @@ -0,0 +1,1339 @@ +export * from './accountTransferData'; +export * from './accountingRuleData'; +export * from './accountingTagRuleData'; +export * from './allowAttributeOverrides'; +export * from './appUser'; +export * from './appUserClientMapping'; +export * from './appUserData'; +export * from './batchRequest'; +export * from './batchResponse'; +export * from './bodyPart'; +export * from './bodyPartHeaders'; +export * from './bodyPartParameterizedHeaders'; +export * from './businessDateRequest'; +export * from './businessDateResponse'; +export * from './businessStep'; +export * from './calendarData'; +export * from './cashierData'; +export * from './cashierTransactionData'; +export * from './cashierTxnType'; +export * from './centerData'; +export * from './changeInstanceModeRequest'; +export * from './charge'; +export * from './chargeData'; +export * from './chargeFeeOnMonthDay'; +export * from './chargeToGLAccountMapper'; +export * from './client'; +export * from './clientCollateralManagementData'; +export * from './clientData'; +export * from './clientFamilyMembersData'; +export * from './clientSearchData'; +export * from './clientTextSearch'; +export * from './clientTimelineData'; +export * from './code'; +export * from './codeValue'; +export * from './codeValueData'; +export * from './commandProcessingResult'; +export * from './commandWrapper'; +export * from './component'; +export * from './componentData'; +export * from './contentDisposition'; +export * from './createStaffResponse'; +export * from './creditDebit'; +export * from './currencyData'; +export * from './currencyItem'; +export * from './datatableData'; +export * from './deleteAccountNumberFormatsResponse'; +export * from './deleteAccountingRulesResponse'; +export * from './deleteCentersCenterIdResponse'; +export * from './deleteChargesChargeIdResponse'; +export * from './deleteClientCollateralResponse'; +export * from './deleteClientsClientIdChargesChargeIdResponse'; +export * from './deleteClientsClientIdIdentifiersIdentifierIdResponse'; +export * from './deleteClientsClientIdResponse'; +export * from './deleteCodeValueDataResponse'; +export * from './deleteCodesResponse'; +export * from './deleteCollateralProductResponse'; +export * from './deleteDataTablesDatatableAppTableIdDatatableIdResponse'; +export * from './deleteDataTablesDatatableAppTableIdResponse'; +export * from './deleteDataTablesResponse'; +export * from './deleteDelinquencyBucketResponse'; +export * from './deleteDelinquencyRangeResponse'; +export * from './deleteEntityDatatableChecksTemplateResponse'; +export * from './deleteEntityTypeEntityIdDocumentsResponse'; +export * from './deleteFinancialActivityAccountsResponse'; +export * from './deleteFixedDepositAccountsAccountIdResponse'; +export * from './deleteFixedDepositProductsProductIdResponse'; +export * from './deleteGLAccountsRequest'; +export * from './deleteGlClosuresResponse'; +export * from './deleteGroupsGroupIdResponse'; +export * from './deleteHolidaysHolidayIdResponse'; +export * from './deleteHookResponse'; +export * from './deleteInterestRateChartsChartIdChartSlabsResponse'; +export * from './deleteInterestRateChartsChartIdResponse'; +export * from './deleteLoansLoanIdChargesChargeIdResponse'; +export * from './deleteLoansLoanIdCollateralsCollateralIdResponse'; +export * from './deleteLoansLoanIdResponse'; +export * from './deletePaymentTypesPaymentTypeIdResponse'; +export * from './deletePostDatedCheck'; +export * from './deleteProvisioningCriteriaResponse'; +export * from './deleteRecurringDepositAccountsResponse'; +export * from './deleteRecurringDepositProductsProductIdResponse'; +export * from './deleteReportMailingJobsResponse'; +export * from './deleteReportsResponse'; +export * from './deleteResourceTypeResourceIdNotesNoteIdResponse'; +export * from './deleteRolesRoleIdResponse'; +export * from './deleteSavingsAccountsAccountIdResponse'; +export * from './deleteSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse'; +export * from './deleteSavingsProductsProductIdResponse'; +export * from './deleteSelfBeneficiariesTPTBeneficiaryIdResponse'; +export * from './deleteTellersTellerIdCashiersCashierIdResponse'; +export * from './deleteTemplatesTemplateIdResponse'; +export * from './deleteUsersUserIdResponse'; +export * from './delinquencyBucket'; +export * from './delinquencyBucketData'; +export * from './delinquencyRange'; +export * from './delinquencyRangeData'; +export * from './entity'; +export * from './enumOptionData'; +export * from './enumOptionType'; +export * from './event'; +export * from './executeJobRequest'; +export * from './extensionData'; +export * from './externalAssetOwnerTransferChangesData'; +export * from './externalEventConfigurationItemData'; +export * from './externalId'; +export * from './externalOwnerJournalEntryData'; +export * from './externalOwnerTransferJournalEntryData'; +export * from './externalServicesPropertiesData'; +export * from './externalTransferData'; +export * from './externalTransferDataDetails'; +export * from './externalTransferLoanData'; +export * from './externalTransferOwnerData'; +export * from './field'; +export * from './filters'; +export * from './financialActivityData'; +export * from './floatingRate'; +export * from './floatingRateData'; +export * from './floatingRatePeriod'; +export * from './floatingRatePeriodData'; +export * from './formDataBodyPart'; +export * from './formDataContentDisposition'; +export * from './fundData'; +export * from './gLAccount'; +export * from './gLAccountData'; +export * from './gLAccountDataForLookup'; +export * from './geoCodeData'; +export * from './getAccountNumberFormatsIdResponse'; +export * from './getAccountNumberFormatsResponseTemplate'; +export * from './getAccountOptions'; +export * from './getAccountRulesResponse'; +export * from './getAccountRulesTemplateResponse'; +export * from './getAccountTransferTemplateResponse'; +export * from './getAccountTransfersFromAccountType'; +export * from './getAccountTransfersFromAccountTypeOptions'; +export * from './getAccountTransfersFromClientOptions'; +export * from './getAccountTransfersFromOffice'; +export * from './getAccountTransfersFromOfficeOptions'; +export * from './getAccountTransfersPageItems'; +export * from './getAccountTransfersPageItemsCurrency'; +export * from './getAccountTransfersPageItemsFromAccount'; +export * from './getAccountTransfersPageItemsFromOffice'; +export * from './getAccountTransfersPageItemsToAccountType'; +export * from './getAccountTransfersResponse'; +export * from './getAccountTransfersStatus'; +export * from './getAccountTransfersTemplateRefundByTransferCurrency'; +export * from './getAccountTransfersTemplateRefundByTransferFromAccount'; +export * from './getAccountTransfersTemplateRefundByTransferFromAccountOptions'; +export * from './getAccountTransfersTemplateRefundByTransferFromClient'; +export * from './getAccountTransfersTemplateRefundByTransferFromClientOptions'; +export * from './getAccountTransfersTemplateRefundByTransferFromOffice'; +export * from './getAccountTransfersTemplateRefundByTransferFromOfficeOptions'; +export * from './getAccountTransfersTemplateRefundByTransferResponse'; +export * from './getAccountTransfersTemplateRefundByTransferToAccount'; +export * from './getAccountTransfersTemplateRefundByTransferToClient'; +export * from './getAccountTransfersTemplateResponse'; +export * from './getAccountTransfersTimeline'; +export * from './getAccountTransfersToAccountTypeOptions'; +export * from './getAccountTransfersToOfficeOptions'; +export * from './getAccountsChargeCalculationType'; +export * from './getAccountsChargeTimeType'; +export * from './getAccountsCharges'; +export * from './getAccountsChargesCurrency'; +export * from './getAccountsCurrency'; +export * from './getAccountsLinkedToPocketResponse'; +export * from './getAccountsLockPeriodTypeEnum'; +export * from './getAccountsPageItems'; +export * from './getAccountsPurchasedShares'; +export * from './getAccountsPurchasedSharesStatus'; +export * from './getAccountsPurchasedSharesType'; +export * from './getAccountsStatus'; +export * from './getAccountsSummary'; +export * from './getAccountsTimeline'; +export * from './getAccountsTypeAccountIdResponse'; +export * from './getAccountsTypeProductOptions'; +export * from './getAccountsTypePurchasedShares'; +export * from './getAccountsTypeResponse'; +export * from './getAccountsTypeStatus'; +export * from './getAccountsTypeSummary'; +export * from './getAccountsTypeTemplateResponse'; +export * from './getAccountsTypeTimeline'; +export * from './getAssetType'; +export * from './getBusinessJobConfigResponse'; +export * from './getBusinessStepConfigResponse'; +export * from './getCachesResponse'; +export * from './getCentersAccountType'; +export * from './getCentersCenterIdAccountsResponse'; +export * from './getCentersCenterIdCurrency'; +export * from './getCentersCenterIdResponse'; +export * from './getCentersCenterIdStatus'; +export * from './getCentersDepositType'; +export * from './getCentersOfficeOptions'; +export * from './getCentersPageItems'; +export * from './getCentersResponse'; +export * from './getCentersSavingsAccounts'; +export * from './getCentersStaffOptions'; +export * from './getCentersStatus'; +export * from './getCentersTemplateResponse'; +export * from './getCentersTimeline'; +export * from './getChargeAppliesTo'; +export * from './getChargeCalculationType'; +export * from './getChargePaymentMode'; +export * from './getChargeTimeType'; +export * from './getChargesAppliesTo'; +export * from './getChargesAppliesToResponse'; +export * from './getChargesCalculationTypeResponse'; +export * from './getChargesChargeCalculationType'; +export * from './getChargesChargeTimeType'; +export * from './getChargesCurrency'; +export * from './getChargesCurrencyResponse'; +export * from './getChargesPaymentModeResponse'; +export * from './getChargesResponse'; +export * from './getChargesTemplateFeeFrequencyOptions'; +export * from './getChargesTemplateLoanChargeCalculationTypeOptions'; +export * from './getChargesTemplateLoanChargeTimeTypeOptions'; +export * from './getChargesTemplateResponse'; +export * from './getChargesTimeTypeResponse'; +export * from './getClientChargeCalculationType'; +export * from './getClientChargeCurrency'; +export * from './getClientChargeTimeType'; +export * from './getClientClientIdAddressesResponse'; +export * from './getClientIdProductIdAccountingMappings'; +export * from './getClientIdProductIdChargeOptions'; +export * from './getClientIdProductIdLockinPeriodFrequencyTypeOptions'; +export * from './getClientIdProductIdMinimumActivePeriodFrequencyTypeOptions'; +export * from './getClientIdProductIdProductOptions'; +export * from './getClientObligeeDetailsResponse'; +export * from './getClientStatus'; +export * from './getClientTransactionsCurrency'; +export * from './getClientTransferProposalDateResponse'; +export * from './getClientsAllowedDocumentTypes'; +export * from './getClientsChargesPageItems'; +export * from './getClientsClientIdAccountsResponse'; +export * from './getClientsClientIdChargesResponse'; +export * from './getClientsClientIdIdentifiersResponse'; +export * from './getClientsClientIdIdentifiersTemplateResponse'; +export * from './getClientsClientIdResponse'; +export * from './getClientsClientIdStatus'; +export * from './getClientsClientIdTransactionsResponse'; +export * from './getClientsClientIdTransactionsTransactionIdResponse'; +export * from './getClientsClientIdTransactionsType'; +export * from './getClientsColumnHeaderData'; +export * from './getClientsDataTables'; +export * from './getClientsDocumentType'; +export * from './getClientsGroups'; +export * from './getClientsLoanAccounts'; +export * from './getClientsLoanAccountsStatus'; +export * from './getClientsLoanAccountsType'; +export * from './getClientsOfficeOptions'; +export * from './getClientsPageItems'; +export * from './getClientsPageItemsResponse'; +export * from './getClientsResponse'; +export * from './getClientsSavingProductOptions'; +export * from './getClientsSavingsAccounts'; +export * from './getClientsSavingsAccountsCurrency'; +export * from './getClientsSavingsAccountsDepositType'; +export * from './getClientsSavingsAccountsStatus'; +export * from './getClientsStaffOptions'; +export * from './getClientsTemplateResponse'; +export * from './getClientsTimeline'; +export * from './getCodeValuesDataResponse'; +export * from './getCodesResponse'; +export * from './getCollateralCurrencyResponse'; +export * from './getCollateralManagementsResponse'; +export * from './getCollateralProductTemplate'; +export * from './getCollateralTypeResponse'; +export * from './getCollateralsTemplateAllowedTypes'; +export * from './getCurrenciesResponse'; +export * from './getCurrencyData'; +export * from './getDataTablesResponse'; +export * from './getDelinquencyBucketsResponse'; +export * from './getDelinquencyRangesResponse'; +export * from './getDelinquencyTagHistoryResponse'; +export * from './getEntityDatatableChecksResponse'; +export * from './getEntityDatatableChecksTemplateResponse'; +export * from './getEntityTypeEntityIdDocumentsResponse'; +export * from './getEquityType'; +export * from './getExternalEventConfigurationsResponse'; +export * from './getFieldConfigurationEntityResponse'; +export * from './getFinancialActivityAccountsResponse'; +export * from './getFixedDepositAccountsAccountChart'; +export * from './getFixedDepositAccountsAccountChartCurrency'; +export * from './getFixedDepositAccountsAccountIdCurrency'; +export * from './getFixedDepositAccountsAccountIdResponse'; +export * from './getFixedDepositAccountsAccountIdSummary'; +export * from './getFixedDepositAccountsChartSlabs'; +export * from './getFixedDepositAccountsCurrency'; +export * from './getFixedDepositAccountsDepositPeriodFrequency'; +export * from './getFixedDepositAccountsInterestCalculationDaysInYearType'; +export * from './getFixedDepositAccountsInterestCalculationType'; +export * from './getFixedDepositAccountsInterestCompoundingPeriodType'; +export * from './getFixedDepositAccountsInterestPostingPeriodType'; +export * from './getFixedDepositAccountsMaxDepositTermType'; +export * from './getFixedDepositAccountsMinDepositTermType'; +export * from './getFixedDepositAccountsPeriodType'; +export * from './getFixedDepositAccountsPeriodTypes'; +export * from './getFixedDepositAccountsProductOptions'; +export * from './getFixedDepositAccountsResponse'; +export * from './getFixedDepositAccountsStatus'; +export * from './getFixedDepositAccountsSummary'; +export * from './getFixedDepositAccountsTemplateResponse'; +export * from './getFixedDepositAccountsTimeline'; +export * from './getFixedDepositProductsAccountingRule'; +export * from './getFixedDepositProductsCurrency'; +export * from './getFixedDepositProductsInterestCalculationDaysInYearType'; +export * from './getFixedDepositProductsInterestCalculationType'; +export * from './getFixedDepositProductsInterestCompoundingPeriodType'; +export * from './getFixedDepositProductsInterestPostingPeriodType'; +export * from './getFixedDepositProductsMaxDepositTermType'; +export * from './getFixedDepositProductsMinDepositTermType'; +export * from './getFixedDepositProductsProductIdAccountingMappings'; +export * from './getFixedDepositProductsProductIdActiveChart'; +export * from './getFixedDepositProductsProductIdChartSlabs'; +export * from './getFixedDepositProductsProductIdCurrency'; +export * from './getFixedDepositProductsProductIdFeeToIncomeAccountMappings'; +export * from './getFixedDepositProductsProductIdFeeToIncomeAccountMappingsCharge'; +export * from './getFixedDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount'; +export * from './getFixedDepositProductsProductIdIncomeFromFeeAccount'; +export * from './getFixedDepositProductsProductIdIncomeFromPenaltyAccount'; +export * from './getFixedDepositProductsProductIdInterestCompoundingPeriodType'; +export * from './getFixedDepositProductsProductIdInterestOnSavingsAccount'; +export * from './getFixedDepositProductsProductIdMaxDepositTermType'; +export * from './getFixedDepositProductsProductIdMinDepositTermType'; +export * from './getFixedDepositProductsProductIdPenaltyToIncomeAccountMappings'; +export * from './getFixedDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge'; +export * from './getFixedDepositProductsProductIdPeriodType'; +export * from './getFixedDepositProductsProductIdPreClosurePenalInterestOnType'; +export * from './getFixedDepositProductsProductIdResponse'; +export * from './getFixedDepositProductsProductIdSavingsControlAccount'; +export * from './getFixedDepositProductsProductIdSavingsReferenceAccount'; +export * from './getFixedDepositProductsProductIdTransfersInSuspenseAccount'; +export * from './getFixedDepositProductsResponse'; +export * from './getFloatingRatesFloatingRateIdResponse'; +export * from './getFloatingRatesRatePeriods'; +export * from './getFloatingRatesResponse'; +export * from './getFromAccountOptions'; +export * from './getFromAccountStandingInstructionSwagger'; +export * from './getFromAccountTypeOptionsResponseStandingInstructionSwagger'; +export * from './getFromAccountTypeResponseStandingInstructionSwagger'; +export * from './getFromAccountTypeStandingInstructionSwagger'; +export * from './getFromClientOptionsResponseStandingInstructionSwagger'; +export * from './getFromClientStandingInstructionSwagger'; +export * from './getFromOfficeOptionsResponseStandingInstructionSwagger'; +export * from './getFromOfficeResponseStandingInstructionSwagger'; +export * from './getFromOfficeStandingInstructionSwagger'; +export * from './getFundsResponse'; +export * from './getGLAccountsResponse'; +export * from './getGLAccountsTemplateResponse'; +export * from './getGlAccountMapping'; +export * from './getGlClosureResponse'; +export * from './getGlobalConfigurationsResponse'; +export * from './getGroupsGroupIdAccountsLoanAccounts'; +export * from './getGroupsGroupIdAccountsLoanType'; +export * from './getGroupsGroupIdAccountsMemberLoanAccounts'; +export * from './getGroupsGroupIdAccountsMemberLoanStatus'; +export * from './getGroupsGroupIdAccountsMemberLoanType'; +export * from './getGroupsGroupIdAccountsMemberSavingsAccounts'; +export * from './getGroupsGroupIdAccountsResponse'; +export * from './getGroupsGroupIdAccountsSavingAccountType'; +export * from './getGroupsGroupIdAccountsSavingAccounts'; +export * from './getGroupsGroupIdAccountsSavingCurrency'; +export * from './getGroupsGroupIdAccountsSavingStatus'; +export * from './getGroupsGroupIdAccountsStatus'; +export * from './getGroupsGroupIdResponse'; +export * from './getGroupsGroupIdTimeline'; +export * from './getGroupsPageItems'; +export * from './getGroupsResponse'; +export * from './getGroupsStatus'; +export * from './getGroupsTemplateClientOptions'; +export * from './getGroupsTemplateColumnHeaderData'; +export * from './getGroupsTemplateDatatables'; +export * from './getGroupsTemplateOfficeOptions'; +export * from './getGroupsTemplateResponse'; +export * from './getGroupsTemplateStaffOptions'; +export * from './getHolidaysResponse'; +export * from './getHookResponse'; +export * from './getHookTemplateResponse'; +export * from './getIncomeFromFeeAccountId'; +export * from './getIncomeType'; +export * from './getInstructionTypeOptionsResponseStandingInstructionSwagger'; +export * from './getInstructionTypeStandingInstructionSwagger'; +export * from './getInterestRateChartsChartIdChartSlabsAttributeName'; +export * from './getInterestRateChartsChartIdChartSlabsConditionType'; +export * from './getInterestRateChartsChartIdChartSlabsEntityType'; +export * from './getInterestRateChartsChartIdChartSlabsIncentiveType'; +export * from './getInterestRateChartsChartIdChartSlabsIncentives'; +export * from './getInterestRateChartsChartIdChartSlabsResponse'; +export * from './getInterestRateChartsChartSlabs'; +export * from './getInterestRateChartsCurrency'; +export * from './getInterestRateChartsResponse'; +export * from './getInterestRateChartsTemplatePeriodTypes'; +export * from './getInterestRateChartsTemplateResponse'; +export * from './getJobsJobIDJobRunHistoryResponse'; +export * from './getJobsResponse'; +export * from './getJournalEntriesTransactionIdResponse'; +export * from './getLoanAccountLockResponse'; +export * from './getLoanAccountingMappings'; +export * from './getLoanCharge'; +export * from './getLoanChargeCalculationType'; +export * from './getLoanChargeCurrency'; +export * from './getLoanChargeTemplateChargeAppliesTo'; +export * from './getLoanChargeTemplateChargeOptions'; +export * from './getLoanChargeTemplateChargeTimeType'; +export * from './getLoanChargeTimeType'; +export * from './getLoanCollateralManagementTemplate'; +export * from './getLoanCurrency'; +export * from './getLoanFeeToIncomeAccountMappings'; +export * from './getLoanPaymentChannelToFundSourceMappings'; +export * from './getLoanProductsAccountingMappingOptions'; +export * from './getLoanProductsAccountingRule'; +export * from './getLoanProductsAmortizationType'; +export * from './getLoanProductsAssetAccountOptions'; +export * from './getLoanProductsChargeAppliesTo'; +export * from './getLoanProductsChargeOptions'; +export * from './getLoanProductsCurrency'; +export * from './getLoanProductsCurrencyOptions'; +export * from './getLoanProductsDaysInYearTemplateType'; +export * from './getLoanProductsExpenseAccountOptions'; +export * from './getLoanProductsExpenseType'; +export * from './getLoanProductsIncomeAccountOptions'; +export * from './getLoanProductsIncomeType'; +export * from './getLoanProductsInterestRateFrequencyType'; +export * from './getLoanProductsInterestRateTemplateFrequencyType'; +export * from './getLoanProductsInterestRecalculationCompoundingFrequencyType'; +export * from './getLoanProductsInterestRecalculationCompoundingType'; +export * from './getLoanProductsInterestRecalculationData'; +export * from './getLoanProductsInterestRecalculationTemplateData'; +export * from './getLoanProductsInterestTemplateType'; +export * from './getLoanProductsInterestType'; +export * from './getLoanProductsLiabilityAccountOptions'; +export * from './getLoanProductsLiabilityTagId'; +export * from './getLoanProductsLiabilityType'; +export * from './getLoanProductsLiabilityUsage'; +export * from './getLoanProductsParamType'; +export * from './getLoanProductsPaymentTypeOptions'; +export * from './getLoanProductsPreClosureInterestCalculationStrategy'; +export * from './getLoanProductsPrincipalVariationsForBorrowerCycle'; +export * from './getLoanProductsProductIdResponse'; +export * from './getLoanProductsRepaymentFrequencyType'; +export * from './getLoanProductsRepaymentTemplateFrequencyType'; +export * from './getLoanProductsRescheduleStrategyType'; +export * from './getLoanProductsResponse'; +export * from './getLoanProductsTemplateCurrency'; +export * from './getLoanProductsTemplateResponse'; +export * from './getLoanProductsTransactionProcessingStrategyOptions'; +export * from './getLoanProductsValueConditionType'; +export * from './getLoanProductsValueConditionTypeOptions'; +export * from './getLoanRescheduleRequestResponse'; +export * from './getLoanRescheduleRequestStatus'; +export * from './getLoanTransactionRelation'; +export * from './getLoansApprovalTemplateResponse'; +export * from './getLoansChargePaymentMode'; +export * from './getLoansCurrency'; +export * from './getLoansLoanIdAmortizationType'; +export * from './getLoansLoanIdChargeCalculationType'; +export * from './getLoansLoanIdChargePaymentMode'; +export * from './getLoansLoanIdChargeTimeType'; +export * from './getLoansLoanIdChargesChargeIdResponse'; +export * from './getLoansLoanIdChargesTemplateResponse'; +export * from './getLoansLoanIdCodeValueData'; +export * from './getLoansLoanIdCollateralsResponse'; +export * from './getLoansLoanIdCollateralsTemplateResponse'; +export * from './getLoansLoanIdCollectionData'; +export * from './getLoansLoanIdCurrency'; +export * from './getLoansLoanIdDisbursementDetails'; +export * from './getLoansLoanIdEnumOptionData'; +export * from './getLoansLoanIdFeeFrequency'; +export * from './getLoansLoanIdInterestCalculationPeriodType'; +export * from './getLoansLoanIdInterestRateFrequencyType'; +export * from './getLoansLoanIdInterestType'; +export * from './getLoansLoanIdLinkedAccount'; +export * from './getLoansLoanIdLoanChargeData'; +export * from './getLoansLoanIdLoanChargePaidByData'; +export * from './getLoansLoanIdLoanInstallmentChargeData'; +export * from './getLoansLoanIdLoanRepaymentScheduleInstallmentData'; +export * from './getLoansLoanIdLoanTransactionEnumData'; +export * from './getLoansLoanIdLoanTransactionRelation'; +export * from './getLoansLoanIdLoanType'; +export * from './getLoansLoanIdOverdueCharges'; +export * from './getLoansLoanIdPaymentDetailData'; +export * from './getLoansLoanIdPaymentType'; +export * from './getLoansLoanIdRepaymentFrequencyType'; +export * from './getLoansLoanIdRepaymentPeriod'; +export * from './getLoansLoanIdRepaymentSchedule'; +export * from './getLoansLoanIdResponse'; +export * from './getLoansLoanIdStatus'; +export * from './getLoansLoanIdSummary'; +export * from './getLoansLoanIdTermPeriodFrequencyType'; +export * from './getLoansLoanIdTimeline'; +export * from './getLoansLoanIdTransactions'; +export * from './getLoansLoanIdTransactionsTemplateResponse'; +export * from './getLoansLoanIdTransactionsTransactionIdResponse'; +export * from './getLoansProductsDaysInMonthTemplateType'; +export * from './getLoansProductsDaysInMonthType'; +export * from './getLoansProductsDaysInYearType'; +export * from './getLoansProductsInterestCalculationPeriodType'; +export * from './getLoansResponse'; +export * from './getLoansTemplateProductOptions'; +export * from './getLoansTemplateResponse'; +export * from './getLoansTemplateTimeline'; +export * from './getLoansTotal'; +export * from './getLoansTransactionType'; +export * from './getLoansType'; +export * from './getLockPeriodTypeEnum'; +export * from './getMakerCheckerResponse'; +export * from './getMakerCheckersSearchTemplateResponse'; +export * from './getNotesNoteType'; +export * from './getNotification'; +export * from './getNotificationsResponse'; +export * from './getObligeeData'; +export * from './getOfficesResponse'; +export * from './getOfficesTemplateResponse'; +export * from './getOldestCOBProcessedLoanResponse'; +export * from './getPageItemsStandingInstructionSwagger'; +export * from './getPasswordPreferencesTemplateResponse'; +export * from './getPaymentTypeData'; +export * from './getPaymentTypesPaymentTypeIdResponse'; +export * from './getPaymentTypesResponse'; +export * from './getPermissionsResponse'; +export * from './getPocketData'; +export * from './getPocketLoanAccounts'; +export * from './getPocketSavingAccounts'; +export * from './getPostDatedChecks'; +export * from './getPriorityOptionsResponseStandingInstructionSwagger'; +export * from './getPriorityStandingInstructionSwagger'; +export * from './getProductsAccountingMappingOptions'; +export * from './getProductsAccountingMappings'; +export * from './getProductsAccountingRule'; +export * from './getProductsAssetAccountOptions'; +export * from './getProductsCharges'; +export * from './getProductsCurrency'; +export * from './getProductsEquityAccountOptions'; +export * from './getProductsIncomeAccountOptions'; +export * from './getProductsLiabilityAccountOptions'; +export * from './getProductsLiabilityType'; +export * from './getProductsLiabilityUsage'; +export * from './getProductsMarketPrice'; +export * from './getProductsMinimumActivePeriodFrequencyTypeOptions'; +export * from './getProductsPageItems'; +export * from './getProductsTagId'; +export * from './getProductsTypeProductIdResponse'; +export * from './getProductsTypeResponse'; +export * from './getProvisioningCriteriaCriteriaIdResponse'; +export * from './getProvisioningCriteriaResponse'; +export * from './getRecurrenceFrequencyOptionsResponseStandingInstructionSwagger'; +export * from './getRecurrenceFrequencyStandingInstructionSwagger'; +export * from './getRecurrenceTypeOptionsResponseStandingInstructionSwagger'; +export * from './getRecurrenceTypeStandingInstructionSwagger'; +export * from './getRecurringCurrency'; +export * from './getRecurringDepositAccountsAccountChart'; +export * from './getRecurringDepositAccountsAccountChartCurrency'; +export * from './getRecurringDepositAccountsAccountIdResponse'; +export * from './getRecurringDepositAccountsChartSlabs'; +export * from './getRecurringDepositAccountsCurrency'; +export * from './getRecurringDepositAccountsDepositPeriodFrequency'; +export * from './getRecurringDepositAccountsInterestCalculationDaysInYearType'; +export * from './getRecurringDepositAccountsInterestCalculationType'; +export * from './getRecurringDepositAccountsInterestCompoundingPeriodType'; +export * from './getRecurringDepositAccountsInterestPostingPeriodType'; +export * from './getRecurringDepositAccountsMaxDepositTermType'; +export * from './getRecurringDepositAccountsMinDepositTermType'; +export * from './getRecurringDepositAccountsPeriodType'; +export * from './getRecurringDepositAccountsPeriodTypes'; +export * from './getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTemplateResponse'; +export * from './getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse'; +export * from './getRecurringDepositAccountsRecurringDepositFrequencyType'; +export * from './getRecurringDepositAccountsResponse'; +export * from './getRecurringDepositAccountsStatus'; +export * from './getRecurringDepositAccountsSummary'; +export * from './getRecurringDepositAccountsTemplateResponse'; +export * from './getRecurringDepositAccountsTimeline'; +export * from './getRecurringDepositProductsAccountingRule'; +export * from './getRecurringDepositProductsCurrency'; +export * from './getRecurringDepositProductsInterestCalculationDaysInYearType'; +export * from './getRecurringDepositProductsInterestCalculationType'; +export * from './getRecurringDepositProductsInterestCompoundingPeriodType'; +export * from './getRecurringDepositProductsInterestPostingPeriodType'; +export * from './getRecurringDepositProductsMaxDepositTermType'; +export * from './getRecurringDepositProductsMinDepositTermType'; +export * from './getRecurringDepositProductsProductIdAccountingMappings'; +export * from './getRecurringDepositProductsProductIdActiveChart'; +export * from './getRecurringDepositProductsProductIdChartSlabs'; +export * from './getRecurringDepositProductsProductIdCurrency'; +export * from './getRecurringDepositProductsProductIdFeeToIncomeAccountMappings'; +export * from './getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsCharge'; +export * from './getRecurringDepositProductsProductIdFeeToIncomeAccountMappingsIncomeAccount'; +export * from './getRecurringDepositProductsProductIdIncomeFromFeeAccount'; +export * from './getRecurringDepositProductsProductIdIncomeFromPenaltyAccount'; +export * from './getRecurringDepositProductsProductIdInterestCompoundingPeriodType'; +export * from './getRecurringDepositProductsProductIdInterestOnSavingsAccount'; +export * from './getRecurringDepositProductsProductIdMaxDepositTermType'; +export * from './getRecurringDepositProductsProductIdMinDepositTermType'; +export * from './getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappings'; +export * from './getRecurringDepositProductsProductIdPenaltyToIncomeAccountMappingsCharge'; +export * from './getRecurringDepositProductsProductIdPeriodType'; +export * from './getRecurringDepositProductsProductIdPreClosurePenalInterestOnType'; +export * from './getRecurringDepositProductsProductIdResponse'; +export * from './getRecurringDepositProductsProductIdSavingsControlAccount'; +export * from './getRecurringDepositProductsProductIdSavingsReferenceAccount'; +export * from './getRecurringDepositProductsProductIdTransfersInSuspenseAccount'; +export * from './getRecurringDepositProductsRecurringDepositFrequencyType'; +export * from './getRecurringDepositProductsResponse'; +export * from './getRecurringPaymentDetailData'; +export * from './getRecurringPaymentType'; +export * from './getRecurringProductOptions'; +export * from './getRecurringTransactionType'; +export * from './getRecurringTransactionsCurrency'; +export * from './getRecurringTransactionsTransactionType'; +export * from './getReportMailingJobsResponse'; +export * from './getReportMailingJobsTemplate'; +export * from './getReportsResponse'; +export * from './getReportsTemplateResponse'; +export * from './getRescheduleReasonsAllowedTypes'; +export * from './getRescheduleReasonsTemplateResponse'; +export * from './getResourceTypeResourceIdNotesNoteIdResponse'; +export * from './getResourceTypeResourceIdNotesResponse'; +export * from './getRolesResponse'; +export * from './getRolesRoleIdPermissionsResponse'; +export * from './getRolesRoleIdPermissionsResponsePermissionData'; +export * from './getRolesRoleIdResponse'; +export * from './getRunReportColumnHeaders'; +export * from './getRunReportResponse'; +export * from './getSavingsAccountChargesPaidByData'; +export * from './getSavingsAccountTransactionsPageItem'; +export * from './getSavingsAccountsAccountIdResponse'; +export * from './getSavingsAccountsResponse'; +export * from './getSavingsAccountsSavingsAccountIdChargesResponse'; +export * from './getSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse'; +export * from './getSavingsAccountsSavingsAccountIdChargesTemplateResponse'; +export * from './getSavingsAccountsSummary'; +export * from './getSavingsAccountsTemplateResponse'; +export * from './getSavingsAssetLiabilityType'; +export * from './getSavingsChargeCalculationType'; +export * from './getSavingsChargePaymentMode'; +export * from './getSavingsChargeTimeType'; +export * from './getSavingsChargesChargeTimeType'; +export * from './getSavingsChargesOptions'; +export * from './getSavingsCurrency'; +export * from './getSavingsInterestCalculationDaysInYearType'; +export * from './getSavingsInterestCalculationType'; +export * from './getSavingsInterestCompoundingPeriodType'; +export * from './getSavingsInterestPostingPeriodType'; +export * from './getSavingsPageItems'; +export * from './getSavingsProductOptions'; +export * from './getSavingsProductsAccountingMappingOptions'; +export * from './getSavingsProductsAccountingMappings'; +export * from './getSavingsProductsAccountingRule'; +export * from './getSavingsProductsAssetAccountOptions'; +export * from './getSavingsProductsChargeAppliesTo'; +export * from './getSavingsProductsChargeOptions'; +export * from './getSavingsProductsExpenseAccountOptions'; +export * from './getSavingsProductsExpenseType'; +export * from './getSavingsProductsFeeToIncomeAccountMappings'; +export * from './getSavingsProductsFeeToIncomeAccountMappingsCharge'; +export * from './getSavingsProductsFeeToIncomeAccountMappingsIncomeAccount'; +export * from './getSavingsProductsFundSourceAccount'; +export * from './getSavingsProductsIncomeAccountOptions'; +export * from './getSavingsProductsIncomeFromFeeAccount'; +export * from './getSavingsProductsIncomeFromPenaltyAccount'; +export * from './getSavingsProductsIncomeType'; +export * from './getSavingsProductsInterestCalculationDaysInYearType'; +export * from './getSavingsProductsInterestCalculationType'; +export * from './getSavingsProductsInterestCompoundingPeriodType'; +export * from './getSavingsProductsInterestOnSavingsAccount'; +export * from './getSavingsProductsInterestPostingPeriodType'; +export * from './getSavingsProductsLiabilityAccountOptions'; +export * from './getSavingsProductsLiabilityTagId'; +export * from './getSavingsProductsLiabilityType'; +export * from './getSavingsProductsLiabilityUsage'; +export * from './getSavingsProductsLockinPeriodFrequencyTypeOptions'; +export * from './getSavingsProductsPaymentChannelToFundSourceMappings'; +export * from './getSavingsProductsPaymentType'; +export * from './getSavingsProductsPaymentTypeOptions'; +export * from './getSavingsProductsPenaltyToIncomeAccountMappings'; +export * from './getSavingsProductsPenaltyToIncomeAccountMappingsCharge'; +export * from './getSavingsProductsProductIdResponse'; +export * from './getSavingsProductsResponse'; +export * from './getSavingsProductsSavingsControlAccount'; +export * from './getSavingsProductsSavingsReferenceAccount'; +export * from './getSavingsProductsTemplateAccountingRule'; +export * from './getSavingsProductsTemplateResponse'; +export * from './getSavingsProductsTransfersInSuspenseAccount'; +export * from './getSavingsProductsWithdrawalFeeTypeOptions'; +export * from './getSavingsStatus'; +export * from './getSavingsSummary'; +export * from './getSavingsTimeline'; +export * from './getSchedulerResponse'; +export * from './getSearchResponse'; +export * from './getSelfBeneficiariesAccountOptions'; +export * from './getSelfBeneficiariesTPTResponse'; +export * from './getSelfBeneficiariesTPTTemplateResponse'; +export * from './getSelfClientsChargeCalculationType'; +export * from './getSelfClientsChargeTimeType'; +export * from './getSelfClientsChargesPageItems'; +export * from './getSelfClientsClientIdAccountsResponse'; +export * from './getSelfClientsClientIdChargesChargeIdResponse'; +export * from './getSelfClientsClientIdChargesResponse'; +export * from './getSelfClientsClientIdResponse'; +export * from './getSelfClientsClientIdTransactionsPageItems'; +export * from './getSelfClientsClientIdTransactionsResponse'; +export * from './getSelfClientsClientIdTransactionsTransactionIdResponse'; +export * from './getSelfClientsClientIdTransactionsType'; +export * from './getSelfClientsLoanAccounts'; +export * from './getSelfClientsLoanAccountsStatus'; +export * from './getSelfClientsLoanAccountsType'; +export * from './getSelfClientsPageItems'; +export * from './getSelfClientsResponse'; +export * from './getSelfClientsSavingsAccounts'; +export * from './getSelfClientsSavingsAccountsCurrency'; +export * from './getSelfClientsSavingsAccountsStatus'; +export * from './getSelfClientsStatus'; +export * from './getSelfClientsTimeline'; +export * from './getSelfLoanIdSummary'; +export * from './getSelfLoanIdTimeline'; +export * from './getSelfLoansChargeCalculationType'; +export * from './getSelfLoansChargeTimeType'; +export * from './getSelfLoansLoanIdChargesResponse'; +export * from './getSelfLoansLoanIdResponse'; +export * from './getSelfLoansLoanIdTransactionsTransactionIdResponse'; +export * from './getSelfLoansLoanIdTransactionsType'; +export * from './getSelfLoansProductOptions'; +export * from './getSelfLoansTemplateResponse'; +export * from './getSelfLoansTimeline'; +export * from './getSelfSavingsAccountsAccountIdChargesResponse'; +export * from './getSelfSavingsAccountsAccountIdChargesSavingsAccountChargeIdResponse'; +export * from './getSelfSavingsAccountsAccountIdTransactionsTransactionIdResponse'; +export * from './getSelfSavingsAccountsResponse'; +export * from './getSelfSavingsChargeCalculationType'; +export * from './getSelfSavingsChargeTimeType'; +export * from './getSelfSavingsCurrency'; +export * from './getSelfSavingsInterestCalculationDaysInYearType'; +export * from './getSelfSavingsInterestCalculationType'; +export * from './getSelfSavingsInterestCompoundingPeriodType'; +export * from './getSelfSavingsInterestPostingPeriodType'; +export * from './getSelfSavingsPaymentDetailData'; +export * from './getSelfSavingsPaymentType'; +export * from './getSelfSavingsStatus'; +export * from './getSelfSavingsSummary'; +export * from './getSelfSavingsTimeline'; +export * from './getSelfSavingsTransactionCurrency'; +export * from './getSelfSavingsTransactionType'; +export * from './getSelfUserDetailsOrganisationalRole'; +export * from './getSelfUserDetailsResponse'; +export * from './getSelfUserDetailsRoles'; +export * from './getShareAccountsChargeAppliesTo'; +export * from './getShareAccountsChargeCalculationType'; +export * from './getShareAccountsChargeOptions'; +export * from './getShareAccountsChargePaymentMode'; +export * from './getShareAccountsChargeTimeType'; +export * from './getShareAccountsClientIdProductIdAccountingRule'; +export * from './getShareAccountsClientIdProductIdLockPeriodTypeEnum'; +export * from './getShareAccountsClientIdProductIdMinimumActivePeriodForDividendsTypeEnum'; +export * from './getShareAccountsClientIdProductIdResponse'; +export * from './getShareAccountsCurrency'; +export * from './getShareAccountsIncomeFromFeeAccountId'; +export * from './getShareAccountsShareEquityId'; +export * from './getShareAccountsShareReferenceId'; +export * from './getShareAccountsShareSuspenseId'; +export * from './getShareEquityId'; +export * from './getShareReferenceId'; +export * from './getShareSuspenseId'; +export * from './getStandingInstructionHistoryFromAccount'; +export * from './getStandingInstructionHistoryPageItemsFromClient'; +export * from './getStandingInstructionHistoryPageItemsResponse'; +export * from './getStandingInstructionHistoryToAccount'; +export * from './getStandingInstructionHistoryToClient'; +export * from './getStandingInstructionRunHistoryResponse'; +export * from './getStandingInstructionsResponse'; +export * from './getStandingInstructionsStandingInstructionIdResponse'; +export * from './getStandingInstructionsTemplateResponse'; +export * from './getStatusOptionsResponseStandingInstructionSwagger'; +export * from './getStatusStandingInstructionSwagger'; +export * from './getSurveyResponse'; +export * from './getSurveyResponseDatatableData'; +export * from './getTaxesComponentsCreditAccount'; +export * from './getTaxesComponentsCreditAccountType'; +export * from './getTaxesComponentsResponse'; +export * from './getTaxesGroupResponse'; +export * from './getTaxesGroupTaxAssociations'; +export * from './getTaxesGroupTaxComponent'; +export * from './getTellersResponse'; +export * from './getTellersTellerIdCashiersCashierIdResponse'; +export * from './getTellersTellerIdCashiersCashiersIdSummaryAndTransactionsResponse'; +export * from './getTellersTellerIdCashiersCashiersIdTransactionsResponse'; +export * from './getTellersTellerIdCashiersCashiersIdTransactionsTemplateResponse'; +export * from './getTellersTellerIdCashiersResponse'; +export * from './getTellersTellerIdCashiersTemplateResponse'; +export * from './getTemplatesResponse'; +export * from './getTemplatesTemplateIdResponse'; +export * from './getTemplatesTemplateResponse'; +export * from './getToAccountStandingInstructionSwagger'; +export * from './getToAccountTypeOptionsResponseStandingInstructionSwagger'; +export * from './getToAccountTypeStandingInstructionSwagger'; +export * from './getToClientStandingInstructionSwagger'; +export * from './getToOfficeOptionsResponseStandingInstructionSwagger'; +export * from './getToOfficeStandingInstructionSwagger'; +export * from './getTransactionsCurrency'; +export * from './getTransactionsPaymentDetailData'; +export * from './getTranscationEnumData'; +export * from './getTransferTypeOptionsResponseStandingInstructionSwagger'; +export * from './getTransferTypeStandingInstructionSwagger'; +export * from './getUserDetailsResponse'; +export * from './getUsersResponse'; +export * from './getUsersTemplateResponse'; +export * from './getUsersUserIdResponse'; +export * from './getWorkingDaysResponse'; +export * from './getWorkingDaysTemplateResponse'; +export * from './globalConfigurationPropertyData'; +export * from './grantedAuthority'; +export * from './group'; +export * from './groupGeneralData'; +export * from './groupLevel'; +export * from './groupRoleData'; +export * from './grouping'; +export * from './header'; +export * from './hookTemplateData'; +export * from './idDocument'; +export * from './image'; +export * from './inlineJobRequest'; +export * from './inlineJobResponse'; +export * from './interopAccountData'; +export * from './interopIdentifierAccountResponseData'; +export * from './interopIdentifierRequestData'; +export * from './interopIdentifiersResponseData'; +export * from './interopKycResponseData'; +export * from './interopQuoteRequestData'; +export * from './interopQuoteResponseData'; +export * from './interopTransactionRequestData'; +export * from './interopTransactionRequestResponseData'; +export * from './interopTransactionTypeData'; +export * from './interopTransactionsData'; +export * from './interopTransferRequestData'; +export * from './interopTransferResponseData'; +export * from './isCatchUpRunningResponse'; +export * from './jobDetailHistoryData'; +export * from './jobDetailHistoryDataSwagger'; +export * from './jobParameterDTO'; +export * from './journalEntryCommand'; +export * from './journalEntryData'; +export * from './journalEntryTransactionItem'; +export * from './loanAccountLock'; +export * from './loanProduct'; +export * from './loanProductBorrowerCycleVariationData'; +export * from './loanProductConfigurableAttributes'; +export * from './loanProductData'; +export * from './loanProductFloatingRates'; +export * from './loanProductGuaranteeData'; +export * from './loanProductGuaranteeDetails'; +export * from './loanProductInterestRecalculationData'; +export * from './loanProductInterestRecalculationDetails'; +export * from './loanProductProvisioningEntryData'; +export * from './loanProductRelatedDetail'; +export * from './loanProductTrancheDetails'; +export * from './loanTermTypeOptions'; +export * from './loanTermVariationsData'; +export * from './localTime'; +export * from './lookupTableData'; +export * from './lookupTableEntry'; +export * from './mediaType'; +export * from './monetaryCurrency'; +export * from './money'; +export * from './moneyData'; +export * from './multiPart'; +export * from './multivaluedMapStringParameterizedHeader'; +export * from './multivaluedMapStringString'; +export * from './noteData'; +export * from './office'; +export * from './officeData'; +export * from './pageCashierTransactionData'; +export * from './pageClientSearchData'; +export * from './pageExternalTransferData'; +export * from './pageJournalEntryData'; +export * from './pageable'; +export * from './pagedRequestClientTextSearch'; +export * from './pagedRequestSavingsTransactionSearch'; +export * from './parameterizedHeader'; +export * from './paymentDetailData'; +export * from './paymentType'; +export * from './paymentTypeData'; +export * from './paymentTypeToGLAccountMapper'; +export * from './permission'; +export * from './portfolioAccountData'; +export * from './postAccountNumberFormatsRequest'; +export * from './postAccountNumberFormatsResponse'; +export * from './postAccountTransfersRefundByTransferRequest'; +export * from './postAccountTransfersRefundByTransferResponse'; +export * from './postAccountTransfersRequest'; +export * from './postAccountTransfersResponse'; +export * from './postAccountingRulesRequest'; +export * from './postAccountingRulesResponse'; +export * from './postAccountsCharges'; +export * from './postAccountsRequestedShares'; +export * from './postAccountsTypeAccountIdRequest'; +export * from './postAccountsTypeAccountIdResponse'; +export * from './postAccountsTypeRequest'; +export * from './postAccountsTypeResponse'; +export * from './postAdhocQuerySearchRequest'; +export * from './postAdhocQuerySearchResponse'; +export * from './postAuthenticationRequest'; +export * from './postAuthenticationResponse'; +export * from './postCentersCenterIdRequest'; +export * from './postCentersCenterIdResponse'; +export * from './postCentersRequest'; +export * from './postCentersResponse'; +export * from './postChargesRequest'; +export * from './postChargesResponse'; +export * from './postClientClientIdAddressesRequest'; +export * from './postClientClientIdAddressesResponse'; +export * from './postClientCollateralRequest'; +export * from './postClientCollateralResponse'; +export * from './postClientsAddressRequest'; +export * from './postClientsClientIdChargesChargeIdRequest'; +export * from './postClientsClientIdChargesChargeIdResponse'; +export * from './postClientsClientIdChargesRequest'; +export * from './postClientsClientIdChargesResponse'; +export * from './postClientsClientIdIdentifiersRequest'; +export * from './postClientsClientIdIdentifiersResponse'; +export * from './postClientsClientIdRequest'; +export * from './postClientsClientIdResponse'; +export * from './postClientsClientIdTransactionsTransactionIdResponse'; +export * from './postClientsDatatable'; +export * from './postClientsRequest'; +export * from './postClientsResponse'; +export * from './postCodeValueDataResponse'; +export * from './postCodeValuesDataRequest'; +export * from './postCodesRequest'; +export * from './postCodesResponse'; +export * from './postCollateralManagementProductRequest'; +export * from './postCollateralManagementProductResponse'; +export * from './postCollectionSheetBulkRepaymentTransactions'; +export * from './postCollectionSheetChanges'; +export * from './postCollectionSheetRequest'; +export * from './postCollectionSheetResponse'; +export * from './postColumnHeaderData'; +export * from './postCreateRescheduleLoansRequest'; +export * from './postCreateRescheduleLoansResponse'; +export * from './postDataTablesAppTableIdResponse'; +export * from './postDataTablesRequest'; +export * from './postDataTablesResponse'; +export * from './postDelinquencyBucketRequest'; +export * from './postDelinquencyBucketResponse'; +export * from './postDelinquencyRangeRequest'; +export * from './postDelinquencyRangeResponse'; +export * from './postEntityDatatableChecksTemplateRequest'; +export * from './postEntityDatatableChecksTemplateResponse'; +export * from './postEntityTypeEntityIdDocumentsResponse'; +export * from './postFinancialActivityAccountsRequest'; +export * from './postFinancialActivityAccountsResponse'; +export * from './postFixedDepositAccountsAccountIdResponse'; +export * from './postFixedDepositAccountsRequest'; +export * from './postFixedDepositAccountsResponse'; +export * from './postFixedDepositProductsChartSlabs'; +export * from './postFixedDepositProductsCharts'; +export * from './postFixedDepositProductsRequest'; +export * from './postFixedDepositProductsResponse'; +export * from './postFloatingRatesRatePeriods'; +export * from './postFloatingRatesRequest'; +export * from './postFloatingRatesResponse'; +export * from './postFundsRequest'; +export * from './postFundsResponse'; +export * from './postGLAccountsRequest'; +export * from './postGLAccountsResponse'; +export * from './postGlClosuresRequest'; +export * from './postGlClosuresResponse'; +export * from './postGroupsGroupIdClients'; +export * from './postGroupsGroupIdCommandUnassignStaffRequest'; +export * from './postGroupsGroupIdCommandUnassignStaffResponse'; +export * from './postGroupsGroupIdRequest'; +export * from './postGroupsGroupIdResponse'; +export * from './postGroupsRequest'; +export * from './postGroupsResponse'; +export * from './postHolidaysHolidayIdResponse'; +export * from './postHolidaysRequest'; +export * from './postHolidaysRequestOffices'; +export * from './postHolidaysResponse'; +export * from './postHookRequest'; +export * from './postHookResponse'; +export * from './postInitiateTransferRequest'; +export * from './postInitiateTransferResponse'; +export * from './postInterestRateChartsChartIdChartSlabsIncentives'; +export * from './postInterestRateChartsChartIdChartSlabsRequest'; +export * from './postInterestRateChartsChartIdChartSlabsResponse'; +export * from './postInterestRateChartsRequest'; +export * from './postInterestRateChartsResponse'; +export * from './postJournalEntriesResponse'; +export * from './postJournalEntriesTransactionIdRequest'; +export * from './postJournalEntriesTransactionIdResponse'; +export * from './postLinkDelinkAccountsToFromPocketResponse'; +export * from './postLoanChanges'; +export * from './postLoanProductsRequest'; +export * from './postLoanProductsResponse'; +export * from './postLoansDisbursementData'; +export * from './postLoansLoanIdChanges'; +export * from './postLoansLoanIdChargesChargeIdChanges'; +export * from './postLoansLoanIdChargesChargeIdRequest'; +export * from './postLoansLoanIdChargesChargeIdResponse'; +export * from './postLoansLoanIdChargesRequest'; +export * from './postLoansLoanIdChargesResponse'; +export * from './postLoansLoanIdCollateralsRequest'; +export * from './postLoansLoanIdCollateralsResponse'; +export * from './postLoansLoanIdDisbursementData'; +export * from './postLoansLoanIdRequest'; +export * from './postLoansLoanIdResponse'; +export * from './postLoansLoanIdScheduleResponse'; +export * from './postLoansLoanIdStatus'; +export * from './postLoansLoanIdTransactionsRequest'; +export * from './postLoansLoanIdTransactionsResponse'; +export * from './postLoansLoanIdTransactionsResponseChanges'; +export * from './postLoansLoanIdTransactionsTransactionIdRequest'; +export * from './postLoansRepaymentSchedulePeriods'; +export * from './postLoansRequest'; +export * from './postLoansResponse'; +export * from './postMakerCheckersResponse'; +export * from './postNewShareApplicationResponse'; +export * from './postNewTransferResponse'; +export * from './postOfficesRequest'; +export * from './postOfficesResponse'; +export * from './postPaymentTypesRequest'; +export * from './postPaymentTypesResponse'; +export * from './postProductsChargesSelected'; +export * from './postProductsMarketPricePeriods'; +export * from './postProductsTypeRequest'; +export * from './postProductsTypeResponse'; +export * from './postProvisioningCriteriaRequest'; +export * from './postProvisioningCriteriaResponse'; +export * from './postProvisioningEntriesRequest'; +export * from './postProvisioningEntriesResponse'; +export * from './postRecurringChanges'; +export * from './postRecurringDepositAccountsAccountIdResponse'; +export * from './postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest'; +export * from './postRecurringDepositAccountsRecurringDepositAccountIdTransactionsResponse'; +export * from './postRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse'; +export * from './postRecurringDepositAccountsRequest'; +export * from './postRecurringDepositAccountsResponse'; +export * from './postRecurringDepositProductsChartSlabs'; +export * from './postRecurringDepositProductsCharts'; +export * from './postRecurringDepositProductsRequest'; +export * from './postRecurringDepositProductsResponse'; +export * from './postReportMailingJobsRequest'; +export * from './postReportMailingJobsResponse'; +export * from './postReportsResponse'; +export * from './postRepostRequest'; +export * from './postResourceTypeResourceIdNotesRequest'; +export * from './postResourceTypeResourceIdNotesResponse'; +export * from './postRolesRequest'; +export * from './postRolesResponse'; +export * from './postRolesRoleIdResponse'; +export * from './postRunaccrualsRequest'; +export * from './postSavingsAccountBulkReversalTransactionsRequest'; +export * from './postSavingsAccountTransactionsRequest'; +export * from './postSavingsAccountTransactionsResponse'; +export * from './postSavingsAccountsAccountIdRequest'; +export * from './postSavingsAccountsAccountIdResponse'; +export * from './postSavingsAccountsRequest'; +export * from './postSavingsAccountsResponse'; +export * from './postSavingsAccountsSavingsAccountIdChargesRequest'; +export * from './postSavingsAccountsSavingsAccountIdChargesResponse'; +export * from './postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest'; +export * from './postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse'; +export * from './postSavingsCharges'; +export * from './postSavingsProductsRequest'; +export * from './postSavingsProductsResponse'; +export * from './postSelfAuthenticationResponse'; +export * from './postSelfBeneficiariesTPTRequest'; +export * from './postSelfBeneficiariesTPTResponse'; +export * from './postSelfLoansData'; +export * from './postSelfLoansDatatables'; +export * from './postSelfLoansDisbursementData'; +export * from './postSelfLoansLoanIdChanges'; +export * from './postSelfLoansLoanIdRequest'; +export * from './postSelfLoansLoanIdResponse'; +export * from './postSelfLoansLoanIdStatus'; +export * from './postSelfLoansRequest'; +export * from './postSelfLoansResponse'; +export * from './postStaffRequest'; +export * from './postStandingInstructionsRequest'; +export * from './postStandingInstructionsResponse'; +export * from './postSurveySurveyNameApptableIdRequest'; +export * from './postSurveySurveyNameApptableIdResponse'; +export * from './postTaxesComponentsRequest'; +export * from './postTaxesComponentsResponse'; +export * from './postTaxesGroupRequest'; +export * from './postTaxesGroupResponse'; +export * from './postTaxesGroupTaxComponents'; +export * from './postTellersRequest'; +export * from './postTellersResponse'; +export * from './postTellersTellerIdCashiersCashierIdAllocateRequest'; +export * from './postTellersTellerIdCashiersCashierIdAllocateResponse'; +export * from './postTellersTellerIdCashiersCashierIdSettleRequest'; +export * from './postTellersTellerIdCashiersCashierIdSettleResponse'; +export * from './postTellersTellerIdCashiersRequest'; +export * from './postTellersTellerIdCashiersResponse'; +export * from './postTemplatesRequest'; +export * from './postTemplatesResponse'; +export * from './postUpdateRescheduleLoanChanges'; +export * from './postUpdateRescheduleLoansRequest'; +export * from './postUpdateRescheduleLoansResponse'; +export * from './postUsersRequest'; +export * from './postUsersResponse'; +export * from './postalAddress'; +export * from './processingResultLookup'; +export * from './provisioningCriteriaDefinitionData'; +export * from './provisioningEntryData'; +export * from './putAccountNumberFormatsRequest'; +export * from './putAccountNumberFormatsResponse'; +export * from './putAccountNumberFormatschangesSwagger'; +export * from './putAccountingRulesRequest'; +export * from './putAccountingRulesResponse'; +export * from './putAccountingRulesResponsechangesSwagger'; +export * from './putAccountsChanges'; +export * from './putAccountsTypeAccountIdRequest'; +export * from './putAccountsTypeAccountIdResponse'; +export * from './putCachechangesSwagger'; +export * from './putCachesRequest'; +export * from './putCachesResponse'; +export * from './putCentersCenterIdRequest'; +export * from './putCentersCenterIdResponse'; +export * from './putCentersChanges'; +export * from './putChargeTransactionChangesRequest'; +export * from './putChargeTransactionChangesResponse'; +export * from './putChargeTransactionChangesResponseChanges'; +export * from './putChargesChargeIdRequest'; +export * from './putChargesChargeIdResponse'; +export * from './putClientClientIdAddressesRequest'; +export * from './putClientClientIdAddressesResponse'; +export * from './putClientCollateralRequest'; +export * from './putClientCollateralResponse'; +export * from './putClientsClientIdIdentifiersIdentifierIdRequest'; +export * from './putClientsClientIdIdentifiersIdentifierIdResponse'; +export * from './putClientsClientIdRequest'; +export * from './putClientsClientIdResponse'; +export * from './putCodeValueDataResponse'; +export * from './putCodeValuechangesSwagger'; +export * from './putCodeValuesDataRequest'; +export * from './putCodesApichangesSwagger'; +export * from './putCodesRequest'; +export * from './putCodesResponse'; +export * from './putCollateralProductRequest'; +export * from './putCollateralProductResponse'; +export * from './putCurrenciesRequest'; +export * from './putCurrenciesResponse'; +export * from './putDataTablesAppTableIdDatatableIdResponse'; +export * from './putDataTablesAppTableIdResponse'; +export * from './putDataTablesRequest'; +export * from './putDataTablesRequestAddColumns'; +export * from './putDataTablesRequestChangeColumns'; +export * from './putDataTablesRequestDropColumns'; +export * from './putDataTablesResponse'; +export * from './putDelinquencyBucketResponse'; +export * from './putDelinquencyRangeResponse'; +export * from './putEntityTypeEntityIdDocumentsResponse'; +export * from './putExternalEventConfigurationsRequest'; +export * from './putExternalServiceRequest'; +export * from './putFinancialActivityAccountsResponse'; +export * from './putFinancialActivityAccountscommentsSwagger'; +export * from './putFixedDepositAccountsAccountIdRequest'; +export * from './putFixedDepositAccountsAccountIdResponse'; +export * from './putFixedDepositAccountsChanges'; +export * from './putFixedDepositProductsChanges'; +export * from './putFixedDepositProductsProductIdRequest'; +export * from './putFixedDepositProductsProductIdResponse'; +export * from './putFloatingRatesChanges'; +export * from './putFloatingRatesFloatingRateIdRequest'; +export * from './putFloatingRatesFloatingRateIdResponse'; +export * from './putFundsFundIdRequest'; +export * from './putFundsFundIdResponse'; +export * from './putGLAccountsRequest'; +export * from './putGLAccountsResponse'; +export * from './putGLAccountsResponsechangesSwagger'; +export * from './putGlClosuresRequest'; +export * from './putGlClosuresResponse'; +export * from './putGlobalConfigurationsRequest'; +export * from './putGlobalConfigurationsResponse'; +export * from './putGlobalConfigurationsResponsechangesSwagger'; +export * from './putGroupsGroupIdChanges'; +export * from './putGroupsGroupIdRequest'; +export * from './putGroupsGroupIdResponse'; +export * from './putHolidaysHolidayIdRequest'; +export * from './putHolidaysHolidayIdResponse'; +export * from './putHolidaysHolidayIdResponseChanges'; +export * from './putHookRequest'; +export * from './putHookResponse'; +export * from './putHookResponseChangesSwagger'; +export * from './putInterestRateChartsChartIdChartSlabsChartSlabIdRequest'; +export * from './putInterestRateChartsChartIdChartSlabsChartSlabIdResponse'; +export * from './putInterestRateChartsChartIdRequest'; +export * from './putInterestRateChartsChartIdResponse'; +export * from './putJobsJobIDRequest'; +export * from './putLoanChanges'; +export * from './putLoanProductsProductIdRequest'; +export * from './putLoanProductsProductIdResponse'; +export * from './putLoansLoanIdChanges'; +export * from './putLoansLoanIdChargesChargeIdRequest'; +export * from './putLoansLoanIdChargesChargeIdResponse'; +export * from './putLoansLoanIdCollateral'; +export * from './putLoansLoanIdCollateralsCollateralIdResponse'; +export * from './putLoansLoanIdDisbursementData'; +export * from './putLoansLoanIdRequest'; +export * from './putLoansLoanIdResponse'; +export * from './putLoansLoandIdCollateralsCollateralIdRequest'; +export * from './putNotesChanges'; +export * from './putOfficesOfficeIdRequest'; +export * from './putOfficesOfficeIdResponse'; +export * from './putOfficesOfficeIdResponseChanges'; +export * from './putPasswordPreferencesTemplateRequest'; +export * from './putPaymentTypesPaymentTypeIdRequest'; +export * from './putPaymentTypesPaymentTypeIdResponse'; +export * from './putPermissionsRequest'; +export * from './putProductsChanges'; +export * from './putProductsTypeProductIdRequest'; +export * from './putProductsTypeProductIdResponse'; +export * from './putProvisioningCriteriaRequest'; +export * from './putProvisioningCriteriaResponse'; +export * from './putProvisioningCriteriaResponseChanges'; +export * from './putProvisioningEntriesRequest'; +export * from './putProvisioningEntriesResponse'; +export * from './putRecurringDepositAccountsAccountIdRequest'; +export * from './putRecurringDepositAccountsAccountIdResponse'; +export * from './putRecurringDepositAccountsChanges'; +export * from './putRecurringDepositProductsChanges'; +export * from './putRecurringDepositProductsRequest'; +export * from './putRecurringDepositProductsResponse'; +export * from './putReportMailingJobsRequest'; +export * from './putReportMailingJobsResponse'; +export * from './putReportMailingJobsResponseChanges'; +export * from './putReportRequest'; +export * from './putReportResponse'; +export * from './putReportResponseChanges'; +export * from './putResourceTypeResourceIdNotesNoteIdRequest'; +export * from './putResourceTypeResourceIdNotesNoteIdResponse'; +export * from './putRolesRoleIdPermissionsRequest'; +export * from './putRolesRoleIdPermissionsResponse'; +export * from './putRolesRoleIdPermissionsResponsePermissionsChanges'; +export * from './putRolesRoleIdRequest'; +export * from './putRolesRoleIdResponse'; +export * from './putRolesRoleIdResponseChanges'; +export * from './putSavingsAccountsAccountIdRequest'; +export * from './putSavingsAccountsAccountIdResponse'; +export * from './putSavingsAccountsChanges'; +export * from './putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest'; +export * from './putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse'; +export * from './putSavingsChanges'; +export * from './putSavingsProductsProductIdRequest'; +export * from './putSavingsProductsProductIdResponse'; +export * from './putSelfBeneficiariesChanges'; +export * from './putSelfBeneficiariesTPTBeneficiaryIdRequest'; +export * from './putSelfBeneficiariesTPTBeneficiaryIdResponse'; +export * from './putSelfLoansChanges'; +export * from './putSelfLoansLoanIdRequest'; +export * from './putSelfLoansLoanIdResponse'; +export * from './putSelfUserChanges'; +export * from './putSelfUserRequest'; +export * from './putSelfUserResponse'; +export * from './putStaffRequest'; +export * from './putStandingInstructionsStandingInstructionIdRequest'; +export * from './putStandingInstructionsStandingInstructionIdResponse'; +export * from './putTaxesComponentsChanges'; +export * from './putTaxesComponentsTaxComponentIdRequest'; +export * from './putTaxesComponentsTaxComponentIdResponse'; +export * from './putTaxesGroupChanges'; +export * from './putTaxesGroupModifiedComponents'; +export * from './putTaxesGroupTaxComponents'; +export * from './putTaxesGroupTaxGroupIdRequest'; +export * from './putTaxesGroupTaxGroupIdResponse'; +export * from './putTellersRequest'; +export * from './putTellersResponse'; +export * from './putTellersResponseChanges'; +export * from './putTellersTellerIdCashiersCashierIdRequest'; +export * from './putTellersTellerIdCashiersCashierIdResponse'; +export * from './putTellersTellerIdCashiersCashierIdResponseChanges'; +export * from './putTemplatesTemplateIdRequest'; +export * from './putTemplatesTemplateIdResponse'; +export * from './putUpdateStandingInstructionChanges'; +export * from './putUsersUserIdRequest'; +export * from './putUsersUserIdResponse'; +export * from './putUsersUserIdResponseChanges'; +export * from './putWorkingDaysRequest'; +export * from './putWorkingDaysResponse'; +export * from './question'; +export * from './questionData'; +export * from './rangeFilterBigDecimal'; +export * from './rangeFilterLocalDate'; +export * from './rate'; +export * from './rateData'; +export * from './reportExportType'; +export * from './reportMailingJobRunHistoryData'; +export * from './reportMailingJobTimelineData'; +export * from './rescheduleReasonsCodeValue'; +export * from './rescheduleReasonsTimeline'; +export * from './response'; +export * from './responseData'; +export * from './resultsetColumnHeaderData'; +export * from './resultsetRowData'; +export * from './retrieveOneResponse'; +export * from './role'; +export * from './roleData'; +export * from './runReportsResponse'; +export * from './savingsAccountApplicationTimelineData'; +export * from './savingsAccountChargeData'; +export * from './savingsAccountChargesPaidByData'; +export * from './savingsAccountData'; +export * from './savingsAccountStatusEnumData'; +export * from './savingsAccountSubStatusEnumData'; +export * from './savingsAccountSummaryData'; +export * from './savingsAccountTransactionData'; +export * from './savingsAccountTransactionEnumData'; +export * from './savingsAccountTransactionsSearchResponse'; +export * from './savingsProductData'; +export * from './savingsTransactionSearch'; +export * from './scorecard'; +export * from './scorecardData'; +export * from './scorecardValue'; +export * from './singleDebitOrCreditEntryCommand'; +export * from './smsCampaignData'; +export * from './sort'; +export * from './sortOrder'; +export * from './staff'; +export * from './staffData'; +export * from './subjectName'; +export * from './survey'; +export * from './surveyData'; +export * from './taxComponent'; +export * from './taxComponentData'; +export * from './taxComponentHistory'; +export * from './taxComponentHistoryData'; +export * from './taxDetailsData'; +export * from './taxGroup'; +export * from './taxGroupData'; +export * from './taxGroupMappings'; +export * from './taxGroupMappingsData'; +export * from './templateMapper'; +export * from './transactionDetailData'; +export * from './transactionDetails'; +export * from './transactionProcessingStrategyData'; +export * from './transactionTypeEnumData'; +export * from './updateBusinessStepConfigRequest'; +export * from './updateChangesResponse'; +export * from './updatePostDatedCheckRequest'; +export * from './updatePostDatedCheckResponse'; +export * from './updateStaffResponse'; diff --git a/packages/fineract-client/src/models/monetaryCurrency.ts b/packages/fineract-client/src/models/monetaryCurrency.ts new file mode 100644 index 0000000000..4959152f51 --- /dev/null +++ b/packages/fineract-client/src/models/monetaryCurrency.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface MonetaryCurrency { + code?: string; + currencyInMultiplesOf?: number; + digitsAfterDecimal?: number; +} + diff --git a/packages/fineract-client/src/models/money.ts b/packages/fineract-client/src/models/money.ts new file mode 100644 index 0000000000..da6f189be9 --- /dev/null +++ b/packages/fineract-client/src/models/money.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { MonetaryCurrency } from './monetaryCurrency'; + + +export interface Money { + amount?: number; + amountDefaultedToNullIfZero?: number; + currency?: MonetaryCurrency; + currencyCode?: string; + currencyDigitsAfterDecimal?: number; + currencyInMultiplesOf?: number; + greaterThanZero?: boolean; + lessThanZero?: boolean; + zero?: boolean; +} + diff --git a/packages/fineract-client/src/models/moneyData.ts b/packages/fineract-client/src/models/moneyData.ts new file mode 100644 index 0000000000..30480c4f6c --- /dev/null +++ b/packages/fineract-client/src/models/moneyData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface MoneyData { + amount: number; + currency: string; +} + diff --git a/packages/fineract-client/src/models/multiPart.ts b/packages/fineract-client/src/models/multiPart.ts new file mode 100644 index 0000000000..c0376b87fd --- /dev/null +++ b/packages/fineract-client/src/models/multiPart.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { BodyPart } from './bodyPart'; +import { ContentDisposition } from './contentDisposition'; +import { MediaType } from './mediaType'; +import { BodyPartParameterizedHeaders } from './bodyPartParameterizedHeaders'; +import { BodyPartHeaders } from './bodyPartHeaders'; + + +export interface MultiPart { + bodyParts?: Array; + contentDisposition?: ContentDisposition; + entity?: object; + headers?: BodyPartHeaders; + mediaType?: MediaType; + messageBodyWorkers?: object; + parameterizedHeaders?: BodyPartParameterizedHeaders; + parent?: MultiPart; + providers?: object; +} + diff --git a/packages/fineract-client/src/models/multivaluedMapStringParameterizedHeader.ts b/packages/fineract-client/src/models/multivaluedMapStringParameterizedHeader.ts new file mode 100644 index 0000000000..396d0d7d66 --- /dev/null +++ b/packages/fineract-client/src/models/multivaluedMapStringParameterizedHeader.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ParameterizedHeader } from './parameterizedHeader'; + + +export interface MultivaluedMapStringParameterizedHeader { + [key: string]: Array | any; + + + empty?: boolean; +} + diff --git a/packages/fineract-client/src/models/multivaluedMapStringString.ts b/packages/fineract-client/src/models/multivaluedMapStringString.ts new file mode 100644 index 0000000000..1ba7d9ae08 --- /dev/null +++ b/packages/fineract-client/src/models/multivaluedMapStringString.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface MultivaluedMapStringString { + [key: string]: Array | any; + + + empty?: boolean; +} + diff --git a/packages/fineract-client/src/models/noteData.ts b/packages/fineract-client/src/models/noteData.ts new file mode 100644 index 0000000000..c1ab0c0f89 --- /dev/null +++ b/packages/fineract-client/src/models/noteData.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +export interface NoteData { + clientId?: number; + createdById?: number; + createdByUsername?: string; + createdOn?: string; + depositAccountId?: number; + groupId?: number; + id?: number; + loanId?: number; + loanTransactionId?: number; + note?: string; + noteType?: EnumOptionData; + savingAccountId?: number; + updatedById?: number; + updatedByUsername?: string; + updatedOn?: string; +} + diff --git a/packages/fineract-client/src/models/office.ts b/packages/fineract-client/src/models/office.ts new file mode 100644 index 0000000000..5999b8d4c1 --- /dev/null +++ b/packages/fineract-client/src/models/office.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface Office { + hierarchy?: string; + id?: number; + name?: string; + _new?: boolean; + openingLocalDate?: string; + parent?: Office; +} + diff --git a/packages/fineract-client/src/models/officeData.ts b/packages/fineract-client/src/models/officeData.ts new file mode 100644 index 0000000000..d6889fed37 --- /dev/null +++ b/packages/fineract-client/src/models/officeData.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface OfficeData { + dateFormat?: string; + externalId?: string; + hierarchy?: string; + id?: number; + locale?: string; + name?: string; + nameDecorated?: string; + openingDate?: string; + parentId?: number; + parentName?: string; + rowIndex?: number; +} + diff --git a/packages/fineract-client/src/models/pageCashierTransactionData.ts b/packages/fineract-client/src/models/pageCashierTransactionData.ts new file mode 100644 index 0000000000..fa459d36f8 --- /dev/null +++ b/packages/fineract-client/src/models/pageCashierTransactionData.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CashierTransactionData } from './cashierTransactionData'; + + +export interface PageCashierTransactionData { + pageItems?: Array; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/pageClientSearchData.ts b/packages/fineract-client/src/models/pageClientSearchData.ts new file mode 100644 index 0000000000..27174b59c6 --- /dev/null +++ b/packages/fineract-client/src/models/pageClientSearchData.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ClientSearchData } from './clientSearchData'; +import { Pageable } from './pageable'; +import { Sort } from './sort'; + + +export interface PageClientSearchData { + content?: Array; + empty?: boolean; + first?: boolean; + last?: boolean; + number?: number; + numberOfElements?: number; + pageable?: Pageable; + size?: number; + sort?: Sort; + totalElements?: number; + totalPages?: number; +} + diff --git a/packages/fineract-client/src/models/pageExternalTransferData.ts b/packages/fineract-client/src/models/pageExternalTransferData.ts new file mode 100644 index 0000000000..0aca5de4cc --- /dev/null +++ b/packages/fineract-client/src/models/pageExternalTransferData.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Pageable } from './pageable'; +import { ExternalTransferData } from './externalTransferData'; +import { Sort } from './sort'; + + +export interface PageExternalTransferData { + content?: Array; + empty?: boolean; + first?: boolean; + last?: boolean; + number?: number; + numberOfElements?: number; + pageable?: Pageable; + size?: number; + sort?: Sort; + totalElements?: number; + totalPages?: number; +} + diff --git a/packages/fineract-client/src/models/pageJournalEntryData.ts b/packages/fineract-client/src/models/pageJournalEntryData.ts new file mode 100644 index 0000000000..2e32cd47e0 --- /dev/null +++ b/packages/fineract-client/src/models/pageJournalEntryData.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Pageable } from './pageable'; +import { JournalEntryData } from './journalEntryData'; +import { Sort } from './sort'; + + +export interface PageJournalEntryData { + content?: Array; + empty?: boolean; + first?: boolean; + last?: boolean; + number?: number; + numberOfElements?: number; + pageable?: Pageable; + size?: number; + sort?: Sort; + totalElements?: number; + totalPages?: number; +} + diff --git a/packages/fineract-client/src/models/pageable.ts b/packages/fineract-client/src/models/pageable.ts new file mode 100644 index 0000000000..85ee9c538d --- /dev/null +++ b/packages/fineract-client/src/models/pageable.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Sort } from './sort'; + + +export interface Pageable { + offset?: number; + pageNumber?: number; + pageSize?: number; + paged?: boolean; + sort?: Sort; + unpaged?: boolean; +} + diff --git a/packages/fineract-client/src/models/pagedRequestClientTextSearch.ts b/packages/fineract-client/src/models/pagedRequestClientTextSearch.ts new file mode 100644 index 0000000000..dd672670a3 --- /dev/null +++ b/packages/fineract-client/src/models/pagedRequestClientTextSearch.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ClientTextSearch } from './clientTextSearch'; +import { SortOrder } from './sortOrder'; + + +export interface PagedRequestClientTextSearch { + page?: number; + request?: ClientTextSearch; + size?: number; + sorts?: Array; +} + diff --git a/packages/fineract-client/src/models/pagedRequestSavingsTransactionSearch.ts b/packages/fineract-client/src/models/pagedRequestSavingsTransactionSearch.ts new file mode 100644 index 0000000000..17e358e899 --- /dev/null +++ b/packages/fineract-client/src/models/pagedRequestSavingsTransactionSearch.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { SortOrder } from './sortOrder'; +import { SavingsTransactionSearch } from './savingsTransactionSearch'; + + +export interface PagedRequestSavingsTransactionSearch { + page?: number; + request?: SavingsTransactionSearch; + size?: number; + sorts?: Array; +} + diff --git a/packages/fineract-client/src/models/parameterizedHeader.ts b/packages/fineract-client/src/models/parameterizedHeader.ts new file mode 100644 index 0000000000..c719613231 --- /dev/null +++ b/packages/fineract-client/src/models/parameterizedHeader.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ParameterizedHeader { + parameters?: { [key: string]: string; }; + value?: string; +} + diff --git a/packages/fineract-client/src/models/paymentDetailData.ts b/packages/fineract-client/src/models/paymentDetailData.ts new file mode 100644 index 0000000000..96008cd36c --- /dev/null +++ b/packages/fineract-client/src/models/paymentDetailData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PaymentType } from './paymentType'; + + +export interface PaymentDetailData { + accountNumber?: string; + bankNumber?: string; + checkNumber?: string; + id?: number; + paymentType?: PaymentType; + receiptNumber?: string; + routingCode?: string; +} + diff --git a/packages/fineract-client/src/models/paymentType.ts b/packages/fineract-client/src/models/paymentType.ts new file mode 100644 index 0000000000..e3df7b6626 --- /dev/null +++ b/packages/fineract-client/src/models/paymentType.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PaymentType { + id?: number; + isSystemDefined?: boolean; + name?: string; +} + diff --git a/packages/fineract-client/src/models/paymentTypeData.ts b/packages/fineract-client/src/models/paymentTypeData.ts new file mode 100644 index 0000000000..8719f1ead8 --- /dev/null +++ b/packages/fineract-client/src/models/paymentTypeData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PaymentTypeData { + codeName?: string; + description?: string; + id?: number; + isCashPayment?: boolean; + isSystemDefined?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/paymentTypeToGLAccountMapper.ts b/packages/fineract-client/src/models/paymentTypeToGLAccountMapper.ts new file mode 100644 index 0000000000..b6de854553 --- /dev/null +++ b/packages/fineract-client/src/models/paymentTypeToGLAccountMapper.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PaymentTypeData } from './paymentTypeData'; +import { GLAccountData } from './gLAccountData'; + + +export interface PaymentTypeToGLAccountMapper { + fundSourceAccount?: GLAccountData; + paymentType?: PaymentTypeData; +} + diff --git a/packages/fineract-client/src/models/permission.ts b/packages/fineract-client/src/models/permission.ts new file mode 100644 index 0000000000..5560b3c4ee --- /dev/null +++ b/packages/fineract-client/src/models/permission.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface Permission { + code?: string; + grouping?: string; + id?: number; + _new?: boolean; +} + diff --git a/packages/fineract-client/src/models/portfolioAccountData.ts b/packages/fineract-client/src/models/portfolioAccountData.ts new file mode 100644 index 0000000000..4686fdcebe --- /dev/null +++ b/packages/fineract-client/src/models/portfolioAccountData.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CurrencyData } from './currencyData'; + + +export interface PortfolioAccountData { + accountNo?: string; + amtForTransfer?: number; + clientId?: number; + clientName?: string; + currency?: CurrencyData; + currencyCode?: string; + externalId?: string; + fieldOfficerId?: number; + fieldOfficerName?: string; + groupId?: number; + groupName?: string; + id?: number; + productId?: number; + productName?: string; +} + diff --git a/packages/fineract-client/src/models/postAccountNumberFormatsRequest.ts b/packages/fineract-client/src/models/postAccountNumberFormatsRequest.ts new file mode 100644 index 0000000000..6189d72e6a --- /dev/null +++ b/packages/fineract-client/src/models/postAccountNumberFormatsRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAccountNumberFormatsRequest + */ +export interface PostAccountNumberFormatsRequest { + accountType?: number; + prefixType?: number; +} + diff --git a/packages/fineract-client/src/models/postAccountNumberFormatsResponse.ts b/packages/fineract-client/src/models/postAccountNumberFormatsResponse.ts new file mode 100644 index 0000000000..4d0079ad73 --- /dev/null +++ b/packages/fineract-client/src/models/postAccountNumberFormatsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAccountNumberFormatsResponse + */ +export interface PostAccountNumberFormatsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postAccountTransfersRefundByTransferRequest.ts b/packages/fineract-client/src/models/postAccountTransfersRefundByTransferRequest.ts new file mode 100644 index 0000000000..2288a98bb4 --- /dev/null +++ b/packages/fineract-client/src/models/postAccountTransfersRefundByTransferRequest.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAccountTransfersRefundByTransferRequest + */ +export interface PostAccountTransfersRefundByTransferRequest { + dateFormat?: string; + fromAccountId?: number; + fromAccountType?: number; + fromClientId?: number; + fromOfficeId?: number; + locale?: string; + toAccountId?: number; + toAccountType?: number; + toClientId?: number; + toOfficeId?: number; + transferAmount?: number; + transferDate?: string; + transferDescription?: string; +} + diff --git a/packages/fineract-client/src/models/postAccountTransfersRefundByTransferResponse.ts b/packages/fineract-client/src/models/postAccountTransfersRefundByTransferResponse.ts new file mode 100644 index 0000000000..096dab9468 --- /dev/null +++ b/packages/fineract-client/src/models/postAccountTransfersRefundByTransferResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAccountTransfersRefundByTransferResponse + */ +export interface PostAccountTransfersRefundByTransferResponse { + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postAccountTransfersRequest.ts b/packages/fineract-client/src/models/postAccountTransfersRequest.ts new file mode 100644 index 0000000000..2d47e0d8a2 --- /dev/null +++ b/packages/fineract-client/src/models/postAccountTransfersRequest.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAccountTransfersRequest + */ +export interface PostAccountTransfersRequest { + dateFormat?: string; + fromAccountId?: number; + fromAccountType?: number; + fromClientId?: number; + fromOfficeId?: number; + locale?: string; + toAccountId?: number; + toAccountType?: number; + toClientId?: number; + toOfficeId?: number; + transferAmount?: number; + transferDate?: string; + transferDescription?: string; +} + diff --git a/packages/fineract-client/src/models/postAccountTransfersResponse.ts b/packages/fineract-client/src/models/postAccountTransfersResponse.ts new file mode 100644 index 0000000000..40ab3c92bf --- /dev/null +++ b/packages/fineract-client/src/models/postAccountTransfersResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAccountTransfersResponse + */ +export interface PostAccountTransfersResponse { + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postAccountingRulesRequest.ts b/packages/fineract-client/src/models/postAccountingRulesRequest.ts new file mode 100644 index 0000000000..17278b799d --- /dev/null +++ b/packages/fineract-client/src/models/postAccountingRulesRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAccountingRulesRequest + */ +export interface PostAccountingRulesRequest { + accountToCredit?: number; + accountToDebit?: number; + description?: string; + name?: string; + officeId?: number; +} + diff --git a/packages/fineract-client/src/models/postAccountingRulesResponse.ts b/packages/fineract-client/src/models/postAccountingRulesResponse.ts new file mode 100644 index 0000000000..3f6b83d81a --- /dev/null +++ b/packages/fineract-client/src/models/postAccountingRulesResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAccountingRulesResponse + */ +export interface PostAccountingRulesResponse { + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postAccountsCharges.ts b/packages/fineract-client/src/models/postAccountsCharges.ts new file mode 100644 index 0000000000..a442e1774c --- /dev/null +++ b/packages/fineract-client/src/models/postAccountsCharges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostAccountsCharges { + amount?: number; + chargeId?: number; +} + diff --git a/packages/fineract-client/src/models/postAccountsRequestedShares.ts b/packages/fineract-client/src/models/postAccountsRequestedShares.ts new file mode 100644 index 0000000000..0ecef49b63 --- /dev/null +++ b/packages/fineract-client/src/models/postAccountsRequestedShares.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostAccountsRequestedShares { + id?: number; +} + diff --git a/packages/fineract-client/src/models/postAccountsTypeAccountIdRequest.ts b/packages/fineract-client/src/models/postAccountsTypeAccountIdRequest.ts new file mode 100644 index 0000000000..9ec028b13f --- /dev/null +++ b/packages/fineract-client/src/models/postAccountsTypeAccountIdRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostAccountsRequestedShares } from './postAccountsRequestedShares'; + + +/** + * PostAccountsTypeAccountIdRequest + */ +export interface PostAccountsTypeAccountIdRequest { + requestedShares?: Set; +} + diff --git a/packages/fineract-client/src/models/postAccountsTypeAccountIdResponse.ts b/packages/fineract-client/src/models/postAccountsTypeAccountIdResponse.ts new file mode 100644 index 0000000000..95c27a7c17 --- /dev/null +++ b/packages/fineract-client/src/models/postAccountsTypeAccountIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAccountsTypeAccountIdResponse + */ +export interface PostAccountsTypeAccountIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postAccountsTypeRequest.ts b/packages/fineract-client/src/models/postAccountsTypeRequest.ts new file mode 100644 index 0000000000..fbfc616601 --- /dev/null +++ b/packages/fineract-client/src/models/postAccountsTypeRequest.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostAccountsCharges } from './postAccountsCharges'; + + +/** + * PostAccountsTypeRequest + */ +export interface PostAccountsTypeRequest { + allowDividendCalculationForInactiveClients?: boolean; + applicationDate?: string; + charges?: Set; + clientId?: number; + dateFormat?: string; + externalId?: number; + locale?: string; + lockinPeriodFrequency?: number; + lockinPeriodFrequencyType?: number; + minimumActivePeriod?: number; + minimumActivePeriodFrequencyType?: number; + productId?: number; + requestedShares?: number; + savingsAccountId?: number; + submittedDate?: string; +} + diff --git a/packages/fineract-client/src/models/postAccountsTypeResponse.ts b/packages/fineract-client/src/models/postAccountsTypeResponse.ts new file mode 100644 index 0000000000..3112ad74d4 --- /dev/null +++ b/packages/fineract-client/src/models/postAccountsTypeResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAccountsTypeResponse + */ +export interface PostAccountsTypeResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postAdhocQuerySearchRequest.ts b/packages/fineract-client/src/models/postAdhocQuerySearchRequest.ts new file mode 100644 index 0000000000..fb4c29fedb --- /dev/null +++ b/packages/fineract-client/src/models/postAdhocQuerySearchRequest.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAdhocQuerySearchRequest + */ +export interface PostAdhocQuerySearchRequest { + dateFormat?: string; + includeOutStandingAmountPercentage?: boolean; + includeOutstandingAmount?: boolean; + loanDateOption?: string; + loanFromDate?: string; + loanToDate?: string; + locale?: string; + maxOutstandingAmount?: number; + minOutstandingAmount?: number; + outStandingAmountPercentage?: number; + outStandingAmountPercentageCondition?: string; + outstandingAmountCondition?: string; +} + diff --git a/packages/fineract-client/src/models/postAdhocQuerySearchResponse.ts b/packages/fineract-client/src/models/postAdhocQuerySearchResponse.ts new file mode 100644 index 0000000000..ec29d855e5 --- /dev/null +++ b/packages/fineract-client/src/models/postAdhocQuerySearchResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAdhocQuerySearchResponse + */ +export interface PostAdhocQuerySearchResponse { + loanOutStanding?: number; + loanProductName?: string; + officeName?: string; + percentage?: number; +} + diff --git a/packages/fineract-client/src/models/postAuthenticationRequest.ts b/packages/fineract-client/src/models/postAuthenticationRequest.ts new file mode 100644 index 0000000000..8487ad1523 --- /dev/null +++ b/packages/fineract-client/src/models/postAuthenticationRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostAuthenticationRequest + */ +export interface PostAuthenticationRequest { + password: string; + username: string; +} + diff --git a/packages/fineract-client/src/models/postAuthenticationResponse.ts b/packages/fineract-client/src/models/postAuthenticationResponse.ts new file mode 100644 index 0000000000..89ae64835d --- /dev/null +++ b/packages/fineract-client/src/models/postAuthenticationResponse.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; +import { RoleData } from './roleData'; + + +/** + * PostAuthenticationResponse + */ +export interface PostAuthenticationResponse { + authenticated?: boolean; + base64EncodedAuthenticationKey?: string; + officeId?: number; + officeName?: string; + organisationalRole?: EnumOptionData; + permissions?: Array; + roles?: Array; + staffDisplayName?: string; + staffId?: number; + userId?: number; + username?: string; +} + diff --git a/packages/fineract-client/src/models/postCentersCenterIdRequest.ts b/packages/fineract-client/src/models/postCentersCenterIdRequest.ts new file mode 100644 index 0000000000..c5eabd82a5 --- /dev/null +++ b/packages/fineract-client/src/models/postCentersCenterIdRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCentersCenterIdRequest + */ +export interface PostCentersCenterIdRequest { + closureDate?: string; + closureReasonId?: number; + dateFormat?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postCentersCenterIdResponse.ts b/packages/fineract-client/src/models/postCentersCenterIdResponse.ts new file mode 100644 index 0000000000..89010793d4 --- /dev/null +++ b/packages/fineract-client/src/models/postCentersCenterIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCentersCenterIdResponse + */ +export interface PostCentersCenterIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postCentersRequest.ts b/packages/fineract-client/src/models/postCentersRequest.ts new file mode 100644 index 0000000000..8843e8e626 --- /dev/null +++ b/packages/fineract-client/src/models/postCentersRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCentersRequest + */ +export interface PostCentersRequest { + active?: boolean; + name?: string; + officeId?: number; +} + diff --git a/packages/fineract-client/src/models/postCentersResponse.ts b/packages/fineract-client/src/models/postCentersResponse.ts new file mode 100644 index 0000000000..00c14af3d7 --- /dev/null +++ b/packages/fineract-client/src/models/postCentersResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCentersResponse + */ +export interface PostCentersResponse { + groupId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postChargesRequest.ts b/packages/fineract-client/src/models/postChargesRequest.ts new file mode 100644 index 0000000000..bdded349e3 --- /dev/null +++ b/packages/fineract-client/src/models/postChargesRequest.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostChargesRequest + */ +export interface PostChargesRequest { + active?: boolean; + amount?: number; + chargeAppliesTo?: number; + chargeCalculationType?: number; + chargePaymentMode?: number; + chargeTimeType?: number; + currencyCode?: string; + locale?: string; + monthDayFormat?: string; + name?: string; + penalty?: boolean; +} + diff --git a/packages/fineract-client/src/models/postChargesResponse.ts b/packages/fineract-client/src/models/postChargesResponse.ts new file mode 100644 index 0000000000..bb3e725a29 --- /dev/null +++ b/packages/fineract-client/src/models/postChargesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostChargesResponse + */ +export interface PostChargesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postClientClientIdAddressesRequest.ts b/packages/fineract-client/src/models/postClientClientIdAddressesRequest.ts new file mode 100644 index 0000000000..bc289f1287 --- /dev/null +++ b/packages/fineract-client/src/models/postClientClientIdAddressesRequest.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientClientIdAddressesRequest + */ +export interface PostClientClientIdAddressesRequest { + addressLine1?: string; + addressLine2?: string; + addressLine3?: string; + city?: string; + countryId?: number; + isActive?: boolean; + postalCode?: number; + stateProvinceId?: number; + street?: string; +} + diff --git a/packages/fineract-client/src/models/postClientClientIdAddressesResponse.ts b/packages/fineract-client/src/models/postClientClientIdAddressesResponse.ts new file mode 100644 index 0000000000..9168c1dc42 --- /dev/null +++ b/packages/fineract-client/src/models/postClientClientIdAddressesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientClientIdAddressesResponse + */ +export interface PostClientClientIdAddressesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postClientCollateralRequest.ts b/packages/fineract-client/src/models/postClientCollateralRequest.ts new file mode 100644 index 0000000000..40cbaa67f4 --- /dev/null +++ b/packages/fineract-client/src/models/postClientCollateralRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientCollateralRequest + */ +export interface PostClientCollateralRequest { + collateralId?: number; + locale?: string; + quantity?: number; +} + diff --git a/packages/fineract-client/src/models/postClientCollateralResponse.ts b/packages/fineract-client/src/models/postClientCollateralResponse.ts new file mode 100644 index 0000000000..a0e0f34021 --- /dev/null +++ b/packages/fineract-client/src/models/postClientCollateralResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientCollateralResponse + */ +export interface PostClientCollateralResponse { + clientId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postClientsAddressRequest.ts b/packages/fineract-client/src/models/postClientsAddressRequest.ts new file mode 100644 index 0000000000..5dc7f45774 --- /dev/null +++ b/packages/fineract-client/src/models/postClientsAddressRequest.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * Address requests + */ +export interface PostClientsAddressRequest { + addressLine1?: string; + addressLine2?: string; + addressLine3?: string; + addressTypeId?: number; + city?: string; + countryId?: number; + isActive?: boolean; + postalCode?: number; + stateProvinceId?: number; + street?: string; +} + diff --git a/packages/fineract-client/src/models/postClientsClientIdChargesChargeIdRequest.ts b/packages/fineract-client/src/models/postClientsClientIdChargesChargeIdRequest.ts new file mode 100644 index 0000000000..5e7331a506 --- /dev/null +++ b/packages/fineract-client/src/models/postClientsClientIdChargesChargeIdRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientsClientIdChargesChargeIdRequest + */ +export interface PostClientsClientIdChargesChargeIdRequest { + amount?: number; + dateFormat?: string; + locale?: string; + transactionDate?: string; +} + diff --git a/packages/fineract-client/src/models/postClientsClientIdChargesChargeIdResponse.ts b/packages/fineract-client/src/models/postClientsClientIdChargesChargeIdResponse.ts new file mode 100644 index 0000000000..94d912a610 --- /dev/null +++ b/packages/fineract-client/src/models/postClientsClientIdChargesChargeIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientsClientIdChargesChargeIdResponse + */ +export interface PostClientsClientIdChargesChargeIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; + transactionId?: number; +} + diff --git a/packages/fineract-client/src/models/postClientsClientIdChargesRequest.ts b/packages/fineract-client/src/models/postClientsClientIdChargesRequest.ts new file mode 100644 index 0000000000..800a11685b --- /dev/null +++ b/packages/fineract-client/src/models/postClientsClientIdChargesRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientsClientIdChargesRequest + */ +export interface PostClientsClientIdChargesRequest { + amount?: number; + chargeId?: number; + dateFormat?: string; + dueDate?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postClientsClientIdChargesResponse.ts b/packages/fineract-client/src/models/postClientsClientIdChargesResponse.ts new file mode 100644 index 0000000000..7a58f0d0e8 --- /dev/null +++ b/packages/fineract-client/src/models/postClientsClientIdChargesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientsClientIdChargesResponse + */ +export interface PostClientsClientIdChargesResponse { + chargeId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postClientsClientIdIdentifiersRequest.ts b/packages/fineract-client/src/models/postClientsClientIdIdentifiersRequest.ts new file mode 100644 index 0000000000..5651b414b6 --- /dev/null +++ b/packages/fineract-client/src/models/postClientsClientIdIdentifiersRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientsClientIdIdentifiersRequest + */ +export interface PostClientsClientIdIdentifiersRequest { + description?: string; + documentKey?: string; + documentTypeId?: number; +} + diff --git a/packages/fineract-client/src/models/postClientsClientIdIdentifiersResponse.ts b/packages/fineract-client/src/models/postClientsClientIdIdentifiersResponse.ts new file mode 100644 index 0000000000..1db6bd3c7e --- /dev/null +++ b/packages/fineract-client/src/models/postClientsClientIdIdentifiersResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientsClientIdIdentifiersResponse + */ +export interface PostClientsClientIdIdentifiersResponse { + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postClientsClientIdRequest.ts b/packages/fineract-client/src/models/postClientsClientIdRequest.ts new file mode 100644 index 0000000000..af4bd3874b --- /dev/null +++ b/packages/fineract-client/src/models/postClientsClientIdRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientsClientIdRequest + */ +export interface PostClientsClientIdRequest { + activationDate?: string; + dateFormat?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postClientsClientIdResponse.ts b/packages/fineract-client/src/models/postClientsClientIdResponse.ts new file mode 100644 index 0000000000..2d819c6e89 --- /dev/null +++ b/packages/fineract-client/src/models/postClientsClientIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientsClientIdResponse + */ +export interface PostClientsClientIdResponse { + clientId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postClientsClientIdTransactionsTransactionIdResponse.ts b/packages/fineract-client/src/models/postClientsClientIdTransactionsTransactionIdResponse.ts new file mode 100644 index 0000000000..edef6ab17e --- /dev/null +++ b/packages/fineract-client/src/models/postClientsClientIdTransactionsTransactionIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientsClientIdTransactionsTransactionIdResponse + */ +export interface PostClientsClientIdTransactionsTransactionIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postClientsDatatable.ts b/packages/fineract-client/src/models/postClientsDatatable.ts new file mode 100644 index 0000000000..2da33172ae --- /dev/null +++ b/packages/fineract-client/src/models/postClientsDatatable.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * List of PostClientsDatatable + */ +export interface PostClientsDatatable { + data?: { [key: string]: object; }; + registeredTableName?: string; +} + diff --git a/packages/fineract-client/src/models/postClientsRequest.ts b/packages/fineract-client/src/models/postClientsRequest.ts new file mode 100644 index 0000000000..1f3535a5a1 --- /dev/null +++ b/packages/fineract-client/src/models/postClientsRequest.ts @@ -0,0 +1,43 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostClientsDatatable } from './postClientsDatatable'; +import { PostClientsAddressRequest } from './postClientsAddressRequest'; + + +/** + * PostClientsRequest + */ +export interface PostClientsRequest { + activationDate?: string; + active?: boolean; + /** + * Address requests + */ + address?: Array; + /** + * List of PostClientsDatatable + */ + datatables?: Array; + dateFormat?: string; + dateOfBirth?: string; + emailAddress?: string; + externalId?: string; + firstname?: string; + fullname?: string; + groupId?: number; + lastname?: string; + legalFormId?: number; + locale?: string; + mobileNo?: string; + officeId?: number; +} + diff --git a/packages/fineract-client/src/models/postClientsResponse.ts b/packages/fineract-client/src/models/postClientsResponse.ts new file mode 100644 index 0000000000..a18a837996 --- /dev/null +++ b/packages/fineract-client/src/models/postClientsResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostClientsResponse + */ +export interface PostClientsResponse { + clientId?: number; + groupId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postCodeValueDataResponse.ts b/packages/fineract-client/src/models/postCodeValueDataResponse.ts new file mode 100644 index 0000000000..70976c5aaa --- /dev/null +++ b/packages/fineract-client/src/models/postCodeValueDataResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCodeValueDataResponse + */ +export interface PostCodeValueDataResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postCodeValuesDataRequest.ts b/packages/fineract-client/src/models/postCodeValuesDataRequest.ts new file mode 100644 index 0000000000..7f7621d1fd --- /dev/null +++ b/packages/fineract-client/src/models/postCodeValuesDataRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCodeValuesDataRequest + */ +export interface PostCodeValuesDataRequest { + description?: string; + isActive?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/postCodesRequest.ts b/packages/fineract-client/src/models/postCodesRequest.ts new file mode 100644 index 0000000000..f89b2864b9 --- /dev/null +++ b/packages/fineract-client/src/models/postCodesRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCodesRequest + */ +export interface PostCodesRequest { + name?: string; +} + diff --git a/packages/fineract-client/src/models/postCodesResponse.ts b/packages/fineract-client/src/models/postCodesResponse.ts new file mode 100644 index 0000000000..a643cb7068 --- /dev/null +++ b/packages/fineract-client/src/models/postCodesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCodesResponse + */ +export interface PostCodesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postCollateralManagementProductRequest.ts b/packages/fineract-client/src/models/postCollateralManagementProductRequest.ts new file mode 100644 index 0000000000..3877178abf --- /dev/null +++ b/packages/fineract-client/src/models/postCollateralManagementProductRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCollateralManagementProductRequest + */ +export interface PostCollateralManagementProductRequest { + basePrice?: number; + currency?: string; + name?: string; + pctToBase?: number; + quality?: string; + unitType?: string; +} + diff --git a/packages/fineract-client/src/models/postCollateralManagementProductResponse.ts b/packages/fineract-client/src/models/postCollateralManagementProductResponse.ts new file mode 100644 index 0000000000..cad878e291 --- /dev/null +++ b/packages/fineract-client/src/models/postCollateralManagementProductResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCollateralManagementProductResponse + */ +export interface PostCollateralManagementProductResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postCollectionSheetBulkRepaymentTransactions.ts b/packages/fineract-client/src/models/postCollectionSheetBulkRepaymentTransactions.ts new file mode 100644 index 0000000000..37475cee00 --- /dev/null +++ b/packages/fineract-client/src/models/postCollectionSheetBulkRepaymentTransactions.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostCollectionSheetBulkRepaymentTransactions { + loanId?: number; + paymentTypeId?: number; + receiptNumber?: number; + transactionAmount?: number; +} + diff --git a/packages/fineract-client/src/models/postCollectionSheetChanges.ts b/packages/fineract-client/src/models/postCollectionSheetChanges.ts new file mode 100644 index 0000000000..35435e1fa4 --- /dev/null +++ b/packages/fineract-client/src/models/postCollectionSheetChanges.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostCollectionSheetChanges { + SavingsTransactions?: Array; + dateFormat?: string; + loanTransactions?: Array; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postCollectionSheetRequest.ts b/packages/fineract-client/src/models/postCollectionSheetRequest.ts new file mode 100644 index 0000000000..452d8eabaa --- /dev/null +++ b/packages/fineract-client/src/models/postCollectionSheetRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostCollectionSheetBulkRepaymentTransactions } from './postCollectionSheetBulkRepaymentTransactions'; + + +/** + * PostCollectionSheetRequest + */ +export interface PostCollectionSheetRequest { + actualDisbursementDate?: string; + bulkDisbursementTransactions?: Array; + bulkRepaymentTransactions?: PostCollectionSheetBulkRepaymentTransactions; + bulkSavingsDueTransactions?: Array; + dateFormat?: string; + locale?: string; + transactionDate?: string; +} + diff --git a/packages/fineract-client/src/models/postCollectionSheetResponse.ts b/packages/fineract-client/src/models/postCollectionSheetResponse.ts new file mode 100644 index 0000000000..1ffedaf26a --- /dev/null +++ b/packages/fineract-client/src/models/postCollectionSheetResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostCollectionSheetChanges } from './postCollectionSheetChanges'; + + +/** + * PostCollectionSheetResponse + */ +export interface PostCollectionSheetResponse { + changes?: PostCollectionSheetChanges; + groupId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postColumnHeaderData.ts b/packages/fineract-client/src/models/postColumnHeaderData.ts new file mode 100644 index 0000000000..423d6d4a66 --- /dev/null +++ b/packages/fineract-client/src/models/postColumnHeaderData.ts @@ -0,0 +1,41 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostColumnHeaderData { + /** + * Used in Code Value fields. Column name becomes: code_cd_name. Mandatory if using type Dropdown, otherwise an error is returned. + */ + code?: string; + /** + * Defaults to false + */ + indexed?: boolean; + /** + * Length of the text field. Mandatory if type String is used, otherwise an error is returned. + */ + length?: number; + /** + * Defaults to false + */ + mandatory?: boolean; + name: string; + /** + * Any of them: Boolean | Date | DateTime | Decimal | Dropdown | Number | String | Text + */ + type: string; + /** + * Defaults to false + */ + unique?: boolean; +} + diff --git a/packages/fineract-client/src/models/postCreateRescheduleLoansRequest.ts b/packages/fineract-client/src/models/postCreateRescheduleLoansRequest.ts new file mode 100644 index 0000000000..69b6ccd156 --- /dev/null +++ b/packages/fineract-client/src/models/postCreateRescheduleLoansRequest.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCreateRescheduleLoansRequest + */ +export interface PostCreateRescheduleLoansRequest { + adjustedDueDate?: string; + dateFormat?: string; + extraTerms?: number; + graceOnInterest?: number; + graceOnPrincipal?: number; + loanId?: number; + locale?: string; + newInterestRate?: number; + rescheduleFromDate?: string; + rescheduleReasonComment?: string; + rescheduleReasonId?: number; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/postCreateRescheduleLoansResponse.ts b/packages/fineract-client/src/models/postCreateRescheduleLoansResponse.ts new file mode 100644 index 0000000000..f66b6a5624 --- /dev/null +++ b/packages/fineract-client/src/models/postCreateRescheduleLoansResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostCreateRescheduleLoansResponse + */ +export interface PostCreateRescheduleLoansResponse { + clientId?: number; + loanId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postDataTablesAppTableIdResponse.ts b/packages/fineract-client/src/models/postDataTablesAppTableIdResponse.ts new file mode 100644 index 0000000000..2f532bccbd --- /dev/null +++ b/packages/fineract-client/src/models/postDataTablesAppTableIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostDataTablesAppTableIdResponse + */ +export interface PostDataTablesAppTableIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postDataTablesRequest.ts b/packages/fineract-client/src/models/postDataTablesRequest.ts new file mode 100644 index 0000000000..c3f0cac5a1 --- /dev/null +++ b/packages/fineract-client/src/models/postDataTablesRequest.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostColumnHeaderData } from './postColumnHeaderData'; + + +/** + * PostDataTablesRequest + */ +export interface PostDataTablesRequest { + apptableName: string; + columns: Array; + datatableName: string; + entitySubType?: string; + /** + * Allows to create multiple entries in the Data Table. Optional, defaults to false. If this property is not provided Data Table will allow only one entry. + */ + multiRow?: boolean; +} + diff --git a/packages/fineract-client/src/models/postDataTablesResponse.ts b/packages/fineract-client/src/models/postDataTablesResponse.ts new file mode 100644 index 0000000000..a466fdf3cc --- /dev/null +++ b/packages/fineract-client/src/models/postDataTablesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostDataTablesResponse + */ +export interface PostDataTablesResponse { + resourceIdentifier?: string; +} + diff --git a/packages/fineract-client/src/models/postDelinquencyBucketRequest.ts b/packages/fineract-client/src/models/postDelinquencyBucketRequest.ts new file mode 100644 index 0000000000..490f51f9d1 --- /dev/null +++ b/packages/fineract-client/src/models/postDelinquencyBucketRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostDelinquencyBucketRequest + */ +export interface PostDelinquencyBucketRequest { + name?: string; + ranges?: Array; +} + diff --git a/packages/fineract-client/src/models/postDelinquencyBucketResponse.ts b/packages/fineract-client/src/models/postDelinquencyBucketResponse.ts new file mode 100644 index 0000000000..c3ffd1851b --- /dev/null +++ b/packages/fineract-client/src/models/postDelinquencyBucketResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostDelinquencyBucketResponse + */ +export interface PostDelinquencyBucketResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postDelinquencyRangeRequest.ts b/packages/fineract-client/src/models/postDelinquencyRangeRequest.ts new file mode 100644 index 0000000000..c846e22195 --- /dev/null +++ b/packages/fineract-client/src/models/postDelinquencyRangeRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostDelinquencyRangeRequest + */ +export interface PostDelinquencyRangeRequest { + classification?: string; + locale?: string; + maximumAgeDays?: number; + minimumAgeDays?: number; +} + diff --git a/packages/fineract-client/src/models/postDelinquencyRangeResponse.ts b/packages/fineract-client/src/models/postDelinquencyRangeResponse.ts new file mode 100644 index 0000000000..41d2ef4057 --- /dev/null +++ b/packages/fineract-client/src/models/postDelinquencyRangeResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostDelinquencyRangeResponse + */ +export interface PostDelinquencyRangeResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postEntityDatatableChecksTemplateRequest.ts b/packages/fineract-client/src/models/postEntityDatatableChecksTemplateRequest.ts new file mode 100644 index 0000000000..897f8e58d8 --- /dev/null +++ b/packages/fineract-client/src/models/postEntityDatatableChecksTemplateRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostEntityDatatableChecksTemplateRequest + */ +export interface PostEntityDatatableChecksTemplateRequest { + datatableName?: string; + entity?: string; + productId?: number; + status?: number; +} + diff --git a/packages/fineract-client/src/models/postEntityDatatableChecksTemplateResponse.ts b/packages/fineract-client/src/models/postEntityDatatableChecksTemplateResponse.ts new file mode 100644 index 0000000000..fd607019aa --- /dev/null +++ b/packages/fineract-client/src/models/postEntityDatatableChecksTemplateResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostEntityDatatableChecksTemplateResponse + */ +export interface PostEntityDatatableChecksTemplateResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postEntityTypeEntityIdDocumentsResponse.ts b/packages/fineract-client/src/models/postEntityTypeEntityIdDocumentsResponse.ts new file mode 100644 index 0000000000..0d0b9c164c --- /dev/null +++ b/packages/fineract-client/src/models/postEntityTypeEntityIdDocumentsResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostEntityTypeEntityIdDocumentsResponse + */ +export interface PostEntityTypeEntityIdDocumentsResponse { + resourceId?: number; + resourceIdentifier?: string; +} + diff --git a/packages/fineract-client/src/models/postFinancialActivityAccountsRequest.ts b/packages/fineract-client/src/models/postFinancialActivityAccountsRequest.ts new file mode 100644 index 0000000000..071494a75a --- /dev/null +++ b/packages/fineract-client/src/models/postFinancialActivityAccountsRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostFinancialActivityAccountsRequest + */ +export interface PostFinancialActivityAccountsRequest { + financialActivityId?: number; + glAccountId?: number; +} + diff --git a/packages/fineract-client/src/models/postFinancialActivityAccountsResponse.ts b/packages/fineract-client/src/models/postFinancialActivityAccountsResponse.ts new file mode 100644 index 0000000000..1ce40e9609 --- /dev/null +++ b/packages/fineract-client/src/models/postFinancialActivityAccountsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostFinancialActivityAccountsResponse + */ +export interface PostFinancialActivityAccountsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postFixedDepositAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/postFixedDepositAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..eaecb8c08b --- /dev/null +++ b/packages/fineract-client/src/models/postFixedDepositAccountsAccountIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostFixedDepositAccountsAccountIdResponse + */ +export interface PostFixedDepositAccountsAccountIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postFixedDepositAccountsRequest.ts b/packages/fineract-client/src/models/postFixedDepositAccountsRequest.ts new file mode 100644 index 0000000000..eade1a5014 --- /dev/null +++ b/packages/fineract-client/src/models/postFixedDepositAccountsRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostFixedDepositAccountsRequest + */ +export interface PostFixedDepositAccountsRequest { + clientId?: number; + dateFormat?: string; + depositAmount?: number; + depositPeriod?: number; + depositPeriodFrequencyId?: number; + locale?: string; + productId?: number; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/postFixedDepositAccountsResponse.ts b/packages/fineract-client/src/models/postFixedDepositAccountsResponse.ts new file mode 100644 index 0000000000..ff3d6730a8 --- /dev/null +++ b/packages/fineract-client/src/models/postFixedDepositAccountsResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostFixedDepositAccountsResponse + */ +export interface PostFixedDepositAccountsResponse { + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postFixedDepositProductsChartSlabs.ts b/packages/fineract-client/src/models/postFixedDepositProductsChartSlabs.ts new file mode 100644 index 0000000000..e44c50f695 --- /dev/null +++ b/packages/fineract-client/src/models/postFixedDepositProductsChartSlabs.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostFixedDepositProductsChartSlabs { + annualInterestRate?: number; + description?: string; + fromPeriod?: number; + periodType?: number; + toPeriod?: number; +} + diff --git a/packages/fineract-client/src/models/postFixedDepositProductsCharts.ts b/packages/fineract-client/src/models/postFixedDepositProductsCharts.ts new file mode 100644 index 0000000000..f1ef0ac3a5 --- /dev/null +++ b/packages/fineract-client/src/models/postFixedDepositProductsCharts.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostFixedDepositProductsChartSlabs } from './postFixedDepositProductsChartSlabs'; + + +export interface PostFixedDepositProductsCharts { + chartSlabs?: Set; + dateFormat?: string; + fromDate?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postFixedDepositProductsRequest.ts b/packages/fineract-client/src/models/postFixedDepositProductsRequest.ts new file mode 100644 index 0000000000..1812f7953b --- /dev/null +++ b/packages/fineract-client/src/models/postFixedDepositProductsRequest.ts @@ -0,0 +1,40 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostFixedDepositProductsCharts } from './postFixedDepositProductsCharts'; + + +/** + * PostFixedDepositProductsRequest + */ +export interface PostFixedDepositProductsRequest { + accountingRule?: number; + charts?: Set; + currencyCode?: string; + description?: string; + digitsAfterDecimal?: number; + inMultiplesOf?: number; + interestCalculationDaysInYearType?: number; + interestCalculationType?: number; + interestCompoundingPeriodType?: number; + interestPostingPeriodType?: number; + locale?: string; + maxDepositTerm?: number; + maxDepositTermTypeId?: number; + minDepositTerm?: number; + minDepositTermTypeId?: number; + name?: string; + preClosurePenalApplicable?: boolean; + preClosurePenalInterest?: number; + preClosurePenalInterestOnTypeId?: number; + shortName?: string; +} + diff --git a/packages/fineract-client/src/models/postFixedDepositProductsResponse.ts b/packages/fineract-client/src/models/postFixedDepositProductsResponse.ts new file mode 100644 index 0000000000..861eafc8ef --- /dev/null +++ b/packages/fineract-client/src/models/postFixedDepositProductsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostFixedDepositProductsResponse + */ +export interface PostFixedDepositProductsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postFloatingRatesRatePeriods.ts b/packages/fineract-client/src/models/postFloatingRatesRatePeriods.ts new file mode 100644 index 0000000000..355b1cac38 --- /dev/null +++ b/packages/fineract-client/src/models/postFloatingRatesRatePeriods.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostFloatingRatesRatePeriods { + dateFormat?: string; + fromDate?: string; + interestRate?: number; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postFloatingRatesRequest.ts b/packages/fineract-client/src/models/postFloatingRatesRequest.ts new file mode 100644 index 0000000000..2a2b892f38 --- /dev/null +++ b/packages/fineract-client/src/models/postFloatingRatesRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostFloatingRatesRatePeriods } from './postFloatingRatesRatePeriods'; + + +/** + * PostFloatingRatesRequest + */ +export interface PostFloatingRatesRequest { + isActive?: boolean; + isBaseLendingRate?: boolean; + name?: string; + ratePeriods?: Set; +} + diff --git a/packages/fineract-client/src/models/postFloatingRatesResponse.ts b/packages/fineract-client/src/models/postFloatingRatesResponse.ts new file mode 100644 index 0000000000..78d94d9237 --- /dev/null +++ b/packages/fineract-client/src/models/postFloatingRatesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostFloatingRatesResponse + */ +export interface PostFloatingRatesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postFundsRequest.ts b/packages/fineract-client/src/models/postFundsRequest.ts new file mode 100644 index 0000000000..e6100249e0 --- /dev/null +++ b/packages/fineract-client/src/models/postFundsRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostFundsRequest + */ +export interface PostFundsRequest { + name?: string; +} + diff --git a/packages/fineract-client/src/models/postFundsResponse.ts b/packages/fineract-client/src/models/postFundsResponse.ts new file mode 100644 index 0000000000..3fc93ec067 --- /dev/null +++ b/packages/fineract-client/src/models/postFundsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostFundsResponse + */ +export interface PostFundsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postGLAccountsRequest.ts b/packages/fineract-client/src/models/postGLAccountsRequest.ts new file mode 100644 index 0000000000..fe19d63864 --- /dev/null +++ b/packages/fineract-client/src/models/postGLAccountsRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostGLAccountsRequest + */ +export interface PostGLAccountsRequest { + description?: string; + glCode?: string; + manualEntriesAllowed?: boolean; + name?: string; + parentId?: number; + tagId?: number; + type?: number; + usage?: number; +} + diff --git a/packages/fineract-client/src/models/postGLAccountsResponse.ts b/packages/fineract-client/src/models/postGLAccountsResponse.ts new file mode 100644 index 0000000000..7e68b44bf9 --- /dev/null +++ b/packages/fineract-client/src/models/postGLAccountsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostGLAccountsResponse + */ +export interface PostGLAccountsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postGlClosuresRequest.ts b/packages/fineract-client/src/models/postGlClosuresRequest.ts new file mode 100644 index 0000000000..205e0001a8 --- /dev/null +++ b/packages/fineract-client/src/models/postGlClosuresRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostGLCLosuresRequest + */ +export interface PostGlClosuresRequest { + closingDate?: string; + comments?: string; + dateFormat?: string; + locale?: string; + officeId?: number; +} + diff --git a/packages/fineract-client/src/models/postGlClosuresResponse.ts b/packages/fineract-client/src/models/postGlClosuresResponse.ts new file mode 100644 index 0000000000..deea3b0fbc --- /dev/null +++ b/packages/fineract-client/src/models/postGlClosuresResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostGlClosuresResponse + */ +export interface PostGlClosuresResponse { + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postGroupsGroupIdClients.ts b/packages/fineract-client/src/models/postGroupsGroupIdClients.ts new file mode 100644 index 0000000000..482d4abb16 --- /dev/null +++ b/packages/fineract-client/src/models/postGroupsGroupIdClients.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostGroupsGroupIdClients { + id?: number; +} + diff --git a/packages/fineract-client/src/models/postGroupsGroupIdCommandUnassignStaffRequest.ts b/packages/fineract-client/src/models/postGroupsGroupIdCommandUnassignStaffRequest.ts new file mode 100644 index 0000000000..3547337614 --- /dev/null +++ b/packages/fineract-client/src/models/postGroupsGroupIdCommandUnassignStaffRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostGroupsGroupIdCommandUnassignStaffRequest + */ +export interface PostGroupsGroupIdCommandUnassignStaffRequest { + staffId?: number; +} + diff --git a/packages/fineract-client/src/models/postGroupsGroupIdCommandUnassignStaffResponse.ts b/packages/fineract-client/src/models/postGroupsGroupIdCommandUnassignStaffResponse.ts new file mode 100644 index 0000000000..36a185d41c --- /dev/null +++ b/packages/fineract-client/src/models/postGroupsGroupIdCommandUnassignStaffResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostGroupsGroupIdCommandUnassignStaffResponse + */ +export interface PostGroupsGroupIdCommandUnassignStaffResponse { + changes?: object; + groupId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postGroupsGroupIdRequest.ts b/packages/fineract-client/src/models/postGroupsGroupIdRequest.ts new file mode 100644 index 0000000000..1aa3142cff --- /dev/null +++ b/packages/fineract-client/src/models/postGroupsGroupIdRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostGroupsGroupIdClients } from './postGroupsGroupIdClients'; + + +/** + * PostGroupsGroupIdRequest + */ +export interface PostGroupsGroupIdRequest { + clients?: Set; + destinationGroupId?: number; +} + diff --git a/packages/fineract-client/src/models/postGroupsGroupIdResponse.ts b/packages/fineract-client/src/models/postGroupsGroupIdResponse.ts new file mode 100644 index 0000000000..520c52b2b5 --- /dev/null +++ b/packages/fineract-client/src/models/postGroupsGroupIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostGroupsGroupIdResponse + */ +export interface PostGroupsGroupIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postGroupsRequest.ts b/packages/fineract-client/src/models/postGroupsRequest.ts new file mode 100644 index 0000000000..5508dcc10a --- /dev/null +++ b/packages/fineract-client/src/models/postGroupsRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostGroupsRequest + */ +export interface PostGroupsRequest { + active?: boolean; + name?: string; + officeId?: number; +} + diff --git a/packages/fineract-client/src/models/postGroupsResponse.ts b/packages/fineract-client/src/models/postGroupsResponse.ts new file mode 100644 index 0000000000..4c67be54e0 --- /dev/null +++ b/packages/fineract-client/src/models/postGroupsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostGroupsResponse + */ +export interface PostGroupsResponse { + groupId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postHolidaysHolidayIdResponse.ts b/packages/fineract-client/src/models/postHolidaysHolidayIdResponse.ts new file mode 100644 index 0000000000..a5cff9804b --- /dev/null +++ b/packages/fineract-client/src/models/postHolidaysHolidayIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostHolidaysHolidayIdResponse + */ +export interface PostHolidaysHolidayIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postHolidaysRequest.ts b/packages/fineract-client/src/models/postHolidaysRequest.ts new file mode 100644 index 0000000000..25d822d199 --- /dev/null +++ b/packages/fineract-client/src/models/postHolidaysRequest.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostHolidaysRequestOffices } from './postHolidaysRequestOffices'; + + +/** + * PostHolidaysRequest + */ +export interface PostHolidaysRequest { + dateFormat?: string; + description?: string; + fromDate?: string; + locale?: string; + name?: string; + offices?: Array; + repaymentsRescheduledTo?: string; + toDate?: string; +} + diff --git a/packages/fineract-client/src/models/postHolidaysRequestOffices.ts b/packages/fineract-client/src/models/postHolidaysRequestOffices.ts new file mode 100644 index 0000000000..490e28359e --- /dev/null +++ b/packages/fineract-client/src/models/postHolidaysRequestOffices.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostHolidaysRequestOffices { + officeId?: number; +} + diff --git a/packages/fineract-client/src/models/postHolidaysResponse.ts b/packages/fineract-client/src/models/postHolidaysResponse.ts new file mode 100644 index 0000000000..44c51c6f47 --- /dev/null +++ b/packages/fineract-client/src/models/postHolidaysResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostHolidaysResponse + */ +export interface PostHolidaysResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postHookRequest.ts b/packages/fineract-client/src/models/postHookRequest.ts new file mode 100644 index 0000000000..719ab41c32 --- /dev/null +++ b/packages/fineract-client/src/models/postHookRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Field } from './field'; +import { Event } from './event'; + + +/** + * PostHookRequest + */ +export interface PostHookRequest { + config?: Array; + displayName?: string; + events?: Array; + isActive?: boolean; + name?: string; + templateId?: number; +} + diff --git a/packages/fineract-client/src/models/postHookResponse.ts b/packages/fineract-client/src/models/postHookResponse.ts new file mode 100644 index 0000000000..65896b7b50 --- /dev/null +++ b/packages/fineract-client/src/models/postHookResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostHookResponse + */ +export interface PostHookResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postInitiateTransferRequest.ts b/packages/fineract-client/src/models/postInitiateTransferRequest.ts new file mode 100644 index 0000000000..6d3686db3d --- /dev/null +++ b/packages/fineract-client/src/models/postInitiateTransferRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostInitiateTransferRequest + */ +export interface PostInitiateTransferRequest { + dateFormat?: string; + locale?: string; + ownerExternalId?: string; + purchasePriceRatio?: string; + settlementDate?: string; + transferExternalId?: string; +} + diff --git a/packages/fineract-client/src/models/postInitiateTransferResponse.ts b/packages/fineract-client/src/models/postInitiateTransferResponse.ts new file mode 100644 index 0000000000..cf90b8aa4b --- /dev/null +++ b/packages/fineract-client/src/models/postInitiateTransferResponse.ts @@ -0,0 +1,39 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ExternalAssetOwnerTransferChangesData } from './externalAssetOwnerTransferChangesData'; + + +/** + * PostInitiateTransferResponse + */ +export interface PostInitiateTransferResponse { + changes?: ExternalAssetOwnerTransferChangesData; + dateFormat?: string; + locale?: string; + /** + * transfer external ID + */ + resourceExternalId?: string; + /** + * transfer ID + */ + resourceId?: number; + /** + * loan external ID + */ + subResourceExternalId?: string; + /** + * loan ID + */ + subResourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsIncentives.ts b/packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsIncentives.ts new file mode 100644 index 0000000000..796d24477a --- /dev/null +++ b/packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsIncentives.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostInterestRateChartsChartIdChartSlabsIncentives { + amount?: number; + attributeName?: number; + attributeValue?: number; + conditionType?: number; + entityType?: number; + incentiveType?: number; +} + diff --git a/packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsRequest.ts b/packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsRequest.ts new file mode 100644 index 0000000000..73706d820e --- /dev/null +++ b/packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostInterestRateChartsChartIdChartSlabsIncentives } from './postInterestRateChartsChartIdChartSlabsIncentives'; + + +/** + * PostInterestRateChartsChartIdChartSlabsRequest + */ +export interface PostInterestRateChartsChartIdChartSlabsRequest { + annualInterestRate?: number; + description?: string; + fromPeriod?: number; + incentives?: Set; + locale?: string; + periodType?: number; + toPeriod?: number; +} + diff --git a/packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsResponse.ts b/packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsResponse.ts new file mode 100644 index 0000000000..bcd7766f42 --- /dev/null +++ b/packages/fineract-client/src/models/postInterestRateChartsChartIdChartSlabsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostInterestRateChartsChartIdChartSlabsResponse + */ +export interface PostInterestRateChartsChartIdChartSlabsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postInterestRateChartsRequest.ts b/packages/fineract-client/src/models/postInterestRateChartsRequest.ts new file mode 100644 index 0000000000..96b5e0f0de --- /dev/null +++ b/packages/fineract-client/src/models/postInterestRateChartsRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostInterestRateChartsRequest + */ +export interface PostInterestRateChartsRequest { + dateFormat?: string; + description?: string; + fromDate?: string; + locale?: string; + name?: string; + type?: string; +} + diff --git a/packages/fineract-client/src/models/postInterestRateChartsResponse.ts b/packages/fineract-client/src/models/postInterestRateChartsResponse.ts new file mode 100644 index 0000000000..d28b80d551 --- /dev/null +++ b/packages/fineract-client/src/models/postInterestRateChartsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostInterestRateChartsResponse + */ +export interface PostInterestRateChartsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postJournalEntriesResponse.ts b/packages/fineract-client/src/models/postJournalEntriesResponse.ts new file mode 100644 index 0000000000..e82ca1b7d8 --- /dev/null +++ b/packages/fineract-client/src/models/postJournalEntriesResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostJournalEntriesResponse + */ +export interface PostJournalEntriesResponse { + /** + * 1 + */ + officeId?: number; + /** + * RS9MCISID4WK1ZM + */ + transactionId?: string; +} + diff --git a/packages/fineract-client/src/models/postJournalEntriesTransactionIdRequest.ts b/packages/fineract-client/src/models/postJournalEntriesTransactionIdRequest.ts new file mode 100644 index 0000000000..b6a3475889 --- /dev/null +++ b/packages/fineract-client/src/models/postJournalEntriesTransactionIdRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostJournalEntriesTransactionIdRequest + */ +export interface PostJournalEntriesTransactionIdRequest { + /** + * 1 + */ + officeId?: number; +} + diff --git a/packages/fineract-client/src/models/postJournalEntriesTransactionIdResponse.ts b/packages/fineract-client/src/models/postJournalEntriesTransactionIdResponse.ts new file mode 100644 index 0000000000..a21ea05609 --- /dev/null +++ b/packages/fineract-client/src/models/postJournalEntriesTransactionIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostJournalEntriesTransactionIdResponse + */ +export interface PostJournalEntriesTransactionIdResponse { + /** + * 1 + */ + officeId?: number; +} + diff --git a/packages/fineract-client/src/models/postLinkDelinkAccountsToFromPocketResponse.ts b/packages/fineract-client/src/models/postLinkDelinkAccountsToFromPocketResponse.ts new file mode 100644 index 0000000000..420bae6c69 --- /dev/null +++ b/packages/fineract-client/src/models/postLinkDelinkAccountsToFromPocketResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostLinkDelinkAccountsToFromPocketResponse + */ +export interface PostLinkDelinkAccountsToFromPocketResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoanChanges.ts b/packages/fineract-client/src/models/postLoanChanges.ts new file mode 100644 index 0000000000..d0506e941b --- /dev/null +++ b/packages/fineract-client/src/models/postLoanChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostLoanChanges { + removedEntityIds?: Array; +} + diff --git a/packages/fineract-client/src/models/postLoanProductsRequest.ts b/packages/fineract-client/src/models/postLoanProductsRequest.ts new file mode 100644 index 0000000000..a9845105d5 --- /dev/null +++ b/packages/fineract-client/src/models/postLoanProductsRequest.ts @@ -0,0 +1,124 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { AllowAttributeOverrides } from './allowAttributeOverrides'; +import { ChargeToGLAccountMapper } from './chargeToGLAccountMapper'; +import { GetLoanPaymentChannelToFundSourceMappings } from './getLoanPaymentChannelToFundSourceMappings'; +import { RateData } from './rateData'; +import { GetLoanFeeToIncomeAccountMappings } from './getLoanFeeToIncomeAccountMappings'; +import { ChargeData } from './chargeData'; + + +/** + * PostLoanProductsRequest + */ +export interface PostLoanProductsRequest { + accountMovesOutOfNPAOnlyOnArrearsCompletion?: boolean; + accountingRule?: number; + allowApprovedDisbursedAmountsOverApplied?: boolean; + allowAttributeOverrides?: AllowAttributeOverrides; + allowPartialPeriodInterestCalcualtion?: boolean; + allowVariableInstallments?: boolean; + amortizationType?: number; + canDefineInstallmentAmount?: boolean; + canUseForTopup?: boolean; + chargeOffExpenseAccountId?: number; + chargeOffFraudExpenseAccountId?: number; + charges?: Array; + closeDate?: string; + currencyCode?: string; + dateFormat?: string; + daysInMonthType?: number; + daysInYearType?: number; + delinquencyBucketId?: number; + description?: string; + digitsAfterDecimal?: number; + disallowExpectedDisbursements?: boolean; + dueDaysForRepaymentEvent?: number; + externalId?: string; + feeToIncomeAccountMappings?: Array; + fixedPrincipalPercentagePerInstallment?: number; + fundId?: number; + fundSourceAccountId?: number; + goodwillCreditAccountId?: number; + graceOnArrearsAgeing?: number; + graceOnInterestPayment?: number; + graceOnPrincipalPayment?: number; + holdGuaranteeFunds?: boolean; + inArrearsTolerance?: number; + inMultiplesOf?: number; + includeInBorrowerCycle?: boolean; + incomeFromChargeOffFeesAccountId?: number; + incomeFromChargeOffInterestAccountId?: number; + incomeFromChargeOffPenaltyAccountId?: number; + incomeFromFeeAccountId?: number; + incomeFromGoodwillCreditFeesAccountId?: number; + incomeFromGoodwillCreditInterestAccountId?: number; + incomeFromGoodwillCreditPenaltyAccountId?: number; + incomeFromPenaltyAccountId?: number; + incomeFromRecoveryAccountId?: number; + installmentAmountInMultiplesOf?: number; + interestCalculationPeriodType?: number; + interestOnLoanAccountId?: number; + interestRateFrequencyType?: number; + interestRatePerPeriod?: number; + interestRateVariationsForBorrowerCycle?: Array; + interestRecalculationCompoundingMethod?: number; + interestType?: number; + isEqualAmortization?: boolean; + isInterestRecalculationEnabled?: boolean; + isLinkedToFloatingInterestRates?: boolean; + loanPortfolioAccountId?: number; + locale?: string; + maxInterestRatePerPeriod?: number; + maxNumberOfRepayments?: number; + maxPrincipal?: number; + maxTrancheCount?: number; + minInterestRatePerPeriod?: number; + minNumberOfRepayments?: number; + minPrincipal?: number; + minimumDaysBetweenDisbursalAndFirstRepayment?: number; + multiDisburseLoan?: boolean; + name?: string; + numberOfRepaymentVariationsForBorrowerCycle?: Array; + numberOfRepayments?: number; + outstandingLoanBalance?: number; + overAppliedCalculationType?: string; + overAppliedNumber?: number; + overDueDaysForRepaymentEvent?: number; + overdueDaysForNPA?: number; + overpaymentLiabilityAccountId?: number; + paymentChannelToFundSourceMappings?: Array; + penaltyToIncomeAccountMappings?: Array; + preClosureInterestCalculationStrategy?: number; + principal?: number; + principalThresholdForLastInstallment?: number; + principalVariationsForBorrowerCycle?: Array; + rates?: Array; + recalculationCompoundingFrequencyInterval?: number; + recalculationCompoundingFrequencyOnDayType?: number; + recalculationCompoundingFrequencyType?: number; + recalculationRestFrequencyInterval?: number; + recalculationRestFrequencyType?: number; + receivableFeeAccountId?: number; + receivableInterestAccountId?: number; + receivablePenaltyAccountId?: number; + repaymentEvery?: number; + repaymentFrequencyType?: number; + rescheduleStrategyMethod?: number; + shortName?: string; + startDate?: string; + transactionProcessingStrategyCode?: string; + transfersInSuspenseAccountId?: number; + useBorrowerCycle?: boolean; + writeOffAccountId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoanProductsResponse.ts b/packages/fineract-client/src/models/postLoanProductsResponse.ts new file mode 100644 index 0000000000..203a78adad --- /dev/null +++ b/packages/fineract-client/src/models/postLoanProductsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostLoanProductsResponse + */ +export interface PostLoanProductsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansDisbursementData.ts b/packages/fineract-client/src/models/postLoansDisbursementData.ts new file mode 100644 index 0000000000..c2067f833d --- /dev/null +++ b/packages/fineract-client/src/models/postLoansDisbursementData.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * List of PostLoansDisbursementData + */ +export interface PostLoansDisbursementData { + expectedDisbursementDate?: string; + principal?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdChanges.ts b/packages/fineract-client/src/models/postLoansLoanIdChanges.ts new file mode 100644 index 0000000000..916e40e0f7 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdChanges.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostLoansLoanIdStatus } from './postLoansLoanIdStatus'; + + +/** + * PostLoansLoanIdChanges + */ +export interface PostLoansLoanIdChanges { + approvedOnDate?: string; + dateFormat?: string; + locale?: string; + note?: string; + status?: PostLoansLoanIdStatus; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdChanges.ts b/packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdChanges.ts new file mode 100644 index 0000000000..7579b8bb6f --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdChanges.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostLoansLoanIdChargesChargeIdChanges { + amount?: number; + chargeId?: number; + date?: number; + dueDate?: string; + externalId?: string; + feeChargesPortion?: number; + id?: number; + installmentNumber?: number; + interestPortion?: number; + locale?: string; + outstandingLoanBalance?: number; + penaltyChargesPortion?: number; + principalPortion?: number; + transactionDate?: string; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdRequest.ts b/packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdRequest.ts new file mode 100644 index 0000000000..145e28c532 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdRequest.ts @@ -0,0 +1,34 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostLoansLoanIdChargesChargeIdRequest + */ +export interface PostLoansLoanIdChargesChargeIdRequest { + accountNumber?: string; + amount?: number; + bankNumber?: string; + chargeId?: number; + checkNumber?: string; + dateFormat?: string; + dueDate?: string; + externalId?: string; + installmentNumber?: number; + locale?: string; + note?: string; + paymentTypeId?: number; + receiptNumber?: string; + routingCode?: string; + transactionDate?: string; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdResponse.ts b/packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdResponse.ts new file mode 100644 index 0000000000..0ad4e1d5d0 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdChargesChargeIdResponse.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostLoansLoanIdChargesChargeIdChanges } from './postLoansLoanIdChargesChargeIdChanges'; + + +/** + * PostLoansLoanIdChargesChargeIdResponse + */ +export interface PostLoansLoanIdChargesChargeIdResponse { + changes?: PostLoansLoanIdChargesChargeIdChanges; + clientId?: number; + loanId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; + savingsId?: number; + subResourceExternalId?: string; + subResourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdChargesRequest.ts b/packages/fineract-client/src/models/postLoansLoanIdChargesRequest.ts new file mode 100644 index 0000000000..0a2794e970 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdChargesRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostLoansLoanIdChargesRequest + */ +export interface PostLoansLoanIdChargesRequest { + amount?: number; + chargeId?: number; + dateFormat?: string; + dueDate?: string; + externalId?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdChargesResponse.ts b/packages/fineract-client/src/models/postLoansLoanIdChargesResponse.ts new file mode 100644 index 0000000000..5d6d2bb6fc --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdChargesResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostLoansLoanIdChargesResponse + */ +export interface PostLoansLoanIdChargesResponse { + clientId?: number; + loanId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdCollateralsRequest.ts b/packages/fineract-client/src/models/postLoansLoanIdCollateralsRequest.ts new file mode 100644 index 0000000000..04ebcff356 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdCollateralsRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostLoansLoanIdCollateralsRequest + */ +export interface PostLoansLoanIdCollateralsRequest { + collateralTypeId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdCollateralsResponse.ts b/packages/fineract-client/src/models/postLoansLoanIdCollateralsResponse.ts new file mode 100644 index 0000000000..ae33978450 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdCollateralsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostLoansLoanIdCollateralsResponse + */ +export interface PostLoansLoanIdCollateralsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdDisbursementData.ts b/packages/fineract-client/src/models/postLoansLoanIdDisbursementData.ts new file mode 100644 index 0000000000..128c31c65b --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdDisbursementData.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * List of PostLoansLoanIdDisbursementData + */ +export interface PostLoansLoanIdDisbursementData { + expectedDisbursementDate?: string; + principal?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdRequest.ts b/packages/fineract-client/src/models/postLoansLoanIdRequest.ts new file mode 100644 index 0000000000..7fb393c650 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdRequest.ts @@ -0,0 +1,40 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostLoansLoanIdDisbursementData } from './postLoansLoanIdDisbursementData'; + + +/** + * PostLoansLoanIdRequest + */ +export interface PostLoansLoanIdRequest { + actualDisbursementDate?: string; + approvedLoanAmount?: number; + approvedOnDate?: string; + assignmentDate?: string; + dateFormat?: string; + /** + * List of PostLoansLoanIdDisbursementData + */ + disbursementData?: Array; + expectedDisbursementDate?: string; + externalId?: string; + fromLoanOfficerId?: number; + locale?: string; + note?: string; + paymentTypeId?: number; + rejectedOnDate?: string; + toLoanOfficerId?: number; + transactionAmount?: number; + unassignedDate?: string; + withdrawnOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdResponse.ts b/packages/fineract-client/src/models/postLoansLoanIdResponse.ts new file mode 100644 index 0000000000..19f541319e --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostLoansLoanIdChanges } from './postLoansLoanIdChanges'; + + +/** + * PostLoansLoanIdResponse + */ +export interface PostLoansLoanIdResponse { + changes?: PostLoansLoanIdChanges; + clientId?: number; + loanId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; + subResourceExternalId?: string; + subResourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdScheduleResponse.ts b/packages/fineract-client/src/models/postLoansLoanIdScheduleResponse.ts new file mode 100644 index 0000000000..9fe83dd0d3 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdScheduleResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostLoanChanges } from './postLoanChanges'; + + +/** + * PostLoansLoanIdScheduleResponse + */ +export interface PostLoansLoanIdScheduleResponse { + changes?: PostLoanChanges; + loanId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdStatus.ts b/packages/fineract-client/src/models/postLoansLoanIdStatus.ts new file mode 100644 index 0000000000..2ee72bf2e0 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdStatus.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostLoansLoanIdStatus + */ +export interface PostLoansLoanIdStatus { + active?: boolean; + closed?: boolean; + closedObligationsMet?: boolean; + closedRescheduled?: boolean; + closedWrittenOff?: boolean; + code?: string; + id?: number; + overpaid?: boolean; + pendingApproval?: boolean; + value?: string; + waitingForDisbursal?: boolean; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdTransactionsRequest.ts b/packages/fineract-client/src/models/postLoansLoanIdTransactionsRequest.ts new file mode 100644 index 0000000000..dd7ff21013 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdTransactionsRequest.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostLoansLoanIdTransactionsRequest + */ +export interface PostLoansLoanIdTransactionsRequest { + accountNumber?: string; + bankNumber?: string; + chargeOffReasonId?: number; + checkNumber?: string; + dateFormat?: string; + dueDate?: string; + externalId?: string; + loanChargeId?: number; + locale?: string; + note?: string; + paymentTypeId?: number; + receiptNumber?: string; + reversalExternalId?: string; + routingCode?: string; + transactionAmount?: number; + transactionDate?: string; + writeoffReasonId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdTransactionsResponse.ts b/packages/fineract-client/src/models/postLoansLoanIdTransactionsResponse.ts new file mode 100644 index 0000000000..55c274424b --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdTransactionsResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostLoansLoanIdTransactionsResponseChanges } from './postLoansLoanIdTransactionsResponseChanges'; + + +/** + * PostLoansLoanIdTransactionsResponse + */ +export interface PostLoansLoanIdTransactionsResponse { + changes?: PostLoansLoanIdTransactionsResponseChanges; + clientId?: number; + loanId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; + subResourceExternalId?: string; + subResourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdTransactionsResponseChanges.ts b/packages/fineract-client/src/models/postLoansLoanIdTransactionsResponseChanges.ts new file mode 100644 index 0000000000..3e3d6d2f24 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdTransactionsResponseChanges.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostLoansLoanIdTransactionsResponseChanges { + dateFormat?: string; + externalId?: string; + locale?: string; + note?: string; + paymentTypeId?: number; + reversalExternalId?: string; + transactionAmount?: string; + transactionDate?: string; +} + diff --git a/packages/fineract-client/src/models/postLoansLoanIdTransactionsTransactionIdRequest.ts b/packages/fineract-client/src/models/postLoansLoanIdTransactionsTransactionIdRequest.ts new file mode 100644 index 0000000000..b6791598a3 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansLoanIdTransactionsTransactionIdRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostLoansLoanIdTransactionsTransactionIdRequest + */ +export interface PostLoansLoanIdTransactionsTransactionIdRequest { + dateFormat?: string; + externalId?: string; + locale?: string; + note?: string; + paymentTypeId?: number; + reversalExternalId?: string; + transactionAmount?: number; + transactionDate?: string; +} + diff --git a/packages/fineract-client/src/models/postLoansRepaymentSchedulePeriods.ts b/packages/fineract-client/src/models/postLoansRepaymentSchedulePeriods.ts new file mode 100644 index 0000000000..2ad025bd66 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansRepaymentSchedulePeriods.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostLoansRepaymentSchedulePeriods { + dueDate?: string; + feeChargesDue?: number; + feeChargesOutstanding?: number; + period?: number; + principalDisbursed?: number; + principalLoanBalanceOutstanding?: number; + totalActualCostOfLoanForPeriod?: number; + totalDueForPeriod?: number; + totalOriginalDueForPeriod?: number; + totalOutstandingForPeriod?: number; + totalOverdue?: number; +} + diff --git a/packages/fineract-client/src/models/postLoansRequest.ts b/packages/fineract-client/src/models/postLoansRequest.ts new file mode 100644 index 0000000000..6c45d202d8 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansRequest.ts @@ -0,0 +1,61 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostLoansDisbursementData } from './postLoansDisbursementData'; + + +/** + * PostLoansRequest + */ +export interface PostLoansRequest { + amortizationType?: number; + clientId?: number; + dateFormat?: string; + daysInYearType?: PostLoansRequest.DaysInYearTypeEnum; + /** + * List of PostLoansDisbursementData + */ + disbursementData?: Array; + expectedDisbursementDate?: string; + externalId?: string; + fixedPrincipalPercentagePerInstallment?: number; + graceOnArrearsAgeing?: number; + graceOnInterestCharged?: number; + graceOnInterestPayment?: number; + graceOnPrincipalPayment?: number; + interestCalculationPeriodType?: number; + interestRatePerPeriod?: number; + interestType?: number; + loanTermFrequency?: number; + loanTermFrequencyType?: number; + loanType?: string; + locale?: string; + /** + * Maximum allowed outstanding balance + */ + maxOutstandingLoanBalance?: number; + numberOfRepayments?: number; + principal?: number; + productId?: number; + repaymentEvery?: number; + repaymentFrequencyType?: number; + repaymentsStartingFromDate?: string; + submittedOnDate?: string; + transactionProcessingStrategyCode?: string; +} +export namespace PostLoansRequest { + export type DaysInYearTypeEnum = null; + export const DaysInYearTypeEnum = { + NUMBER_null: null as DaysInYearTypeEnum + }; +} + + diff --git a/packages/fineract-client/src/models/postLoansResponse.ts b/packages/fineract-client/src/models/postLoansResponse.ts new file mode 100644 index 0000000000..a82933e518 --- /dev/null +++ b/packages/fineract-client/src/models/postLoansResponse.ts @@ -0,0 +1,40 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostLoansRepaymentSchedulePeriods } from './postLoansRepaymentSchedulePeriods'; +import { GetLoansLoanIdCurrency } from './getLoansLoanIdCurrency'; + + +/** + * PostLoansResponse + */ +export interface PostLoansResponse { + clientId?: number; + currency?: GetLoansLoanIdCurrency; + loanId?: number; + loanTermInDays?: number; + officeId?: number; + periods?: Set; + resourceExternalId?: string; + resourceId?: number; + totalFeeChargesCharged?: number; + totalInterestCharged?: number; + totalOutstanding?: number; + totalPenaltyChargesCharged?: number; + totalPrincipalDisbursed?: number; + totalPrincipalExpected?: number; + totalPrincipalPaid?: number; + totalRepayment?: number; + totalRepaymentExpected?: number; + totalWaived?: number; + totalWrittenOff?: number; +} + diff --git a/packages/fineract-client/src/models/postMakerCheckersResponse.ts b/packages/fineract-client/src/models/postMakerCheckersResponse.ts new file mode 100644 index 0000000000..ab167b8e07 --- /dev/null +++ b/packages/fineract-client/src/models/postMakerCheckersResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostMakerCheckersResponse + */ +export interface PostMakerCheckersResponse { + auditId?: number; +} + diff --git a/packages/fineract-client/src/models/postNewShareApplicationResponse.ts b/packages/fineract-client/src/models/postNewShareApplicationResponse.ts new file mode 100644 index 0000000000..1cec331072 --- /dev/null +++ b/packages/fineract-client/src/models/postNewShareApplicationResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostNewShareApplicationResponse + */ +export interface PostNewShareApplicationResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postNewTransferResponse.ts b/packages/fineract-client/src/models/postNewTransferResponse.ts new file mode 100644 index 0000000000..333d8512d5 --- /dev/null +++ b/packages/fineract-client/src/models/postNewTransferResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostNewTransferResponse + */ +export interface PostNewTransferResponse { + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postOfficesRequest.ts b/packages/fineract-client/src/models/postOfficesRequest.ts new file mode 100644 index 0000000000..8587108f87 --- /dev/null +++ b/packages/fineract-client/src/models/postOfficesRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostOfficesRequest + */ +export interface PostOfficesRequest { + dateFormat?: string; + externalId?: string; + locale?: string; + name?: string; + openingDate?: string; + parentId?: number; +} + diff --git a/packages/fineract-client/src/models/postOfficesResponse.ts b/packages/fineract-client/src/models/postOfficesResponse.ts new file mode 100644 index 0000000000..0107ec79e5 --- /dev/null +++ b/packages/fineract-client/src/models/postOfficesResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostOfficesResponse + */ +export interface PostOfficesResponse { + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postPaymentTypesRequest.ts b/packages/fineract-client/src/models/postPaymentTypesRequest.ts new file mode 100644 index 0000000000..4d5213ada6 --- /dev/null +++ b/packages/fineract-client/src/models/postPaymentTypesRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostPaymentTypesRequest + */ +export interface PostPaymentTypesRequest { + codeName?: string; + description?: string; + isCashPayment?: boolean; + isSystemDefined?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/postPaymentTypesResponse.ts b/packages/fineract-client/src/models/postPaymentTypesResponse.ts new file mode 100644 index 0000000000..b8efe16e12 --- /dev/null +++ b/packages/fineract-client/src/models/postPaymentTypesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostPaymentTypesResponse + */ +export interface PostPaymentTypesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postProductsChargesSelected.ts b/packages/fineract-client/src/models/postProductsChargesSelected.ts new file mode 100644 index 0000000000..bea77a54a3 --- /dev/null +++ b/packages/fineract-client/src/models/postProductsChargesSelected.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostProductsChargesSelected { + id?: number; +} + diff --git a/packages/fineract-client/src/models/postProductsMarketPricePeriods.ts b/packages/fineract-client/src/models/postProductsMarketPricePeriods.ts new file mode 100644 index 0000000000..033f56d4c4 --- /dev/null +++ b/packages/fineract-client/src/models/postProductsMarketPricePeriods.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostProductsMarketPricePeriods { + dateFormat?: string; + fromDate?: string; + locale?: string; + shareValue?: number; +} + diff --git a/packages/fineract-client/src/models/postProductsTypeRequest.ts b/packages/fineract-client/src/models/postProductsTypeRequest.ts new file mode 100644 index 0000000000..098a208588 --- /dev/null +++ b/packages/fineract-client/src/models/postProductsTypeRequest.ts @@ -0,0 +1,42 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostProductsMarketPricePeriods } from './postProductsMarketPricePeriods'; +import { PostProductsChargesSelected } from './postProductsChargesSelected'; + + +/** + * PostProductsTypeRequest + */ +export interface PostProductsTypeRequest { + accountingRule?: number; + allowDividendCalculationForInactiveClients?: boolean; + chargesSelected?: Set; + currencyCode?: string; + description?: string; + digitsAfterDecimal?: number; + inMultiplesOf?: number; + locale?: string; + lockinPeriodFrequency?: number; + lockinPeriodFrequencyType?: number; + marketPricePeriods?: Set; + maximumShares?: number; + minimumActivePeriodForDividends?: number; + minimumShares?: number; + minimumactiveperiodFrequencyType?: number; + name?: string; + nominalShares?: number; + sharesIssued?: number; + shortName?: string; + totalShares?: number; + unitPrice?: number; +} + diff --git a/packages/fineract-client/src/models/postProductsTypeResponse.ts b/packages/fineract-client/src/models/postProductsTypeResponse.ts new file mode 100644 index 0000000000..77120898ff --- /dev/null +++ b/packages/fineract-client/src/models/postProductsTypeResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostProductsTypeResponse + */ +export interface PostProductsTypeResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postProvisioningCriteriaRequest.ts b/packages/fineract-client/src/models/postProvisioningCriteriaRequest.ts new file mode 100644 index 0000000000..32f9389a83 --- /dev/null +++ b/packages/fineract-client/src/models/postProvisioningCriteriaRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ProvisioningCriteriaDefinitionData } from './provisioningCriteriaDefinitionData'; +import { LoanProductData } from './loanProductData'; + + +/** + * PostProvisioningCriteriaRequest + */ +export interface PostProvisioningCriteriaRequest { + criteriaName?: string; + loanProducts?: Array; + provisioningcriteria?: Array; +} + diff --git a/packages/fineract-client/src/models/postProvisioningCriteriaResponse.ts b/packages/fineract-client/src/models/postProvisioningCriteriaResponse.ts new file mode 100644 index 0000000000..45a76b7f68 --- /dev/null +++ b/packages/fineract-client/src/models/postProvisioningCriteriaResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostProvisioningCriteriaResponse + */ +export interface PostProvisioningCriteriaResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postProvisioningEntriesRequest.ts b/packages/fineract-client/src/models/postProvisioningEntriesRequest.ts new file mode 100644 index 0000000000..762a894010 --- /dev/null +++ b/packages/fineract-client/src/models/postProvisioningEntriesRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostProvisioningEntriesRequest + */ +export interface PostProvisioningEntriesRequest { + createjournalentries?: string; + date?: string; + dateFormat?: string; + entries?: string; + locale?: string; + provisioningentry?: string; +} + diff --git a/packages/fineract-client/src/models/postProvisioningEntriesResponse.ts b/packages/fineract-client/src/models/postProvisioningEntriesResponse.ts new file mode 100644 index 0000000000..44cf5b126a --- /dev/null +++ b/packages/fineract-client/src/models/postProvisioningEntriesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostProvisioningEntriesResponse + */ +export interface PostProvisioningEntriesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postRecurringChanges.ts b/packages/fineract-client/src/models/postRecurringChanges.ts new file mode 100644 index 0000000000..a7d6330f64 --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringChanges.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostRecurringChanges { + accountNumber?: string; + bankNumber?: string; + checkNumber?: string; + receiptNumber?: string; + routingCode?: string; +} + diff --git a/packages/fineract-client/src/models/postRecurringDepositAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/postRecurringDepositAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..80696f0bfb --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringDepositAccountsAccountIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostRecurringDepositAccountsAccountIdResponse + */ +export interface PostRecurringDepositAccountsAccountIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest.ts b/packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest.ts new file mode 100644 index 0000000000..243edcbc00 --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest + */ +export interface PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest { + accountNumber?: string; + bankNumber?: string; + checkNumber?: string; + dateFormat?: string; + locale?: string; + paymentTypeId?: number; + receiptNumber?: string; + routingCode?: string; + transactionAmount?: number; + transactionDate?: string; +} + diff --git a/packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsResponse.ts b/packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsResponse.ts new file mode 100644 index 0000000000..7866b02143 --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostRecurringChanges } from './postRecurringChanges'; + + +/** + * PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsResponse + */ +export interface PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsResponse { + changes?: PostRecurringChanges; + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse.ts b/packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse.ts new file mode 100644 index 0000000000..6ada0e608c --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostRecurringChanges } from './postRecurringChanges'; + + +/** + * PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse + */ +export interface PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse { + changes?: PostRecurringChanges; + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postRecurringDepositAccountsRequest.ts b/packages/fineract-client/src/models/postRecurringDepositAccountsRequest.ts new file mode 100644 index 0000000000..0c041c7ad4 --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringDepositAccountsRequest.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostRecurringDepositAccountsRequest + */ +export interface PostRecurringDepositAccountsRequest { + clientId?: number; + dateFormat?: string; + depositAmount?: number; + depositPeriod?: number; + depositPeriodFrequencyId?: number; + isCalendarInherited?: boolean; + locale?: string; + mandatoryRecommendedDepositAmount?: number; + productId?: number; + recurringFrequency?: number; + recurringFrequencyType?: number; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/postRecurringDepositAccountsResponse.ts b/packages/fineract-client/src/models/postRecurringDepositAccountsResponse.ts new file mode 100644 index 0000000000..f1f36a10e1 --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringDepositAccountsResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostRecurringDepositAccountsResponse + */ +export interface PostRecurringDepositAccountsResponse { + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postRecurringDepositProductsChartSlabs.ts b/packages/fineract-client/src/models/postRecurringDepositProductsChartSlabs.ts new file mode 100644 index 0000000000..ee2e611981 --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringDepositProductsChartSlabs.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostRecurringDepositProductsChartSlabs { + annualInterestRate?: number; + description?: string; + fromPeriod?: number; + periodType?: number; + toPeriod?: number; +} + diff --git a/packages/fineract-client/src/models/postRecurringDepositProductsCharts.ts b/packages/fineract-client/src/models/postRecurringDepositProductsCharts.ts new file mode 100644 index 0000000000..8d85e4c0e1 --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringDepositProductsCharts.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostRecurringDepositProductsChartSlabs } from './postRecurringDepositProductsChartSlabs'; + + +export interface PostRecurringDepositProductsCharts { + chartSlabs?: Set; + dateFormat?: string; + fromDate?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postRecurringDepositProductsRequest.ts b/packages/fineract-client/src/models/postRecurringDepositProductsRequest.ts new file mode 100644 index 0000000000..4bdce123bb --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringDepositProductsRequest.ts @@ -0,0 +1,45 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostRecurringDepositProductsCharts } from './postRecurringDepositProductsCharts'; + + +/** + * PostRecurringDepositProductsRequest + */ +export interface PostRecurringDepositProductsRequest { + accountingRule?: number; + charts?: Set; + currencyCode?: string; + depositAmount?: number; + description?: string; + digitsAfterDecimal?: number; + inMultiplesOf?: number; + interestCalculationDaysInYearType?: number; + interestCalculationType?: number; + interestCompoundingPeriodType?: number; + interestPostingPeriodType?: number; + locale?: string; + maxDepositAmount?: number; + maxDepositTerm?: number; + maxDepositTermTypeId?: number; + minDepositAmount?: number; + minDepositTerm?: number; + minDepositTermTypeId?: number; + name?: string; + preClosurePenalApplicable?: boolean; + preClosurePenalInterest?: number; + preClosurePenalInterestOnTypeId?: number; + recurringDepositFrequency?: number; + recurringDepositFrequencyTypeId?: number; + shortName?: string; +} + diff --git a/packages/fineract-client/src/models/postRecurringDepositProductsResponse.ts b/packages/fineract-client/src/models/postRecurringDepositProductsResponse.ts new file mode 100644 index 0000000000..523c2e40f7 --- /dev/null +++ b/packages/fineract-client/src/models/postRecurringDepositProductsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostRecurringDepositProductsResponse + */ +export interface PostRecurringDepositProductsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postReportMailingJobsRequest.ts b/packages/fineract-client/src/models/postReportMailingJobsRequest.ts new file mode 100644 index 0000000000..8783f1aa76 --- /dev/null +++ b/packages/fineract-client/src/models/postReportMailingJobsRequest.ts @@ -0,0 +1,31 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostReportMailingJobsRequest + */ +export interface PostReportMailingJobsRequest { + dateFormat?: string; + description?: string; + emailMessage?: string; + emailRecipients?: string; + emailSubject?: string; + isActive?: boolean; + locale?: string; + name?: string; + recurrence?: string; + startDateTime?: string; + stretchyReportId?: number; + stretchyReportParamMap?: string; +} + diff --git a/packages/fineract-client/src/models/postReportMailingJobsResponse.ts b/packages/fineract-client/src/models/postReportMailingJobsResponse.ts new file mode 100644 index 0000000000..80392446cc --- /dev/null +++ b/packages/fineract-client/src/models/postReportMailingJobsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostReportMailingJobsResponse + */ +export interface PostReportMailingJobsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postReportsResponse.ts b/packages/fineract-client/src/models/postReportsResponse.ts new file mode 100644 index 0000000000..4c413a9c32 --- /dev/null +++ b/packages/fineract-client/src/models/postReportsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostReportsResponse + */ +export interface PostReportsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postRepostRequest.ts b/packages/fineract-client/src/models/postRepostRequest.ts new file mode 100644 index 0000000000..270025332e --- /dev/null +++ b/packages/fineract-client/src/models/postRepostRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostRepostRequest + */ +export interface PostRepostRequest { + description?: string; + reportCategory?: string; + reportName?: string; + reportParameters?: Array; + reportSql?: string; + reportSubType?: string; + reportType?: string; +} + diff --git a/packages/fineract-client/src/models/postResourceTypeResourceIdNotesRequest.ts b/packages/fineract-client/src/models/postResourceTypeResourceIdNotesRequest.ts new file mode 100644 index 0000000000..fb7027608a --- /dev/null +++ b/packages/fineract-client/src/models/postResourceTypeResourceIdNotesRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostResourceTypeResourceIdNotesRequest + */ +export interface PostResourceTypeResourceIdNotesRequest { + note?: string; +} + diff --git a/packages/fineract-client/src/models/postResourceTypeResourceIdNotesResponse.ts b/packages/fineract-client/src/models/postResourceTypeResourceIdNotesResponse.ts new file mode 100644 index 0000000000..52ded69589 --- /dev/null +++ b/packages/fineract-client/src/models/postResourceTypeResourceIdNotesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostResourceTypeResourceIdNotesResponse + */ +export interface PostResourceTypeResourceIdNotesResponse { + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postRolesRequest.ts b/packages/fineract-client/src/models/postRolesRequest.ts new file mode 100644 index 0000000000..80ae9356c9 --- /dev/null +++ b/packages/fineract-client/src/models/postRolesRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostRolesRequest + */ +export interface PostRolesRequest { + description?: string; + name?: string; +} + diff --git a/packages/fineract-client/src/models/postRolesResponse.ts b/packages/fineract-client/src/models/postRolesResponse.ts new file mode 100644 index 0000000000..bc5b98ed65 --- /dev/null +++ b/packages/fineract-client/src/models/postRolesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostRolesResponse + */ +export interface PostRolesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postRolesRoleIdResponse.ts b/packages/fineract-client/src/models/postRolesRoleIdResponse.ts new file mode 100644 index 0000000000..2fd354d596 --- /dev/null +++ b/packages/fineract-client/src/models/postRolesRoleIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostRolesRoleIdResponse + */ +export interface PostRolesRoleIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postRunaccrualsRequest.ts b/packages/fineract-client/src/models/postRunaccrualsRequest.ts new file mode 100644 index 0000000000..72628d8e09 --- /dev/null +++ b/packages/fineract-client/src/models/postRunaccrualsRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * runaccrualsRequest + */ +export interface PostRunaccrualsRequest { + dateFormat?: string; + locale?: string; + /** + * which specifies periodic accruals should happen till the given Date + */ + tillDate: string; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountBulkReversalTransactionsRequest.ts b/packages/fineract-client/src/models/postSavingsAccountBulkReversalTransactionsRequest.ts new file mode 100644 index 0000000000..dcbda25549 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountBulkReversalTransactionsRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountBulkReversalTransactionsRequest + */ +export interface PostSavingsAccountBulkReversalTransactionsRequest { + isBulk?: string; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountTransactionsRequest.ts b/packages/fineract-client/src/models/postSavingsAccountTransactionsRequest.ts new file mode 100644 index 0000000000..5d4c5f9eca --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountTransactionsRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountTransactionsRequest + */ +export interface PostSavingsAccountTransactionsRequest { + dateFormat?: string; + lienAllowed?: string; + locale?: string; + paymentTypeId?: number; + reasonForBlock?: string; + transactionAmount?: number; + transactionDate?: string; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountTransactionsResponse.ts b/packages/fineract-client/src/models/postSavingsAccountTransactionsResponse.ts new file mode 100644 index 0000000000..8959625dd8 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountTransactionsResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountTransactionsResponse + */ +export interface PostSavingsAccountTransactionsResponse { + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountsAccountIdRequest.ts b/packages/fineract-client/src/models/postSavingsAccountsAccountIdRequest.ts new file mode 100644 index 0000000000..e4d72f4477 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountsAccountIdRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountsAccountIdRequest + */ +export interface PostSavingsAccountsAccountIdRequest { + activatedOnDate?: string; + approvedOnDate?: string; + dateFormat?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/postSavingsAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..1cdcf87d58 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountsAccountIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountsAccountIdResponse + */ +export interface PostSavingsAccountsAccountIdResponse { + changes?: object; + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountsRequest.ts b/packages/fineract-client/src/models/postSavingsAccountsRequest.ts new file mode 100644 index 0000000000..12da523263 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountsRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountsRequest + */ +export interface PostSavingsAccountsRequest { + clientId?: number; + dateFormat?: string; + locale?: string; + productId?: number; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountsResponse.ts b/packages/fineract-client/src/models/postSavingsAccountsResponse.ts new file mode 100644 index 0000000000..efca283e85 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountsResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountsResponse + */ +export interface PostSavingsAccountsResponse { + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesRequest.ts b/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesRequest.ts new file mode 100644 index 0000000000..62cbe625e8 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountsSavingsAccountIdChargesRequest + */ +export interface PostSavingsAccountsSavingsAccountIdChargesRequest { + amount?: number; + chargeId?: number; + dateFormat?: string; + dueDate?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesResponse.ts b/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesResponse.ts new file mode 100644 index 0000000000..c76e15fbd4 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountsSavingsAccountIdChargesResponse + */ +export interface PostSavingsAccountsSavingsAccountIdChargesResponse { + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest.ts b/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest.ts new file mode 100644 index 0000000000..99efc6b019 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest + */ +export interface PostSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest { + amount?: number; + dateFormat?: string; + dueDate?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts b/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts new file mode 100644 index 0000000000..915e3700ee --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse + */ +export interface PostSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/postSavingsCharges.ts b/packages/fineract-client/src/models/postSavingsCharges.ts new file mode 100644 index 0000000000..58bf95f53f --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsCharges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostSavingsCharges { + id?: number; +} + diff --git a/packages/fineract-client/src/models/postSavingsProductsRequest.ts b/packages/fineract-client/src/models/postSavingsProductsRequest.ts new file mode 100644 index 0000000000..f4f3530156 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsProductsRequest.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostSavingsCharges } from './postSavingsCharges'; + + +/** + * PostSavingsProductsRequest + */ +export interface PostSavingsProductsRequest { + accountMappingForPayment?: string; + accountingRule?: number; + charges?: Set; + currencyCode?: string; + description?: string; + digitsAfterDecimal?: number; + inMultiplesOf?: number; + interestCalculationDaysInYearType?: number; + interestCalculationType?: number; + interestCompoundingPeriodType?: number; + interestPostingPeriodType?: number; + locale?: string; + name?: string; + nominalAnnualInterestRate?: number; + shortName?: string; +} + diff --git a/packages/fineract-client/src/models/postSavingsProductsResponse.ts b/packages/fineract-client/src/models/postSavingsProductsResponse.ts new file mode 100644 index 0000000000..b34c040f26 --- /dev/null +++ b/packages/fineract-client/src/models/postSavingsProductsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSavingsProductsResponse + */ +export interface PostSavingsProductsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postSelfAuthenticationResponse.ts b/packages/fineract-client/src/models/postSelfAuthenticationResponse.ts new file mode 100644 index 0000000000..6c3ae092f3 --- /dev/null +++ b/packages/fineract-client/src/models/postSelfAuthenticationResponse.ts @@ -0,0 +1,34 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSelfUserDetailsRoles } from './getSelfUserDetailsRoles'; +import { GetSelfUserDetailsOrganisationalRole } from './getSelfUserDetailsOrganisationalRole'; + + +/** + * PostSelfAuthenticationResponse + */ +export interface PostSelfAuthenticationResponse { + authenticated?: boolean; + base64EncodedAuthenticationKey?: string; + clients?: Array; + isSelfServiceUser?: boolean; + officeId?: number; + officeName?: string; + organisationalRole?: GetSelfUserDetailsOrganisationalRole; + permissions?: Array; + roles?: Set; + staffDisplayName?: string; + staffId?: number; + userId?: number; + username?: string; +} + diff --git a/packages/fineract-client/src/models/postSelfBeneficiariesTPTRequest.ts b/packages/fineract-client/src/models/postSelfBeneficiariesTPTRequest.ts new file mode 100644 index 0000000000..043ee648c8 --- /dev/null +++ b/packages/fineract-client/src/models/postSelfBeneficiariesTPTRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSelfBeneficiariesTPTRequest + */ +export interface PostSelfBeneficiariesTPTRequest { + accountNumber?: number; + accountType?: number; + locale?: string; + name?: string; + officeName?: string; + transferLimit?: number; +} + diff --git a/packages/fineract-client/src/models/postSelfBeneficiariesTPTResponse.ts b/packages/fineract-client/src/models/postSelfBeneficiariesTPTResponse.ts new file mode 100644 index 0000000000..3fe3b589fd --- /dev/null +++ b/packages/fineract-client/src/models/postSelfBeneficiariesTPTResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSelfBeneficiariesTPTResponse + */ +export interface PostSelfBeneficiariesTPTResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postSelfLoansData.ts b/packages/fineract-client/src/models/postSelfLoansData.ts new file mode 100644 index 0000000000..2fd7edd672 --- /dev/null +++ b/packages/fineract-client/src/models/postSelfLoansData.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostSelfLoansData { + Activation_Date?: string; + dateFormat?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postSelfLoansDatatables.ts b/packages/fineract-client/src/models/postSelfLoansDatatables.ts new file mode 100644 index 0000000000..4c9a2de66d --- /dev/null +++ b/packages/fineract-client/src/models/postSelfLoansDatatables.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostSelfLoansData } from './postSelfLoansData'; + + +export interface PostSelfLoansDatatables { + data?: PostSelfLoansData; + registeredTableName?: string; +} + diff --git a/packages/fineract-client/src/models/postSelfLoansDisbursementData.ts b/packages/fineract-client/src/models/postSelfLoansDisbursementData.ts new file mode 100644 index 0000000000..562e73d6c9 --- /dev/null +++ b/packages/fineract-client/src/models/postSelfLoansDisbursementData.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostSelfLoansDisbursementData { + approvedPrincipal?: number; + expectedDisbursementDate?: string; + principal?: number; +} + diff --git a/packages/fineract-client/src/models/postSelfLoansLoanIdChanges.ts b/packages/fineract-client/src/models/postSelfLoansLoanIdChanges.ts new file mode 100644 index 0000000000..9448231c62 --- /dev/null +++ b/packages/fineract-client/src/models/postSelfLoansLoanIdChanges.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostSelfLoansLoanIdStatus } from './postSelfLoansLoanIdStatus'; + + +export interface PostSelfLoansLoanIdChanges { + closedOnDate?: string; + dateFormat?: string; + locale?: string; + status?: PostSelfLoansLoanIdStatus; + withdrawnOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/postSelfLoansLoanIdRequest.ts b/packages/fineract-client/src/models/postSelfLoansLoanIdRequest.ts new file mode 100644 index 0000000000..c4cd3815f1 --- /dev/null +++ b/packages/fineract-client/src/models/postSelfLoansLoanIdRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSelfLoansLoanIdRequest + */ +export interface PostSelfLoansLoanIdRequest { + dateFormat?: string; + locale?: string; + note?: string; + withdrawnOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/postSelfLoansLoanIdResponse.ts b/packages/fineract-client/src/models/postSelfLoansLoanIdResponse.ts new file mode 100644 index 0000000000..a3b9f5f334 --- /dev/null +++ b/packages/fineract-client/src/models/postSelfLoansLoanIdResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostSelfLoansLoanIdChanges } from './postSelfLoansLoanIdChanges'; + + +/** + * PostSelfLoansLoanIdResponse + */ +export interface PostSelfLoansLoanIdResponse { + changes?: PostSelfLoansLoanIdChanges; + clientId?: number; + loanId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postSelfLoansLoanIdStatus.ts b/packages/fineract-client/src/models/postSelfLoansLoanIdStatus.ts new file mode 100644 index 0000000000..0994515ea6 --- /dev/null +++ b/packages/fineract-client/src/models/postSelfLoansLoanIdStatus.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostSelfLoansLoanIdStatus { + active?: boolean; + closed?: boolean; + closedObligationsMet?: boolean; + closedRescheduled?: boolean; + closedWrittenOff?: boolean; + code?: string; + description?: string; + id?: number; + overpaid?: boolean; + pendingApproval?: boolean; + waitingForDisbursal?: boolean; +} + diff --git a/packages/fineract-client/src/models/postSelfLoansRequest.ts b/packages/fineract-client/src/models/postSelfLoansRequest.ts new file mode 100644 index 0000000000..bd46de08ab --- /dev/null +++ b/packages/fineract-client/src/models/postSelfLoansRequest.ts @@ -0,0 +1,44 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostSelfLoansDisbursementData } from './postSelfLoansDisbursementData'; +import { PostSelfLoansDatatables } from './postSelfLoansDatatables'; + + +/** + * PostSelfLoansRequest + */ +export interface PostSelfLoansRequest { + amortizationType?: number; + clientId?: number; + datatables?: Set; + dateFormat?: string; + disbursementData?: Set; + expectedDisbursementDate?: string; + fixedEmiAmount?: number; + interestCalculationPeriodType?: number; + interestRatePerPeriod?: number; + interestType?: number; + linkAccountId?: number; + loanTermFrequency?: number; + loanTermFrequencyType?: number; + loanType?: string; + locale?: string; + maxOutstandingLoanBalance?: number; + numberOfRepayments?: number; + principal?: number; + productId?: number; + repaymentEvery?: number; + repaymentFrequencyType?: number; + submittedOnDate?: string; + transactionProcessingStrategyCode?: string; +} + diff --git a/packages/fineract-client/src/models/postSelfLoansResponse.ts b/packages/fineract-client/src/models/postSelfLoansResponse.ts new file mode 100644 index 0000000000..31fc87de5c --- /dev/null +++ b/packages/fineract-client/src/models/postSelfLoansResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSelfLoansResponse + */ +export interface PostSelfLoansResponse { + clientId?: number; + loanId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postStaffRequest.ts b/packages/fineract-client/src/models/postStaffRequest.ts new file mode 100644 index 0000000000..68d8857de2 --- /dev/null +++ b/packages/fineract-client/src/models/postStaffRequest.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostStaffRequest + */ +export interface PostStaffRequest { + dateFormat?: string; + externalId?: string; + firstname?: string; + isActive?: boolean; + isLoanOfficer?: boolean; + joiningDate?: string; + lastname?: string; + locale?: string; + mobileNo?: string; + officeId?: number; +} + diff --git a/packages/fineract-client/src/models/postStandingInstructionsRequest.ts b/packages/fineract-client/src/models/postStandingInstructionsRequest.ts new file mode 100644 index 0000000000..1f468987da --- /dev/null +++ b/packages/fineract-client/src/models/postStandingInstructionsRequest.ts @@ -0,0 +1,44 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostStandingInstructionsRequest + */ +export interface PostStandingInstructionsRequest { + amount?: number; + dateFormat?: string; + fromAccountId?: number; + fromAccountType?: number; + fromClientId?: number; + fromOfficeId?: number; + instructionType?: number; + /** + * en + */ + locale?: string; + monthDayFormat?: string; + name?: string; + priority?: number; + recurrenceFrequency?: number; + recurrenceInterval?: number; + recurrenceOnMonthDay?: string; + recurrenceType?: number; + status?: number; + toAccountId?: number; + toAccountType?: number; + toClientId?: number; + toOfficeId?: number; + transferType?: number; + validFrom?: string; +} + diff --git a/packages/fineract-client/src/models/postStandingInstructionsResponse.ts b/packages/fineract-client/src/models/postStandingInstructionsResponse.ts new file mode 100644 index 0000000000..82f1ee0695 --- /dev/null +++ b/packages/fineract-client/src/models/postStandingInstructionsResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostStandingInstructionsResponse + */ +export interface PostStandingInstructionsResponse { + clientId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postSurveySurveyNameApptableIdRequest.ts b/packages/fineract-client/src/models/postSurveySurveyNameApptableIdRequest.ts new file mode 100644 index 0000000000..6ebb9c046d --- /dev/null +++ b/packages/fineract-client/src/models/postSurveySurveyNameApptableIdRequest.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSurveySurveyNameApptableIdRequest + */ +export interface PostSurveySurveyNameApptableIdRequest { + Date?: string; + dateFormat?: string; + locale?: string; + ppi_businessoccupation_cd_q3_businessoccupation?: number; + ppi_floortype_cd_q5_floortype?: number; + ppi_fryingpans_cd_q10_fryingpans?: number; + ppi_habitablerooms_cd_q4_habitablerooms?: number; + ppi_highestschool_cd_q2_highestschool?: number; + ppi_household_members_cd_q1_householdmembers?: number; + ppi_irons_cd_q7_irons?: number; + ppi_lightingsource_cd_q6_lightingsource?: number; + ppi_mosquitonets_cd_q8_mosquitonets?: number; + ppi_towels_cd_q9_towels?: number; +} + diff --git a/packages/fineract-client/src/models/postSurveySurveyNameApptableIdResponse.ts b/packages/fineract-client/src/models/postSurveySurveyNameApptableIdResponse.ts new file mode 100644 index 0000000000..bf8935d9d0 --- /dev/null +++ b/packages/fineract-client/src/models/postSurveySurveyNameApptableIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostSurveySurveyNameApptableIdResponse + */ +export interface PostSurveySurveyNameApptableIdResponse { + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postTaxesComponentsRequest.ts b/packages/fineract-client/src/models/postTaxesComponentsRequest.ts new file mode 100644 index 0000000000..560fb096b7 --- /dev/null +++ b/packages/fineract-client/src/models/postTaxesComponentsRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTaxesComponentsRequest + */ +export interface PostTaxesComponentsRequest { + creditAccountType?: number; + creditAcountId?: number; + dateFormat?: string; + locale?: string; + name?: string; + percentage?: number; + startDate?: string; +} + diff --git a/packages/fineract-client/src/models/postTaxesComponentsResponse.ts b/packages/fineract-client/src/models/postTaxesComponentsResponse.ts new file mode 100644 index 0000000000..4be9816929 --- /dev/null +++ b/packages/fineract-client/src/models/postTaxesComponentsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTaxesComponentsResponse + */ +export interface PostTaxesComponentsResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postTaxesGroupRequest.ts b/packages/fineract-client/src/models/postTaxesGroupRequest.ts new file mode 100644 index 0000000000..81687f891c --- /dev/null +++ b/packages/fineract-client/src/models/postTaxesGroupRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostTaxesGroupTaxComponents } from './postTaxesGroupTaxComponents'; + + +/** + * PostTaxesGroupRequest + */ +export interface PostTaxesGroupRequest { + dateFormat?: string; + locale?: string; + name?: string; + taxComponents?: Set; +} + diff --git a/packages/fineract-client/src/models/postTaxesGroupResponse.ts b/packages/fineract-client/src/models/postTaxesGroupResponse.ts new file mode 100644 index 0000000000..b9b37bd791 --- /dev/null +++ b/packages/fineract-client/src/models/postTaxesGroupResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTaxesGroupResponse + */ +export interface PostTaxesGroupResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postTaxesGroupTaxComponents.ts b/packages/fineract-client/src/models/postTaxesGroupTaxComponents.ts new file mode 100644 index 0000000000..20abc7c951 --- /dev/null +++ b/packages/fineract-client/src/models/postTaxesGroupTaxComponents.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostTaxesGroupTaxComponents { + startDate?: string; + taxComponentId?: number; +} + diff --git a/packages/fineract-client/src/models/postTellersRequest.ts b/packages/fineract-client/src/models/postTellersRequest.ts new file mode 100644 index 0000000000..41623b74b0 --- /dev/null +++ b/packages/fineract-client/src/models/postTellersRequest.ts @@ -0,0 +1,37 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTellersRequest + */ +export interface PostTellersRequest { + dateFormat?: string; + description?: string; + locale?: string; + name?: string; + officeId?: number; + startDate?: string; + status?: PostTellersRequest.StatusEnum; +} +export namespace PostTellersRequest { + export type StatusEnum = 'INVALID' | 'PENDING' | 'ACTIVE' | 'INACTIVE' | 'CLOSED'; + export const StatusEnum = { + Invalid: 'INVALID' as StatusEnum, + Pending: 'PENDING' as StatusEnum, + Active: 'ACTIVE' as StatusEnum, + Inactive: 'INACTIVE' as StatusEnum, + Closed: 'CLOSED' as StatusEnum + }; +} + + diff --git a/packages/fineract-client/src/models/postTellersResponse.ts b/packages/fineract-client/src/models/postTellersResponse.ts new file mode 100644 index 0000000000..34cecc34d2 --- /dev/null +++ b/packages/fineract-client/src/models/postTellersResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTellersResponse + */ +export interface PostTellersResponse { + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdAllocateRequest.ts b/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdAllocateRequest.ts new file mode 100644 index 0000000000..976ed29110 --- /dev/null +++ b/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdAllocateRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTellersTellerIdCashiersCashierIdAllocateRequest + */ +export interface PostTellersTellerIdCashiersCashierIdAllocateRequest { + currencyCode?: string; + dateFormat?: string; + locale?: string; + txnAmount?: number; + txnDate?: string; + txnNote?: string; +} + diff --git a/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdAllocateResponse.ts b/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdAllocateResponse.ts new file mode 100644 index 0000000000..b3573c6670 --- /dev/null +++ b/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdAllocateResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTellersTellerIdCashiersCashierIdAllocateResponse + */ +export interface PostTellersTellerIdCashiersCashierIdAllocateResponse { + resourceId?: number; + subResourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdSettleRequest.ts b/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdSettleRequest.ts new file mode 100644 index 0000000000..1796555531 --- /dev/null +++ b/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdSettleRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTellersTellerIdCashiersCashierIdSettleRequest + */ +export interface PostTellersTellerIdCashiersCashierIdSettleRequest { + currencyCode?: string; + dateFormat?: string; + locale?: string; + txnAmount?: number; + txnDate?: string; + txnNote?: string; +} + diff --git a/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdSettleResponse.ts b/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdSettleResponse.ts new file mode 100644 index 0000000000..5f5a467be0 --- /dev/null +++ b/packages/fineract-client/src/models/postTellersTellerIdCashiersCashierIdSettleResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTellersTellerIdCashiersCashierIdSettleResponse + */ +export interface PostTellersTellerIdCashiersCashierIdSettleResponse { + resourceId?: number; + subResourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postTellersTellerIdCashiersRequest.ts b/packages/fineract-client/src/models/postTellersTellerIdCashiersRequest.ts new file mode 100644 index 0000000000..7af12ecf3b --- /dev/null +++ b/packages/fineract-client/src/models/postTellersTellerIdCashiersRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTellersTellerIdCashiersRequest + */ +export interface PostTellersTellerIdCashiersRequest { + dateFormat?: string; + description?: string; + endDate?: string; + isFullDay?: boolean; + locale?: string; + staffId?: number; + startDate?: string; +} + diff --git a/packages/fineract-client/src/models/postTellersTellerIdCashiersResponse.ts b/packages/fineract-client/src/models/postTellersTellerIdCashiersResponse.ts new file mode 100644 index 0000000000..066156c74a --- /dev/null +++ b/packages/fineract-client/src/models/postTellersTellerIdCashiersResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTellersTellerIdCashiersResponse + */ +export interface PostTellersTellerIdCashiersResponse { + resourceId?: number; + subResourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postTemplatesRequest.ts b/packages/fineract-client/src/models/postTemplatesRequest.ts new file mode 100644 index 0000000000..c63c398325 --- /dev/null +++ b/packages/fineract-client/src/models/postTemplatesRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TemplateMapper } from './templateMapper'; + + +/** + * PostTemplatesRequest + */ +export interface PostTemplatesRequest { + entity?: number; + id?: number; + mappers?: Array; + name?: string; + text?: string; + type?: number; +} + diff --git a/packages/fineract-client/src/models/postTemplatesResponse.ts b/packages/fineract-client/src/models/postTemplatesResponse.ts new file mode 100644 index 0000000000..92a7094f83 --- /dev/null +++ b/packages/fineract-client/src/models/postTemplatesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostTemplatesResponse + */ +export interface PostTemplatesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postUpdateRescheduleLoanChanges.ts b/packages/fineract-client/src/models/postUpdateRescheduleLoanChanges.ts new file mode 100644 index 0000000000..3012e29fcd --- /dev/null +++ b/packages/fineract-client/src/models/postUpdateRescheduleLoanChanges.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostUpdateRescheduleLoanChanges { + approvedByUserId?: number; + approvedOnDate?: string; + dateFormat?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/postUpdateRescheduleLoansRequest.ts b/packages/fineract-client/src/models/postUpdateRescheduleLoansRequest.ts new file mode 100644 index 0000000000..6e0f17479c --- /dev/null +++ b/packages/fineract-client/src/models/postUpdateRescheduleLoansRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostUpdateRescheduleLoansRequest + */ +export interface PostUpdateRescheduleLoansRequest { + approvedOnDate?: string; + dateFormat?: string; + locale?: string; + rejectedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/postUpdateRescheduleLoansResponse.ts b/packages/fineract-client/src/models/postUpdateRescheduleLoansResponse.ts new file mode 100644 index 0000000000..f5cce0d739 --- /dev/null +++ b/packages/fineract-client/src/models/postUpdateRescheduleLoansResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostUpdateRescheduleLoanChanges } from './postUpdateRescheduleLoanChanges'; + + +/** + * PostUpdateRescheduleLoansResponse + */ +export interface PostUpdateRescheduleLoansResponse { + changes?: PostUpdateRescheduleLoanChanges; + clientId?: number; + loanId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postUsersRequest.ts b/packages/fineract-client/src/models/postUsersRequest.ts new file mode 100644 index 0000000000..a5dec664e7 --- /dev/null +++ b/packages/fineract-client/src/models/postUsersRequest.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostUsersRequest + */ +export interface PostUsersRequest { + email?: string; + firstname?: string; + isSelfServiceUser?: boolean; + lastname?: string; + officeId?: number; + password?: string; + repeatPassword?: string; + roles?: Array; + sendPasswordToEmail?: boolean; + staffId?: number; + username?: string; +} + diff --git a/packages/fineract-client/src/models/postUsersResponse.ts b/packages/fineract-client/src/models/postUsersResponse.ts new file mode 100644 index 0000000000..c45289302a --- /dev/null +++ b/packages/fineract-client/src/models/postUsersResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PostUsersResponse + */ +export interface PostUsersResponse { + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/postalAddress.ts b/packages/fineract-client/src/models/postalAddress.ts new file mode 100644 index 0000000000..bb98fdb761 --- /dev/null +++ b/packages/fineract-client/src/models/postalAddress.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PostalAddress { + addressLine1?: string; + addressLine2?: string; + city?: string; + country?: string; + postalCode?: string; + stateProvince?: string; +} + diff --git a/packages/fineract-client/src/models/processingResultLookup.ts b/packages/fineract-client/src/models/processingResultLookup.ts new file mode 100644 index 0000000000..5b3c31667d --- /dev/null +++ b/packages/fineract-client/src/models/processingResultLookup.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ProcessingResultLookup { + id?: number; + processingResult?: string; +} + diff --git a/packages/fineract-client/src/models/provisioningCriteriaDefinitionData.ts b/packages/fineract-client/src/models/provisioningCriteriaDefinitionData.ts new file mode 100644 index 0000000000..5a8b01a976 --- /dev/null +++ b/packages/fineract-client/src/models/provisioningCriteriaDefinitionData.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ProvisioningCriteriaDefinitionData { + categoryId?: number; + categoryName?: string; + expenseAccount?: number; + expenseCode?: string; + expenseName?: string; + id?: number; + liabilityAccount?: number; + liabilityCode?: string; + liabilityName?: string; + maxAge?: number; + minAge?: number; + provisioningPercentage?: number; +} + diff --git a/packages/fineract-client/src/models/provisioningEntryData.ts b/packages/fineract-client/src/models/provisioningEntryData.ts new file mode 100644 index 0000000000..37a4857b73 --- /dev/null +++ b/packages/fineract-client/src/models/provisioningEntryData.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { LoanProductProvisioningEntryData } from './loanProductProvisioningEntryData'; + + +export interface ProvisioningEntryData { + createdById?: number; + createdDate?: string; + createdUser?: string; + id?: number; + journalEntry?: boolean; + modifiedById?: number; + modifiedUser?: string; + provisioningEntries?: Array; + reservedAmount?: number; +} + diff --git a/packages/fineract-client/src/models/putAccountNumberFormatsRequest.ts b/packages/fineract-client/src/models/putAccountNumberFormatsRequest.ts new file mode 100644 index 0000000000..7cb98fd0c4 --- /dev/null +++ b/packages/fineract-client/src/models/putAccountNumberFormatsRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutAccountNumberFormatsRequest + */ +export interface PutAccountNumberFormatsRequest { + prefixType?: number; +} + diff --git a/packages/fineract-client/src/models/putAccountNumberFormatsResponse.ts b/packages/fineract-client/src/models/putAccountNumberFormatsResponse.ts new file mode 100644 index 0000000000..88966c38c5 --- /dev/null +++ b/packages/fineract-client/src/models/putAccountNumberFormatsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutAccountNumberFormatschangesSwagger } from './putAccountNumberFormatschangesSwagger'; + + +/** + * PutAccountNumberFormatsResponse + */ +export interface PutAccountNumberFormatsResponse { + changes?: PutAccountNumberFormatschangesSwagger; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putAccountNumberFormatschangesSwagger.ts b/packages/fineract-client/src/models/putAccountNumberFormatschangesSwagger.ts new file mode 100644 index 0000000000..1de79678ca --- /dev/null +++ b/packages/fineract-client/src/models/putAccountNumberFormatschangesSwagger.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutAccountNumberFormatschangesSwagger { + prefixType?: number; +} + diff --git a/packages/fineract-client/src/models/putAccountingRulesRequest.ts b/packages/fineract-client/src/models/putAccountingRulesRequest.ts new file mode 100644 index 0000000000..9425a6472c --- /dev/null +++ b/packages/fineract-client/src/models/putAccountingRulesRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutAccountingRulesRequest + */ +export interface PutAccountingRulesRequest { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putAccountingRulesResponse.ts b/packages/fineract-client/src/models/putAccountingRulesResponse.ts new file mode 100644 index 0000000000..cf4566038b --- /dev/null +++ b/packages/fineract-client/src/models/putAccountingRulesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutAccountingRulesResponsechangesSwagger } from './putAccountingRulesResponsechangesSwagger'; + + +/** + * PutAccountingRulesResponse + */ +export interface PutAccountingRulesResponse { + changes?: PutAccountingRulesResponsechangesSwagger; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putAccountingRulesResponsechangesSwagger.ts b/packages/fineract-client/src/models/putAccountingRulesResponsechangesSwagger.ts new file mode 100644 index 0000000000..fcdb66fe2b --- /dev/null +++ b/packages/fineract-client/src/models/putAccountingRulesResponsechangesSwagger.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutAccountingRulesResponsechangesSwagger { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putAccountsChanges.ts b/packages/fineract-client/src/models/putAccountsChanges.ts new file mode 100644 index 0000000000..82ee9f00d3 --- /dev/null +++ b/packages/fineract-client/src/models/putAccountsChanges.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutAccountsChanges { + applicationDate?: string; + dateFormat?: string; + locale?: string; + requestedShares?: number; +} + diff --git a/packages/fineract-client/src/models/putAccountsTypeAccountIdRequest.ts b/packages/fineract-client/src/models/putAccountsTypeAccountIdRequest.ts new file mode 100644 index 0000000000..a4de23ce12 --- /dev/null +++ b/packages/fineract-client/src/models/putAccountsTypeAccountIdRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutAccountsTypeAccountIdRequest + */ +export interface PutAccountsTypeAccountIdRequest { + applicationDate?: string; + dateFormat?: string; + locale?: string; + requestedShares?: number; +} + diff --git a/packages/fineract-client/src/models/putAccountsTypeAccountIdResponse.ts b/packages/fineract-client/src/models/putAccountsTypeAccountIdResponse.ts new file mode 100644 index 0000000000..28a6a3721c --- /dev/null +++ b/packages/fineract-client/src/models/putAccountsTypeAccountIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutAccountsChanges } from './putAccountsChanges'; + + +/** + * PutAccountsTypeAccountIdResponse + */ +export interface PutAccountsTypeAccountIdResponse { + changes?: PutAccountsChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putCachechangesSwagger.ts b/packages/fineract-client/src/models/putCachechangesSwagger.ts new file mode 100644 index 0000000000..72056d66d1 --- /dev/null +++ b/packages/fineract-client/src/models/putCachechangesSwagger.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutCachechangesSwagger { + cacheType?: number; +} + diff --git a/packages/fineract-client/src/models/putCachesRequest.ts b/packages/fineract-client/src/models/putCachesRequest.ts new file mode 100644 index 0000000000..81515aaca8 --- /dev/null +++ b/packages/fineract-client/src/models/putCachesRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutCachesRequest + */ +export interface PutCachesRequest { + cacheType?: number; +} + diff --git a/packages/fineract-client/src/models/putCachesResponse.ts b/packages/fineract-client/src/models/putCachesResponse.ts new file mode 100644 index 0000000000..559124a3b3 --- /dev/null +++ b/packages/fineract-client/src/models/putCachesResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutCachechangesSwagger } from './putCachechangesSwagger'; + + +/** + * PutCachesResponse + */ +export interface PutCachesResponse { + cacheType?: PutCachechangesSwagger; +} + diff --git a/packages/fineract-client/src/models/putCentersCenterIdRequest.ts b/packages/fineract-client/src/models/putCentersCenterIdRequest.ts new file mode 100644 index 0000000000..f626ebe7ab --- /dev/null +++ b/packages/fineract-client/src/models/putCentersCenterIdRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutCentersCenterIdRequest + */ +export interface PutCentersCenterIdRequest { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putCentersCenterIdResponse.ts b/packages/fineract-client/src/models/putCentersCenterIdResponse.ts new file mode 100644 index 0000000000..0b23e8ee1b --- /dev/null +++ b/packages/fineract-client/src/models/putCentersCenterIdResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutCentersChanges } from './putCentersChanges'; + + +/** + * PutCentersCenterIdResponse + */ +export interface PutCentersCenterIdResponse { + changes?: PutCentersChanges; + groupId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putCentersChanges.ts b/packages/fineract-client/src/models/putCentersChanges.ts new file mode 100644 index 0000000000..9cdb1ad668 --- /dev/null +++ b/packages/fineract-client/src/models/putCentersChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutCentersChanges { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putChargeTransactionChangesRequest.ts b/packages/fineract-client/src/models/putChargeTransactionChangesRequest.ts new file mode 100644 index 0000000000..ec2bf206a6 --- /dev/null +++ b/packages/fineract-client/src/models/putChargeTransactionChangesRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutChargeTransactionChangesRequest + */ +export interface PutChargeTransactionChangesRequest { + id?: number; + loanId?: number; +} + diff --git a/packages/fineract-client/src/models/putChargeTransactionChangesResponse.ts b/packages/fineract-client/src/models/putChargeTransactionChangesResponse.ts new file mode 100644 index 0000000000..8e49d39f73 --- /dev/null +++ b/packages/fineract-client/src/models/putChargeTransactionChangesResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutChargeTransactionChangesResponseChanges } from './putChargeTransactionChangesResponseChanges'; + + +/** + * PutChargeTransactionChangesResponse + */ +export interface PutChargeTransactionChangesResponse { + changes?: PutChargeTransactionChangesResponseChanges; + clientId?: number; + loanId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; + subResourceExternalId?: string; + subResourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putChargeTransactionChangesResponseChanges.ts b/packages/fineract-client/src/models/putChargeTransactionChangesResponseChanges.ts new file mode 100644 index 0000000000..8d519a7162 --- /dev/null +++ b/packages/fineract-client/src/models/putChargeTransactionChangesResponseChanges.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutChargeTransactionChangesResponseChanges { + amount?: number; + date?: string; + externalId?: string; + feeChargesPortion?: number; + id?: number; + interestPortion?: number; + outstandingLoanBalance?: number; + penaltyChargesPortion?: number; + principalPortion?: number; +} + diff --git a/packages/fineract-client/src/models/putChargesChargeIdRequest.ts b/packages/fineract-client/src/models/putChargesChargeIdRequest.ts new file mode 100644 index 0000000000..a6e8fe487f --- /dev/null +++ b/packages/fineract-client/src/models/putChargesChargeIdRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutChargesChargeIdRequest + */ +export interface PutChargesChargeIdRequest { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putChargesChargeIdResponse.ts b/packages/fineract-client/src/models/putChargesChargeIdResponse.ts new file mode 100644 index 0000000000..d6e65105e9 --- /dev/null +++ b/packages/fineract-client/src/models/putChargesChargeIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutChargesChargeIdRequest } from './putChargesChargeIdRequest'; + + +/** + * PutChargesChargeIdResponse + */ +export interface PutChargesChargeIdResponse { + changes?: PutChargesChargeIdRequest; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putClientClientIdAddressesRequest.ts b/packages/fineract-client/src/models/putClientClientIdAddressesRequest.ts new file mode 100644 index 0000000000..070177a8d2 --- /dev/null +++ b/packages/fineract-client/src/models/putClientClientIdAddressesRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutClientClientIdAddressesRequest + */ +export interface PutClientClientIdAddressesRequest { + addressId?: number; + street?: string; +} + diff --git a/packages/fineract-client/src/models/putClientClientIdAddressesResponse.ts b/packages/fineract-client/src/models/putClientClientIdAddressesResponse.ts new file mode 100644 index 0000000000..b154d2780d --- /dev/null +++ b/packages/fineract-client/src/models/putClientClientIdAddressesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutClientClientIdAddressesResponse + */ +export interface PutClientClientIdAddressesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putClientCollateralRequest.ts b/packages/fineract-client/src/models/putClientCollateralRequest.ts new file mode 100644 index 0000000000..8076f1f6e3 --- /dev/null +++ b/packages/fineract-client/src/models/putClientCollateralRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutClientCollateralRequest + */ +export interface PutClientCollateralRequest { + locale?: string; + quantity?: number; +} + diff --git a/packages/fineract-client/src/models/putClientCollateralResponse.ts b/packages/fineract-client/src/models/putClientCollateralResponse.ts new file mode 100644 index 0000000000..0cb1d081d5 --- /dev/null +++ b/packages/fineract-client/src/models/putClientCollateralResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutClientCollateralRequest } from './putClientCollateralRequest'; + + +/** + * PutClientCollateralResponse + */ +export interface PutClientCollateralResponse { + changes?: PutClientCollateralRequest; + clientId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putClientsClientIdIdentifiersIdentifierIdRequest.ts b/packages/fineract-client/src/models/putClientsClientIdIdentifiersIdentifierIdRequest.ts new file mode 100644 index 0000000000..60a4274a1b --- /dev/null +++ b/packages/fineract-client/src/models/putClientsClientIdIdentifiersIdentifierIdRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutClientsClientIdIdentifiersIdentifierIdRequest + */ +export interface PutClientsClientIdIdentifiersIdentifierIdRequest { + description?: string; + documentKey?: string; + documentTypeId?: number; +} + diff --git a/packages/fineract-client/src/models/putClientsClientIdIdentifiersIdentifierIdResponse.ts b/packages/fineract-client/src/models/putClientsClientIdIdentifiersIdentifierIdResponse.ts new file mode 100644 index 0000000000..ef7ace243a --- /dev/null +++ b/packages/fineract-client/src/models/putClientsClientIdIdentifiersIdentifierIdResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutClientsClientIdIdentifiersIdentifierIdRequest } from './putClientsClientIdIdentifiersIdentifierIdRequest'; + + +/** + * PutClientsClientIdIdentifiersIdentifierIdResponse + */ +export interface PutClientsClientIdIdentifiersIdentifierIdResponse { + changes?: PutClientsClientIdIdentifiersIdentifierIdRequest; + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putClientsClientIdRequest.ts b/packages/fineract-client/src/models/putClientsClientIdRequest.ts new file mode 100644 index 0000000000..24feeeca9a --- /dev/null +++ b/packages/fineract-client/src/models/putClientsClientIdRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutClientsClientIdRequest + */ +export interface PutClientsClientIdRequest { + externalId?: string; + resourceExternalId?: string; +} + diff --git a/packages/fineract-client/src/models/putClientsClientIdResponse.ts b/packages/fineract-client/src/models/putClientsClientIdResponse.ts new file mode 100644 index 0000000000..a06e73b7d0 --- /dev/null +++ b/packages/fineract-client/src/models/putClientsClientIdResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutClientsClientIdRequest } from './putClientsClientIdRequest'; + + +/** + * PutClientsClientIdResponse + */ +export interface PutClientsClientIdResponse { + changes?: PutClientsClientIdRequest; + clientId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putCodeValueDataResponse.ts b/packages/fineract-client/src/models/putCodeValueDataResponse.ts new file mode 100644 index 0000000000..aa78ee1411 --- /dev/null +++ b/packages/fineract-client/src/models/putCodeValueDataResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutCodeValuechangesSwagger } from './putCodeValuechangesSwagger'; + + +/** + * PutCodeValueDataResponse + */ +export interface PutCodeValueDataResponse { + changes?: PutCodeValuechangesSwagger; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putCodeValuechangesSwagger.ts b/packages/fineract-client/src/models/putCodeValuechangesSwagger.ts new file mode 100644 index 0000000000..9e96ba1ce9 --- /dev/null +++ b/packages/fineract-client/src/models/putCodeValuechangesSwagger.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutCodeValuechangesSwagger { + description?: string; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/putCodeValuesDataRequest.ts b/packages/fineract-client/src/models/putCodeValuesDataRequest.ts new file mode 100644 index 0000000000..1431e7f27f --- /dev/null +++ b/packages/fineract-client/src/models/putCodeValuesDataRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutCodeValuesDataRequest + */ +export interface PutCodeValuesDataRequest { + description?: string; + isActive?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/putCodesApichangesSwagger.ts b/packages/fineract-client/src/models/putCodesApichangesSwagger.ts new file mode 100644 index 0000000000..b38bdf97d6 --- /dev/null +++ b/packages/fineract-client/src/models/putCodesApichangesSwagger.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutCodesApichangesSwagger { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putCodesRequest.ts b/packages/fineract-client/src/models/putCodesRequest.ts new file mode 100644 index 0000000000..1992e266b5 --- /dev/null +++ b/packages/fineract-client/src/models/putCodesRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutCodesRequest + */ +export interface PutCodesRequest { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putCodesResponse.ts b/packages/fineract-client/src/models/putCodesResponse.ts new file mode 100644 index 0000000000..1c6e967fb1 --- /dev/null +++ b/packages/fineract-client/src/models/putCodesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutCodesApichangesSwagger } from './putCodesApichangesSwagger'; + + +/** + * PutCodesResponse + */ +export interface PutCodesResponse { + changes?: PutCodesApichangesSwagger; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putCollateralProductRequest.ts b/packages/fineract-client/src/models/putCollateralProductRequest.ts new file mode 100644 index 0000000000..7a68e40576 --- /dev/null +++ b/packages/fineract-client/src/models/putCollateralProductRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutCollateralProductRequest + */ +export interface PutCollateralProductRequest { + basePrice?: number; + currency?: string; + name?: string; + pctToBase?: number; + quality?: string; + unitType?: string; +} + diff --git a/packages/fineract-client/src/models/putCollateralProductResponse.ts b/packages/fineract-client/src/models/putCollateralProductResponse.ts new file mode 100644 index 0000000000..f09bf24d00 --- /dev/null +++ b/packages/fineract-client/src/models/putCollateralProductResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutCollateralProductRequest } from './putCollateralProductRequest'; + + +/** + * PutCollateralProductResponse + */ +export interface PutCollateralProductResponse { + changes?: PutCollateralProductRequest; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putCurrenciesRequest.ts b/packages/fineract-client/src/models/putCurrenciesRequest.ts new file mode 100644 index 0000000000..ee79d06749 --- /dev/null +++ b/packages/fineract-client/src/models/putCurrenciesRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutCurrenciesRequest + */ +export interface PutCurrenciesRequest { + currencies?: Array; +} + diff --git a/packages/fineract-client/src/models/putCurrenciesResponse.ts b/packages/fineract-client/src/models/putCurrenciesResponse.ts new file mode 100644 index 0000000000..88a19d772b --- /dev/null +++ b/packages/fineract-client/src/models/putCurrenciesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutCurrenciesResponse + */ +export interface PutCurrenciesResponse { + currencies?: Array; +} + diff --git a/packages/fineract-client/src/models/putDataTablesAppTableIdDatatableIdResponse.ts b/packages/fineract-client/src/models/putDataTablesAppTableIdDatatableIdResponse.ts new file mode 100644 index 0000000000..8f2f430378 --- /dev/null +++ b/packages/fineract-client/src/models/putDataTablesAppTableIdDatatableIdResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutDataTablesAppTableIdDatatableIdResponse + */ +export interface PutDataTablesAppTableIdDatatableIdResponse { + changes?: { [key: string]: object; }; + clientId?: number; + loanId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putDataTablesAppTableIdResponse.ts b/packages/fineract-client/src/models/putDataTablesAppTableIdResponse.ts new file mode 100644 index 0000000000..b2286814b5 --- /dev/null +++ b/packages/fineract-client/src/models/putDataTablesAppTableIdResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutDataTablesAppTableIdResponse + */ +export interface PutDataTablesAppTableIdResponse { + changes?: { [key: string]: object; }; + clientId?: number; + loanId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putDataTablesRequest.ts b/packages/fineract-client/src/models/putDataTablesRequest.ts new file mode 100644 index 0000000000..a9440c260c --- /dev/null +++ b/packages/fineract-client/src/models/putDataTablesRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutDataTablesRequestAddColumns } from './putDataTablesRequestAddColumns'; +import { PutDataTablesRequestDropColumns } from './putDataTablesRequestDropColumns'; +import { PutDataTablesRequestChangeColumns } from './putDataTablesRequestChangeColumns'; + + +/** + * PutDataTablesRequest + */ +export interface PutDataTablesRequest { + addColumns?: Array; + apptableName?: string; + changeColumns?: Array; + dropColumns?: Array; +} + diff --git a/packages/fineract-client/src/models/putDataTablesRequestAddColumns.ts b/packages/fineract-client/src/models/putDataTablesRequestAddColumns.ts new file mode 100644 index 0000000000..23b605e9ae --- /dev/null +++ b/packages/fineract-client/src/models/putDataTablesRequestAddColumns.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutDataTablesRequestAddColumns { + code?: string; + /** + * Defaults to false + */ + indexed?: boolean; + mandatory?: boolean; + name?: string; + type?: string; + unique?: boolean; +} + diff --git a/packages/fineract-client/src/models/putDataTablesRequestChangeColumns.ts b/packages/fineract-client/src/models/putDataTablesRequestChangeColumns.ts new file mode 100644 index 0000000000..e678e33400 --- /dev/null +++ b/packages/fineract-client/src/models/putDataTablesRequestChangeColumns.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutDataTablesRequestChangeColumns { + code?: string; + /** + * Defaults to false + */ + indexed?: boolean; + mandatory?: boolean; + name?: string; + newCode?: string; + newName?: string; + unique?: boolean; +} + diff --git a/packages/fineract-client/src/models/putDataTablesRequestDropColumns.ts b/packages/fineract-client/src/models/putDataTablesRequestDropColumns.ts new file mode 100644 index 0000000000..3480124e66 --- /dev/null +++ b/packages/fineract-client/src/models/putDataTablesRequestDropColumns.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutDataTablesRequestDropColumns { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putDataTablesResponse.ts b/packages/fineract-client/src/models/putDataTablesResponse.ts new file mode 100644 index 0000000000..db7bc30620 --- /dev/null +++ b/packages/fineract-client/src/models/putDataTablesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutDataTablesResponse + */ +export interface PutDataTablesResponse { + resourceIdentifier?: string; +} + diff --git a/packages/fineract-client/src/models/putDelinquencyBucketResponse.ts b/packages/fineract-client/src/models/putDelinquencyBucketResponse.ts new file mode 100644 index 0000000000..bb2583ef43 --- /dev/null +++ b/packages/fineract-client/src/models/putDelinquencyBucketResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutDelinquencyBucketResponse + */ +export interface PutDelinquencyBucketResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putDelinquencyRangeResponse.ts b/packages/fineract-client/src/models/putDelinquencyRangeResponse.ts new file mode 100644 index 0000000000..a48e540915 --- /dev/null +++ b/packages/fineract-client/src/models/putDelinquencyRangeResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostDelinquencyRangeRequest } from './postDelinquencyRangeRequest'; + + +/** + * PutDelinquencyRangeResponse + */ +export interface PutDelinquencyRangeResponse { + changes?: PostDelinquencyRangeRequest; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putEntityTypeEntityIdDocumentsResponse.ts b/packages/fineract-client/src/models/putEntityTypeEntityIdDocumentsResponse.ts new file mode 100644 index 0000000000..d86c2c4731 --- /dev/null +++ b/packages/fineract-client/src/models/putEntityTypeEntityIdDocumentsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutEntityTypeEntityIdDocumentsResponse + */ +export interface PutEntityTypeEntityIdDocumentsResponse { + changes?: object; + resourceId?: number; + resourceIdentifier?: string; +} + diff --git a/packages/fineract-client/src/models/putExternalEventConfigurationsRequest.ts b/packages/fineract-client/src/models/putExternalEventConfigurationsRequest.ts new file mode 100644 index 0000000000..1227dfe834 --- /dev/null +++ b/packages/fineract-client/src/models/putExternalEventConfigurationsRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutExternalEventConfigurationsRequest + */ +export interface PutExternalEventConfigurationsRequest { + externalEventConfigurations?: { [key: string]: boolean; }; +} + diff --git a/packages/fineract-client/src/models/putExternalServiceRequest.ts b/packages/fineract-client/src/models/putExternalServiceRequest.ts new file mode 100644 index 0000000000..7fd592c0eb --- /dev/null +++ b/packages/fineract-client/src/models/putExternalServiceRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutExternalServiceRequest + */ +export interface PutExternalServiceRequest { + password?: string; + username?: string; +} + diff --git a/packages/fineract-client/src/models/putFinancialActivityAccountsResponse.ts b/packages/fineract-client/src/models/putFinancialActivityAccountsResponse.ts new file mode 100644 index 0000000000..8e04631eda --- /dev/null +++ b/packages/fineract-client/src/models/putFinancialActivityAccountsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutFinancialActivityAccountscommentsSwagger } from './putFinancialActivityAccountscommentsSwagger'; + + +/** + * PutFinancialActivityAccountsResponse + */ +export interface PutFinancialActivityAccountsResponse { + comments?: PutFinancialActivityAccountscommentsSwagger; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putFinancialActivityAccountscommentsSwagger.ts b/packages/fineract-client/src/models/putFinancialActivityAccountscommentsSwagger.ts new file mode 100644 index 0000000000..6d85dd2249 --- /dev/null +++ b/packages/fineract-client/src/models/putFinancialActivityAccountscommentsSwagger.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutFinancialActivityAccountscommentsSwagger { + glAccountId?: number; +} + diff --git a/packages/fineract-client/src/models/putFixedDepositAccountsAccountIdRequest.ts b/packages/fineract-client/src/models/putFixedDepositAccountsAccountIdRequest.ts new file mode 100644 index 0000000000..910b64fbc8 --- /dev/null +++ b/packages/fineract-client/src/models/putFixedDepositAccountsAccountIdRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutFixedDepositAccountsAccountIdRequest + */ +export interface PutFixedDepositAccountsAccountIdRequest { + depositAmount?: number; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/putFixedDepositAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/putFixedDepositAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..5502cdf724 --- /dev/null +++ b/packages/fineract-client/src/models/putFixedDepositAccountsAccountIdResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutFixedDepositAccountsChanges } from './putFixedDepositAccountsChanges'; + + +/** + * PutFixedDepositAccountsAccountIdResponse + */ +export interface PutFixedDepositAccountsAccountIdResponse { + changes?: PutFixedDepositAccountsChanges; + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/putFixedDepositAccountsChanges.ts b/packages/fineract-client/src/models/putFixedDepositAccountsChanges.ts new file mode 100644 index 0000000000..93f0364007 --- /dev/null +++ b/packages/fineract-client/src/models/putFixedDepositAccountsChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutFixedDepositAccountsChanges { + depositAmount?: number; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/putFixedDepositProductsChanges.ts b/packages/fineract-client/src/models/putFixedDepositProductsChanges.ts new file mode 100644 index 0000000000..e3088fcd13 --- /dev/null +++ b/packages/fineract-client/src/models/putFixedDepositProductsChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutFixedDepositProductsChanges { + description?: string; + minDepositTerm?: number; +} + diff --git a/packages/fineract-client/src/models/putFixedDepositProductsProductIdRequest.ts b/packages/fineract-client/src/models/putFixedDepositProductsProductIdRequest.ts new file mode 100644 index 0000000000..a36d60788e --- /dev/null +++ b/packages/fineract-client/src/models/putFixedDepositProductsProductIdRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutFixedDepositProductsProductIdRequest + */ +export interface PutFixedDepositProductsProductIdRequest { + description?: string; + locale?: string; + minDepositTerm?: number; + minDepositTermTypeId?: number; +} + diff --git a/packages/fineract-client/src/models/putFixedDepositProductsProductIdResponse.ts b/packages/fineract-client/src/models/putFixedDepositProductsProductIdResponse.ts new file mode 100644 index 0000000000..1f38430843 --- /dev/null +++ b/packages/fineract-client/src/models/putFixedDepositProductsProductIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutFixedDepositProductsChanges } from './putFixedDepositProductsChanges'; + + +/** + * PutFixedDepositProductsProductIdResponse + */ +export interface PutFixedDepositProductsProductIdResponse { + changes?: PutFixedDepositProductsChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putFloatingRatesChanges.ts b/packages/fineract-client/src/models/putFloatingRatesChanges.ts new file mode 100644 index 0000000000..1e9578d4a8 --- /dev/null +++ b/packages/fineract-client/src/models/putFloatingRatesChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostFloatingRatesRatePeriods } from './postFloatingRatesRatePeriods'; + + +export interface PutFloatingRatesChanges { + ratePeriods?: Set; +} + diff --git a/packages/fineract-client/src/models/putFloatingRatesFloatingRateIdRequest.ts b/packages/fineract-client/src/models/putFloatingRatesFloatingRateIdRequest.ts new file mode 100644 index 0000000000..97456be348 --- /dev/null +++ b/packages/fineract-client/src/models/putFloatingRatesFloatingRateIdRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PostFloatingRatesRatePeriods } from './postFloatingRatesRatePeriods'; + + +/** + * PutFloatingRatesFloatingRateIdRequest + */ +export interface PutFloatingRatesFloatingRateIdRequest { + isActive?: boolean; + isBaseLendingRate?: boolean; + name?: string; + ratePeriods?: Set; +} + diff --git a/packages/fineract-client/src/models/putFloatingRatesFloatingRateIdResponse.ts b/packages/fineract-client/src/models/putFloatingRatesFloatingRateIdResponse.ts new file mode 100644 index 0000000000..2d56745c1a --- /dev/null +++ b/packages/fineract-client/src/models/putFloatingRatesFloatingRateIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutFloatingRatesChanges } from './putFloatingRatesChanges'; + + +/** + * PutFloatingRatesFloatingRateIdResponse + */ +export interface PutFloatingRatesFloatingRateIdResponse { + changes?: PutFloatingRatesChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putFundsFundIdRequest.ts b/packages/fineract-client/src/models/putFundsFundIdRequest.ts new file mode 100644 index 0000000000..8588fc50bd --- /dev/null +++ b/packages/fineract-client/src/models/putFundsFundIdRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutFundsFundIdRequest + */ +export interface PutFundsFundIdRequest { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putFundsFundIdResponse.ts b/packages/fineract-client/src/models/putFundsFundIdResponse.ts new file mode 100644 index 0000000000..84352c937e --- /dev/null +++ b/packages/fineract-client/src/models/putFundsFundIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutFundsFundIdRequest } from './putFundsFundIdRequest'; + + +/** + * PutFundsFundIdResponse + */ +export interface PutFundsFundIdResponse { + changes?: PutFundsFundIdRequest; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putGLAccountsRequest.ts b/packages/fineract-client/src/models/putGLAccountsRequest.ts new file mode 100644 index 0000000000..e68ec33b43 --- /dev/null +++ b/packages/fineract-client/src/models/putGLAccountsRequest.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutGLAccountsRequest + */ +export interface PutGLAccountsRequest { + description?: string; + disabled?: boolean; + glCode?: string; + manualEntriesAllowed?: boolean; + name?: string; + parentId?: number; + tagId?: number; + type?: number; + usage?: number; +} + diff --git a/packages/fineract-client/src/models/putGLAccountsResponse.ts b/packages/fineract-client/src/models/putGLAccountsResponse.ts new file mode 100644 index 0000000000..0e9731284a --- /dev/null +++ b/packages/fineract-client/src/models/putGLAccountsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutGLAccountsResponsechangesSwagger } from './putGLAccountsResponsechangesSwagger'; + + +/** + * PutGLAccountsResponse + */ +export interface PutGLAccountsResponse { + changes?: PutGLAccountsResponsechangesSwagger; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putGLAccountsResponsechangesSwagger.ts b/packages/fineract-client/src/models/putGLAccountsResponsechangesSwagger.ts new file mode 100644 index 0000000000..234c614ad6 --- /dev/null +++ b/packages/fineract-client/src/models/putGLAccountsResponsechangesSwagger.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutGLAccountsResponsechangesSwagger { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putGlClosuresRequest.ts b/packages/fineract-client/src/models/putGlClosuresRequest.ts new file mode 100644 index 0000000000..23414c07bd --- /dev/null +++ b/packages/fineract-client/src/models/putGlClosuresRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutGlClosuresRequest + */ +export interface PutGlClosuresRequest { + comments?: string; +} + diff --git a/packages/fineract-client/src/models/putGlClosuresResponse.ts b/packages/fineract-client/src/models/putGlClosuresResponse.ts new file mode 100644 index 0000000000..1cfc41e9e7 --- /dev/null +++ b/packages/fineract-client/src/models/putGlClosuresResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutGlClosuresResponse + */ +export interface PutGlClosuresResponse { + comments?: string; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putGlobalConfigurationsRequest.ts b/packages/fineract-client/src/models/putGlobalConfigurationsRequest.ts new file mode 100644 index 0000000000..ffc6755183 --- /dev/null +++ b/packages/fineract-client/src/models/putGlobalConfigurationsRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutGlobalConfigurationsRequest + */ +export interface PutGlobalConfigurationsRequest { + dateFormat?: string; + dateValue?: string; + enabled?: boolean; + locale?: string; + stringValue?: string; + value?: number; +} + diff --git a/packages/fineract-client/src/models/putGlobalConfigurationsResponse.ts b/packages/fineract-client/src/models/putGlobalConfigurationsResponse.ts new file mode 100644 index 0000000000..7586bd985d --- /dev/null +++ b/packages/fineract-client/src/models/putGlobalConfigurationsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutGlobalConfigurationsResponsechangesSwagger } from './putGlobalConfigurationsResponsechangesSwagger'; + + +/** + * PutGlobalConfigurationsResponse + */ +export interface PutGlobalConfigurationsResponse { + changes?: PutGlobalConfigurationsResponsechangesSwagger; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putGlobalConfigurationsResponsechangesSwagger.ts b/packages/fineract-client/src/models/putGlobalConfigurationsResponsechangesSwagger.ts new file mode 100644 index 0000000000..fc44ace32c --- /dev/null +++ b/packages/fineract-client/src/models/putGlobalConfigurationsResponsechangesSwagger.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutGlobalConfigurationsResponsechangesSwagger { + dateValue?: string; + enabled?: boolean; + stringValue?: string; + value?: number; +} + diff --git a/packages/fineract-client/src/models/putGroupsGroupIdChanges.ts b/packages/fineract-client/src/models/putGroupsGroupIdChanges.ts new file mode 100644 index 0000000000..95b831e88c --- /dev/null +++ b/packages/fineract-client/src/models/putGroupsGroupIdChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutGroupsGroupIdChanges { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putGroupsGroupIdRequest.ts b/packages/fineract-client/src/models/putGroupsGroupIdRequest.ts new file mode 100644 index 0000000000..d980687918 --- /dev/null +++ b/packages/fineract-client/src/models/putGroupsGroupIdRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutGroupsGroupIdRequest + */ +export interface PutGroupsGroupIdRequest { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putGroupsGroupIdResponse.ts b/packages/fineract-client/src/models/putGroupsGroupIdResponse.ts new file mode 100644 index 0000000000..d208d1b79b --- /dev/null +++ b/packages/fineract-client/src/models/putGroupsGroupIdResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutGroupsGroupIdChanges } from './putGroupsGroupIdChanges'; + + +/** + * PutGroupsGroupIdResponse + */ +export interface PutGroupsGroupIdResponse { + changes?: PutGroupsGroupIdChanges; + groupId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putHolidaysHolidayIdRequest.ts b/packages/fineract-client/src/models/putHolidaysHolidayIdRequest.ts new file mode 100644 index 0000000000..17e7ad49fe --- /dev/null +++ b/packages/fineract-client/src/models/putHolidaysHolidayIdRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutHolidaysHolidayIdRequest + */ +export interface PutHolidaysHolidayIdRequest { + description?: string; + name?: string; +} + diff --git a/packages/fineract-client/src/models/putHolidaysHolidayIdResponse.ts b/packages/fineract-client/src/models/putHolidaysHolidayIdResponse.ts new file mode 100644 index 0000000000..90a014e9e1 --- /dev/null +++ b/packages/fineract-client/src/models/putHolidaysHolidayIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutHolidaysHolidayIdResponseChanges } from './putHolidaysHolidayIdResponseChanges'; + + +/** + * PutHolidaysHolidayIdResponse + */ +export interface PutHolidaysHolidayIdResponse { + changes?: PutHolidaysHolidayIdResponseChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putHolidaysHolidayIdResponseChanges.ts b/packages/fineract-client/src/models/putHolidaysHolidayIdResponseChanges.ts new file mode 100644 index 0000000000..4ef8306ae1 --- /dev/null +++ b/packages/fineract-client/src/models/putHolidaysHolidayIdResponseChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutHolidaysHolidayIdResponseChanges { + description?: string; + name?: string; +} + diff --git a/packages/fineract-client/src/models/putHookRequest.ts b/packages/fineract-client/src/models/putHookRequest.ts new file mode 100644 index 0000000000..7d01ab21af --- /dev/null +++ b/packages/fineract-client/src/models/putHookRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Field } from './field'; +import { Event } from './event'; + + +/** + * PutHookRequest + */ +export interface PutHookRequest { + config?: Array; + displayName?: string; + events?: Array; + isActive?: boolean; + name?: string; + templateId?: number; +} + diff --git a/packages/fineract-client/src/models/putHookResponse.ts b/packages/fineract-client/src/models/putHookResponse.ts new file mode 100644 index 0000000000..651ccbcb16 --- /dev/null +++ b/packages/fineract-client/src/models/putHookResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutHookResponseChangesSwagger } from './putHookResponseChangesSwagger'; + + +/** + * PutHookResponse + */ +export interface PutHookResponse { + changes?: PutHookResponseChangesSwagger; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putHookResponseChangesSwagger.ts b/packages/fineract-client/src/models/putHookResponseChangesSwagger.ts new file mode 100644 index 0000000000..b34848e6c8 --- /dev/null +++ b/packages/fineract-client/src/models/putHookResponseChangesSwagger.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Field } from './field'; +import { Event } from './event'; + + +export interface PutHookResponseChangesSwagger { + config?: Array; + displayName?: string; + events?: Array; +} + diff --git a/packages/fineract-client/src/models/putInterestRateChartsChartIdChartSlabsChartSlabIdRequest.ts b/packages/fineract-client/src/models/putInterestRateChartsChartIdChartSlabsChartSlabIdRequest.ts new file mode 100644 index 0000000000..12e78b17d2 --- /dev/null +++ b/packages/fineract-client/src/models/putInterestRateChartsChartIdChartSlabsChartSlabIdRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutInterestRateChartsChartIdChartSlabsChartSlabIdRequest + */ +export interface PutInterestRateChartsChartIdChartSlabsChartSlabIdRequest { + annualInterestRate?: number; + description?: string; +} + diff --git a/packages/fineract-client/src/models/putInterestRateChartsChartIdChartSlabsChartSlabIdResponse.ts b/packages/fineract-client/src/models/putInterestRateChartsChartIdChartSlabsChartSlabIdResponse.ts new file mode 100644 index 0000000000..9d7b320b89 --- /dev/null +++ b/packages/fineract-client/src/models/putInterestRateChartsChartIdChartSlabsChartSlabIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutInterestRateChartsChartIdChartSlabsChartSlabIdRequest } from './putInterestRateChartsChartIdChartSlabsChartSlabIdRequest'; + + +/** + * PutInterestRateChartsChartIdChartSlabsChartSlabIdResponse + */ +export interface PutInterestRateChartsChartIdChartSlabsChartSlabIdResponse { + changes?: PutInterestRateChartsChartIdChartSlabsChartSlabIdRequest; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putInterestRateChartsChartIdRequest.ts b/packages/fineract-client/src/models/putInterestRateChartsChartIdRequest.ts new file mode 100644 index 0000000000..ad296ca3a4 --- /dev/null +++ b/packages/fineract-client/src/models/putInterestRateChartsChartIdRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutInterestRateChartsChartIdRequest + */ +export interface PutInterestRateChartsChartIdRequest { + description?: string; + name?: string; +} + diff --git a/packages/fineract-client/src/models/putInterestRateChartsChartIdResponse.ts b/packages/fineract-client/src/models/putInterestRateChartsChartIdResponse.ts new file mode 100644 index 0000000000..c293bfb4fc --- /dev/null +++ b/packages/fineract-client/src/models/putInterestRateChartsChartIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutInterestRateChartsChartIdResponse + */ +export interface PutInterestRateChartsChartIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putJobsJobIDRequest.ts b/packages/fineract-client/src/models/putJobsJobIDRequest.ts new file mode 100644 index 0000000000..fbbd8547f3 --- /dev/null +++ b/packages/fineract-client/src/models/putJobsJobIDRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutJobsJobsIDRequest + */ +export interface PutJobsJobIDRequest { + active?: boolean; + cronExpression?: string; + displayName?: string; +} + diff --git a/packages/fineract-client/src/models/putLoanChanges.ts b/packages/fineract-client/src/models/putLoanChanges.ts new file mode 100644 index 0000000000..8150409849 --- /dev/null +++ b/packages/fineract-client/src/models/putLoanChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutLoanChanges { + locale?: string; + principal?: number; +} + diff --git a/packages/fineract-client/src/models/putLoanProductsProductIdRequest.ts b/packages/fineract-client/src/models/putLoanProductsProductIdRequest.ts new file mode 100644 index 0000000000..82b153c6db --- /dev/null +++ b/packages/fineract-client/src/models/putLoanProductsProductIdRequest.ts @@ -0,0 +1,123 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { AllowAttributeOverrides } from './allowAttributeOverrides'; +import { ChargeToGLAccountMapper } from './chargeToGLAccountMapper'; +import { GetLoanPaymentChannelToFundSourceMappings } from './getLoanPaymentChannelToFundSourceMappings'; +import { RateData } from './rateData'; +import { GetLoanFeeToIncomeAccountMappings } from './getLoanFeeToIncomeAccountMappings'; +import { ChargeData } from './chargeData'; + + +/** + * PutLoanProductsProductIdRequest + */ +export interface PutLoanProductsProductIdRequest { + accountMovesOutOfNPAOnlyOnArrearsCompletion?: boolean; + accountingRule?: number; + allowApprovedDisbursedAmountsOverApplied?: boolean; + allowAttributeOverrides?: AllowAttributeOverrides; + allowPartialPeriodInterestCalcualtion?: boolean; + allowVariableInstallments?: boolean; + amortizationType?: number; + canDefineInstallmentAmount?: boolean; + canUseForTopup?: boolean; + chargeOffExpenseAccountId?: number; + chargeOffFraudExpenseAccountId?: number; + charges?: Array; + closeDate?: string; + currencyCode?: string; + dateFormat?: string; + daysInMonthType?: number; + daysInYearType?: number; + delinquencyBucketId?: number; + description?: string; + digitsAfterDecimal?: number; + disallowExpectedDisbursements?: boolean; + dueDaysForRepaymentEvent?: number; + feeToIncomeAccountMappings?: Array; + fixedPrincipalPercentagePerInstallment?: number; + fundId?: number; + fundSourceAccountId?: number; + goodwillCreditAccountId?: number; + graceOnArrearsAgeing?: number; + graceOnInterestPayment?: number; + graceOnPrincipalPayment?: number; + holdGuaranteeFunds?: boolean; + inArrearsTolerance?: number; + inMultiplesOf?: number; + includeInBorrowerCycle?: boolean; + incomeFromChargeOffFeesAccountId?: number; + incomeFromChargeOffInterestAccountId?: number; + incomeFromChargeOffPenaltyAccountId?: number; + incomeFromFeeAccountId?: number; + incomeFromGoodwillCreditFeesAccountId?: number; + incomeFromGoodwillCreditInterestAccountId?: number; + incomeFromGoodwillCreditPenaltyAccountId?: number; + incomeFromPenaltyAccountId?: number; + incomeFromRecoveryAccountId?: number; + installmentAmountInMultiplesOf?: number; + interestCalculationPeriodType?: number; + interestOnLoanAccountId?: number; + interestRateFrequencyType?: number; + interestRatePerPeriod?: number; + interestRateVariationsForBorrowerCycle?: Array; + interestRecalculationCompoundingMethod?: number; + interestType?: number; + isEqualAmortization?: boolean; + isInterestRecalculationEnabled?: boolean; + isLinkedToFloatingInterestRates?: boolean; + loanPortfolioAccountId?: number; + locale?: string; + maxInterestRatePerPeriod?: number; + maxNumberOfRepayments?: number; + maxPrincipal?: number; + maxTrancheCount?: number; + minInterestRatePerPeriod?: number; + minNumberOfRepayments?: number; + minPrincipal?: number; + minimumDaysBetweenDisbursalAndFirstRepayment?: number; + multiDisburseLoan?: boolean; + name?: string; + numberOfRepaymentVariationsForBorrowerCycle?: Array; + numberOfRepayments?: number; + outstandingLoanBalance?: number; + overAppliedCalculationType?: string; + overAppliedNumber?: number; + overDueDaysForRepaymentEvent?: number; + overdueDaysForNPA?: number; + overpaymentLiabilityAccountId?: number; + paymentChannelToFundSourceMappings?: Array; + penaltyToIncomeAccountMappings?: Array; + preClosureInterestCalculationStrategy?: number; + principal?: number; + principalThresholdForLastInstallment?: number; + principalVariationsForBorrowerCycle?: Array; + rates?: Array; + recalculationCompoundingFrequencyInterval?: number; + recalculationCompoundingFrequencyOnDayType?: number; + recalculationCompoundingFrequencyType?: number; + recalculationRestFrequencyInterval?: number; + recalculationRestFrequencyType?: number; + receivableFeeAccountId?: number; + receivableInterestAccountId?: number; + receivablePenaltyAccountId?: number; + repaymentEvery?: number; + repaymentFrequencyType?: number; + rescheduleStrategyMethod?: number; + shortName?: string; + startDate?: string; + transactionProcessingStrategyCode?: string; + transfersInSuspenseAccountId?: number; + useBorrowerCycle?: boolean; + writeOffAccountId?: number; +} + diff --git a/packages/fineract-client/src/models/putLoanProductsProductIdResponse.ts b/packages/fineract-client/src/models/putLoanProductsProductIdResponse.ts new file mode 100644 index 0000000000..368cd272c3 --- /dev/null +++ b/packages/fineract-client/src/models/putLoanProductsProductIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutLoanChanges } from './putLoanChanges'; + + +/** + * PutLoanProductsProductIdResponse + */ +export interface PutLoanProductsProductIdResponse { + changes?: PutLoanChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putLoansLoanIdChanges.ts b/packages/fineract-client/src/models/putLoansLoanIdChanges.ts new file mode 100644 index 0000000000..f4192ea707 --- /dev/null +++ b/packages/fineract-client/src/models/putLoansLoanIdChanges.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutLoansLoanIdChanges { + fraud?: boolean; + locale?: string; + principal?: number; +} + diff --git a/packages/fineract-client/src/models/putLoansLoanIdChargesChargeIdRequest.ts b/packages/fineract-client/src/models/putLoansLoanIdChargesChargeIdRequest.ts new file mode 100644 index 0000000000..57434fcc09 --- /dev/null +++ b/packages/fineract-client/src/models/putLoansLoanIdChargesChargeIdRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutLoansLoanIdChargesChargeIdRequest + */ +export interface PutLoansLoanIdChargesChargeIdRequest { + amount?: number; + dateFormat?: string; + dueDate?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/putLoansLoanIdChargesChargeIdResponse.ts b/packages/fineract-client/src/models/putLoansLoanIdChargesChargeIdResponse.ts new file mode 100644 index 0000000000..5196fb38eb --- /dev/null +++ b/packages/fineract-client/src/models/putLoansLoanIdChargesChargeIdResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutLoansLoanIdChargesChargeIdRequest } from './putLoansLoanIdChargesChargeIdRequest'; + + +/** + * PutLoansLoanIdChargesChargeIdResponse + */ +export interface PutLoansLoanIdChargesChargeIdResponse { + changes?: PutLoansLoanIdChargesChargeIdRequest; + clientId?: number; + loanId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putLoansLoanIdCollateral.ts b/packages/fineract-client/src/models/putLoansLoanIdCollateral.ts new file mode 100644 index 0000000000..7af0bff7fc --- /dev/null +++ b/packages/fineract-client/src/models/putLoansLoanIdCollateral.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutLoansLoanIdCollateral { + clientCollateralId?: number; + quantity?: number; +} + diff --git a/packages/fineract-client/src/models/putLoansLoanIdCollateralsCollateralIdResponse.ts b/packages/fineract-client/src/models/putLoansLoanIdCollateralsCollateralIdResponse.ts new file mode 100644 index 0000000000..3bc184b337 --- /dev/null +++ b/packages/fineract-client/src/models/putLoansLoanIdCollateralsCollateralIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutLoansLoandIdCollateralsCollateralIdRequest } from './putLoansLoandIdCollateralsCollateralIdRequest'; + + +/** + * PutLoansLoanIdCollateralsCollateralIdResponse + */ +export interface PutLoansLoanIdCollateralsCollateralIdResponse { + changes?: PutLoansLoandIdCollateralsCollateralIdRequest; + loanId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putLoansLoanIdDisbursementData.ts b/packages/fineract-client/src/models/putLoansLoanIdDisbursementData.ts new file mode 100644 index 0000000000..18f0dbb953 --- /dev/null +++ b/packages/fineract-client/src/models/putLoansLoanIdDisbursementData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutLoansLoanIdDisbursementData { + dateFormat?: string; + expectedDisbursementDate?: string; + interestType?: number; + isEqualAmortization?: boolean; + locale?: string; + netDisbursalAmount?: number; + principal?: number; +} + diff --git a/packages/fineract-client/src/models/putLoansLoanIdRequest.ts b/packages/fineract-client/src/models/putLoansLoanIdRequest.ts new file mode 100644 index 0000000000..7d8ec760f3 --- /dev/null +++ b/packages/fineract-client/src/models/putLoansLoanIdRequest.ts @@ -0,0 +1,56 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutLoansLoanIdDisbursementData } from './putLoansLoanIdDisbursementData'; +import { PutLoansLoanIdCollateral } from './putLoansLoanIdCollateral'; +import { PutLoansLoanIdChanges } from './putLoansLoanIdChanges'; + + +/** + * PutLoansLoanIdRequest + */ +export interface PutLoansLoanIdRequest { + amortizationType?: number; + charges?: Array; + clientId?: number; + collateral?: Array; + createStandingInstructionAtDisbursement?: boolean; + dateFormat?: string; + disbursementData?: Array; + expectedDisbursementDate?: string; + fixedPrincipalPercentagePerInstallment?: number; + fraud?: boolean; + graceOnArrearsAgeing?: number; + interestCalculationPeriodType?: number; + interestChargedFromDate?: string; + interestRatePerPeriod?: number; + interestType?: number; + isEqualAmortization?: boolean; + isTopup?: boolean; + linkAccountId?: number; + loanIdToClose?: number; + loanTermFrequency?: number; + loanTermFrequencyType?: number; + loanType?: string; + locale?: string; + maxOutstandingLoanBalance?: number; + numberOfRepayments?: number; + principal?: number; + productId?: number; + repaymentEvery?: number; + repaymentFrequencyDayOfWeekType?: number; + repaymentFrequencyNthDayType?: number; + repaymentFrequencyType?: number; + repaymentsStartingFromDate?: string; + submittedOnDate?: string; + transactionProcessingStrategyCode?: string; +} + diff --git a/packages/fineract-client/src/models/putLoansLoanIdResponse.ts b/packages/fineract-client/src/models/putLoansLoanIdResponse.ts new file mode 100644 index 0000000000..44788b0ec0 --- /dev/null +++ b/packages/fineract-client/src/models/putLoansLoanIdResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutLoansLoanIdChanges } from './putLoansLoanIdChanges'; + + +/** + * PutLoansLoanIdResponse + */ +export interface PutLoansLoanIdResponse { + changes?: PutLoansLoanIdChanges; + clientId?: number; + loanId?: number; + officeId?: number; + resourceExternalId?: string; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putLoansLoandIdCollateralsCollateralIdRequest.ts b/packages/fineract-client/src/models/putLoansLoandIdCollateralsCollateralIdRequest.ts new file mode 100644 index 0000000000..3ad56e49fe --- /dev/null +++ b/packages/fineract-client/src/models/putLoansLoandIdCollateralsCollateralIdRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutLoansLoandIdCollateralsCollateralIdRequest + */ +export interface PutLoansLoandIdCollateralsCollateralIdRequest { + description?: string; +} + diff --git a/packages/fineract-client/src/models/putNotesChanges.ts b/packages/fineract-client/src/models/putNotesChanges.ts new file mode 100644 index 0000000000..c33ac15e48 --- /dev/null +++ b/packages/fineract-client/src/models/putNotesChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutNotesChanges { + note?: string; +} + diff --git a/packages/fineract-client/src/models/putOfficesOfficeIdRequest.ts b/packages/fineract-client/src/models/putOfficesOfficeIdRequest.ts new file mode 100644 index 0000000000..d0aaee389b --- /dev/null +++ b/packages/fineract-client/src/models/putOfficesOfficeIdRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutOfficesOfficeIdRequest + */ +export interface PutOfficesOfficeIdRequest { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putOfficesOfficeIdResponse.ts b/packages/fineract-client/src/models/putOfficesOfficeIdResponse.ts new file mode 100644 index 0000000000..3f1d451c9c --- /dev/null +++ b/packages/fineract-client/src/models/putOfficesOfficeIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutOfficesOfficeIdResponseChanges } from './putOfficesOfficeIdResponseChanges'; + + +/** + * PutOfficesOfficeIdResponse + */ +export interface PutOfficesOfficeIdResponse { + changes?: PutOfficesOfficeIdResponseChanges; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putOfficesOfficeIdResponseChanges.ts b/packages/fineract-client/src/models/putOfficesOfficeIdResponseChanges.ts new file mode 100644 index 0000000000..addf2803a8 --- /dev/null +++ b/packages/fineract-client/src/models/putOfficesOfficeIdResponseChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutOfficesOfficeIdResponseChanges { + name?: string; +} + diff --git a/packages/fineract-client/src/models/putPasswordPreferencesTemplateRequest.ts b/packages/fineract-client/src/models/putPasswordPreferencesTemplateRequest.ts new file mode 100644 index 0000000000..cfb48ce1cc --- /dev/null +++ b/packages/fineract-client/src/models/putPasswordPreferencesTemplateRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutPasswordPreferencesTemplateRequest + */ +export interface PutPasswordPreferencesTemplateRequest { + validationPolicyId?: number; +} + diff --git a/packages/fineract-client/src/models/putPaymentTypesPaymentTypeIdRequest.ts b/packages/fineract-client/src/models/putPaymentTypesPaymentTypeIdRequest.ts new file mode 100644 index 0000000000..22b921ac2b --- /dev/null +++ b/packages/fineract-client/src/models/putPaymentTypesPaymentTypeIdRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutPaymentTypesPaymentTypeIdRequest + */ +export interface PutPaymentTypesPaymentTypeIdRequest { + codeName?: string; + description?: string; + isCashPayment?: boolean; + isSystemDefined?: boolean; + name?: string; + position?: number; +} + diff --git a/packages/fineract-client/src/models/putPaymentTypesPaymentTypeIdResponse.ts b/packages/fineract-client/src/models/putPaymentTypesPaymentTypeIdResponse.ts new file mode 100644 index 0000000000..a86a19f4d0 --- /dev/null +++ b/packages/fineract-client/src/models/putPaymentTypesPaymentTypeIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutPaymentTypesPaymentTypeIdResponse + */ +export interface PutPaymentTypesPaymentTypeIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putPermissionsRequest.ts b/packages/fineract-client/src/models/putPermissionsRequest.ts new file mode 100644 index 0000000000..0ea7d53aa6 --- /dev/null +++ b/packages/fineract-client/src/models/putPermissionsRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutPermissionsRequest + */ +export interface PutPermissionsRequest { + permissions?: { [key: string]: boolean; }; +} + diff --git a/packages/fineract-client/src/models/putProductsChanges.ts b/packages/fineract-client/src/models/putProductsChanges.ts new file mode 100644 index 0000000000..5a3de02791 --- /dev/null +++ b/packages/fineract-client/src/models/putProductsChanges.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutProductsChanges { + description?: string; + locale?: string; + unitPrice?: number; +} + diff --git a/packages/fineract-client/src/models/putProductsTypeProductIdRequest.ts b/packages/fineract-client/src/models/putProductsTypeProductIdRequest.ts new file mode 100644 index 0000000000..f6a14c2fa5 --- /dev/null +++ b/packages/fineract-client/src/models/putProductsTypeProductIdRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutProductsTypeProductIdRequest + */ +export interface PutProductsTypeProductIdRequest { + description?: string; + locale?: string; + unitPrice?: number; +} + diff --git a/packages/fineract-client/src/models/putProductsTypeProductIdResponse.ts b/packages/fineract-client/src/models/putProductsTypeProductIdResponse.ts new file mode 100644 index 0000000000..1966eda760 --- /dev/null +++ b/packages/fineract-client/src/models/putProductsTypeProductIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutProductsChanges } from './putProductsChanges'; + + +/** + * PutProductsTypeProductIdResponse + */ +export interface PutProductsTypeProductIdResponse { + changes?: PutProductsChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putProvisioningCriteriaRequest.ts b/packages/fineract-client/src/models/putProvisioningCriteriaRequest.ts new file mode 100644 index 0000000000..8d3776598b --- /dev/null +++ b/packages/fineract-client/src/models/putProvisioningCriteriaRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ProvisioningCriteriaDefinitionData } from './provisioningCriteriaDefinitionData'; +import { LoanProductData } from './loanProductData'; + + +/** + * PutProvisioningCriteriaRequest + */ +export interface PutProvisioningCriteriaRequest { + criteriaName?: string; + loanProducts?: Array; + provisioningcriteria?: Array; +} + diff --git a/packages/fineract-client/src/models/putProvisioningCriteriaResponse.ts b/packages/fineract-client/src/models/putProvisioningCriteriaResponse.ts new file mode 100644 index 0000000000..9579510566 --- /dev/null +++ b/packages/fineract-client/src/models/putProvisioningCriteriaResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutProvisioningCriteriaResponseChanges } from './putProvisioningCriteriaResponseChanges'; + + +/** + * PutProvisioningCriteriaResponse + */ +export interface PutProvisioningCriteriaResponse { + changes?: PutProvisioningCriteriaResponseChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putProvisioningCriteriaResponseChanges.ts b/packages/fineract-client/src/models/putProvisioningCriteriaResponseChanges.ts new file mode 100644 index 0000000000..c1d9925331 --- /dev/null +++ b/packages/fineract-client/src/models/putProvisioningCriteriaResponseChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutProvisioningCriteriaResponseChanges { + criteriaName?: string; +} + diff --git a/packages/fineract-client/src/models/putProvisioningEntriesRequest.ts b/packages/fineract-client/src/models/putProvisioningEntriesRequest.ts new file mode 100644 index 0000000000..307e8f61bc --- /dev/null +++ b/packages/fineract-client/src/models/putProvisioningEntriesRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutProvisioningEntriesRequest + */ +export interface PutProvisioningEntriesRequest { + command?: string; +} + diff --git a/packages/fineract-client/src/models/putProvisioningEntriesResponse.ts b/packages/fineract-client/src/models/putProvisioningEntriesResponse.ts new file mode 100644 index 0000000000..f72e5d452d --- /dev/null +++ b/packages/fineract-client/src/models/putProvisioningEntriesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutProvisioningEntriesResponse + */ +export interface PutProvisioningEntriesResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putRecurringDepositAccountsAccountIdRequest.ts b/packages/fineract-client/src/models/putRecurringDepositAccountsAccountIdRequest.ts new file mode 100644 index 0000000000..f1062be121 --- /dev/null +++ b/packages/fineract-client/src/models/putRecurringDepositAccountsAccountIdRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutRecurringDepositAccountsAccountIdRequest + */ +export interface PutRecurringDepositAccountsAccountIdRequest { + depositAmount?: number; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/putRecurringDepositAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/putRecurringDepositAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..0490150285 --- /dev/null +++ b/packages/fineract-client/src/models/putRecurringDepositAccountsAccountIdResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutRecurringDepositAccountsChanges } from './putRecurringDepositAccountsChanges'; + + +/** + * PutRecurringDepositAccountsAccountIdResponse + */ +export interface PutRecurringDepositAccountsAccountIdResponse { + changes?: PutRecurringDepositAccountsChanges; + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/putRecurringDepositAccountsChanges.ts b/packages/fineract-client/src/models/putRecurringDepositAccountsChanges.ts new file mode 100644 index 0000000000..fe58af6af4 --- /dev/null +++ b/packages/fineract-client/src/models/putRecurringDepositAccountsChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutRecurringDepositAccountsChanges { + depositAmount?: number; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/putRecurringDepositProductsChanges.ts b/packages/fineract-client/src/models/putRecurringDepositProductsChanges.ts new file mode 100644 index 0000000000..8ff0bd915a --- /dev/null +++ b/packages/fineract-client/src/models/putRecurringDepositProductsChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutRecurringDepositProductsChanges { + description?: string; + minDepositTerm?: number; +} + diff --git a/packages/fineract-client/src/models/putRecurringDepositProductsRequest.ts b/packages/fineract-client/src/models/putRecurringDepositProductsRequest.ts new file mode 100644 index 0000000000..8bfba5a941 --- /dev/null +++ b/packages/fineract-client/src/models/putRecurringDepositProductsRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutRecurringDepositProductsRequest + */ +export interface PutRecurringDepositProductsRequest { + description?: string; + locale?: string; + minDepositTerm?: number; + minDepositTermTypeId?: number; +} + diff --git a/packages/fineract-client/src/models/putRecurringDepositProductsResponse.ts b/packages/fineract-client/src/models/putRecurringDepositProductsResponse.ts new file mode 100644 index 0000000000..e83120b2e6 --- /dev/null +++ b/packages/fineract-client/src/models/putRecurringDepositProductsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutRecurringDepositProductsChanges } from './putRecurringDepositProductsChanges'; + + +/** + * PutRecurringDepositProductsResponse + */ +export interface PutRecurringDepositProductsResponse { + changes?: PutRecurringDepositProductsChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putReportMailingJobsRequest.ts b/packages/fineract-client/src/models/putReportMailingJobsRequest.ts new file mode 100644 index 0000000000..4c559a45b0 --- /dev/null +++ b/packages/fineract-client/src/models/putReportMailingJobsRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutReportMailingJobsRequest + */ +export interface PutReportMailingJobsRequest { + dateFormat?: string; + locale?: string; + startDateTime?: string; +} + diff --git a/packages/fineract-client/src/models/putReportMailingJobsResponse.ts b/packages/fineract-client/src/models/putReportMailingJobsResponse.ts new file mode 100644 index 0000000000..b1287187af --- /dev/null +++ b/packages/fineract-client/src/models/putReportMailingJobsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutReportMailingJobsResponseChanges } from './putReportMailingJobsResponseChanges'; + + +/** + * PutReportMailingJobsResponse + */ +export interface PutReportMailingJobsResponse { + changes?: PutReportMailingJobsResponseChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putReportMailingJobsResponseChanges.ts b/packages/fineract-client/src/models/putReportMailingJobsResponseChanges.ts new file mode 100644 index 0000000000..d65ee958f1 --- /dev/null +++ b/packages/fineract-client/src/models/putReportMailingJobsResponseChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutReportMailingJobsResponseChanges { + startDateTime?: string; +} + diff --git a/packages/fineract-client/src/models/putReportRequest.ts b/packages/fineract-client/src/models/putReportRequest.ts new file mode 100644 index 0000000000..485f64ea30 --- /dev/null +++ b/packages/fineract-client/src/models/putReportRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutReportRequest + */ +export interface PutReportRequest { + reportName?: string; + reportParameters?: Array; +} + diff --git a/packages/fineract-client/src/models/putReportResponse.ts b/packages/fineract-client/src/models/putReportResponse.ts new file mode 100644 index 0000000000..8338e321fc --- /dev/null +++ b/packages/fineract-client/src/models/putReportResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutReportResponseChanges } from './putReportResponseChanges'; + + +/** + * PutReportResponse + */ +export interface PutReportResponse { + changes?: PutReportResponseChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putReportResponseChanges.ts b/packages/fineract-client/src/models/putReportResponseChanges.ts new file mode 100644 index 0000000000..1e5e848859 --- /dev/null +++ b/packages/fineract-client/src/models/putReportResponseChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutReportResponseChanges { + reportName?: string; + reportParameters?: Array; +} + diff --git a/packages/fineract-client/src/models/putResourceTypeResourceIdNotesNoteIdRequest.ts b/packages/fineract-client/src/models/putResourceTypeResourceIdNotesNoteIdRequest.ts new file mode 100644 index 0000000000..cf5fd1b4f0 --- /dev/null +++ b/packages/fineract-client/src/models/putResourceTypeResourceIdNotesNoteIdRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutResourceTypeResourceIdNotesNoteIdRequest + */ +export interface PutResourceTypeResourceIdNotesNoteIdRequest { + note?: string; +} + diff --git a/packages/fineract-client/src/models/putResourceTypeResourceIdNotesNoteIdResponse.ts b/packages/fineract-client/src/models/putResourceTypeResourceIdNotesNoteIdResponse.ts new file mode 100644 index 0000000000..8101c6f621 --- /dev/null +++ b/packages/fineract-client/src/models/putResourceTypeResourceIdNotesNoteIdResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutNotesChanges } from './putNotesChanges'; + + +/** + * PutResourceTypeResourceIdNotesNoteIdResponse + */ +export interface PutResourceTypeResourceIdNotesNoteIdResponse { + changes?: PutNotesChanges; + clientId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putRolesRoleIdPermissionsRequest.ts b/packages/fineract-client/src/models/putRolesRoleIdPermissionsRequest.ts new file mode 100644 index 0000000000..68beddae48 --- /dev/null +++ b/packages/fineract-client/src/models/putRolesRoleIdPermissionsRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutRolesRoleIdPermissionsRequest + */ +export interface PutRolesRoleIdPermissionsRequest { + permissions?: { [key: string]: boolean; }; +} + diff --git a/packages/fineract-client/src/models/putRolesRoleIdPermissionsResponse.ts b/packages/fineract-client/src/models/putRolesRoleIdPermissionsResponse.ts new file mode 100644 index 0000000000..533da23c09 --- /dev/null +++ b/packages/fineract-client/src/models/putRolesRoleIdPermissionsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutRolesRoleIdPermissionsResponsePermissionsChanges } from './putRolesRoleIdPermissionsResponsePermissionsChanges'; + + +/** + * PutRolesRoleIdPermissionsResponse + */ +export interface PutRolesRoleIdPermissionsResponse { + changes?: PutRolesRoleIdPermissionsResponsePermissionsChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putRolesRoleIdPermissionsResponsePermissionsChanges.ts b/packages/fineract-client/src/models/putRolesRoleIdPermissionsResponsePermissionsChanges.ts new file mode 100644 index 0000000000..5e474200f6 --- /dev/null +++ b/packages/fineract-client/src/models/putRolesRoleIdPermissionsResponsePermissionsChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutRolesRoleIdPermissionsResponsePermissionsChanges { + permissions?: { [key: string]: boolean; }; +} + diff --git a/packages/fineract-client/src/models/putRolesRoleIdRequest.ts b/packages/fineract-client/src/models/putRolesRoleIdRequest.ts new file mode 100644 index 0000000000..51d5017a24 --- /dev/null +++ b/packages/fineract-client/src/models/putRolesRoleIdRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutRolesRoleIdRequest + */ +export interface PutRolesRoleIdRequest { + description?: string; +} + diff --git a/packages/fineract-client/src/models/putRolesRoleIdResponse.ts b/packages/fineract-client/src/models/putRolesRoleIdResponse.ts new file mode 100644 index 0000000000..a24f015fda --- /dev/null +++ b/packages/fineract-client/src/models/putRolesRoleIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutRolesRoleIdResponseChanges } from './putRolesRoleIdResponseChanges'; + + +/** + * PutRolesRoleIdResponse + */ +export interface PutRolesRoleIdResponse { + changes?: PutRolesRoleIdResponseChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putRolesRoleIdResponseChanges.ts b/packages/fineract-client/src/models/putRolesRoleIdResponseChanges.ts new file mode 100644 index 0000000000..12eb93cc51 --- /dev/null +++ b/packages/fineract-client/src/models/putRolesRoleIdResponseChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutRolesRoleIdResponseChanges { + description?: string; +} + diff --git a/packages/fineract-client/src/models/putSavingsAccountsAccountIdRequest.ts b/packages/fineract-client/src/models/putSavingsAccountsAccountIdRequest.ts new file mode 100644 index 0000000000..58ddea0914 --- /dev/null +++ b/packages/fineract-client/src/models/putSavingsAccountsAccountIdRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutSavingsAccountsAccountIdRequest + */ +export interface PutSavingsAccountsAccountIdRequest { + locale?: string; + nominalAnnualInterestRate?: number; +} + diff --git a/packages/fineract-client/src/models/putSavingsAccountsAccountIdResponse.ts b/packages/fineract-client/src/models/putSavingsAccountsAccountIdResponse.ts new file mode 100644 index 0000000000..c1844e957c --- /dev/null +++ b/packages/fineract-client/src/models/putSavingsAccountsAccountIdResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutSavingsAccountsChanges } from './putSavingsAccountsChanges'; + + +/** + * PutSavingsAccountsAccountIdResponse + */ +export interface PutSavingsAccountsAccountIdResponse { + changes?: PutSavingsAccountsChanges; + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/putSavingsAccountsChanges.ts b/packages/fineract-client/src/models/putSavingsAccountsChanges.ts new file mode 100644 index 0000000000..4167a456c4 --- /dev/null +++ b/packages/fineract-client/src/models/putSavingsAccountsChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutSavingsAccountsChanges { + locale?: string; + nominalAnnualInterestRate?: number; +} + diff --git a/packages/fineract-client/src/models/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest.ts b/packages/fineract-client/src/models/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest.ts new file mode 100644 index 0000000000..0001064ae5 --- /dev/null +++ b/packages/fineract-client/src/models/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest + */ +export interface PutSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest { + amount?: number; + dateFormat?: string; + dueDate?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts b/packages/fineract-client/src/models/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts new file mode 100644 index 0000000000..5f1e08bfc7 --- /dev/null +++ b/packages/fineract-client/src/models/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutSavingsChanges } from './putSavingsChanges'; + + +/** + * PutSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse + */ +export interface PutSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse { + changes?: PutSavingsChanges; + clientId?: number; + officeId?: number; + resourceId?: number; + savingsId?: number; +} + diff --git a/packages/fineract-client/src/models/putSavingsChanges.ts b/packages/fineract-client/src/models/putSavingsChanges.ts new file mode 100644 index 0000000000..d56e472c52 --- /dev/null +++ b/packages/fineract-client/src/models/putSavingsChanges.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutSavingsChanges { + description?: string; + interestRate?: number; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/putSavingsProductsProductIdRequest.ts b/packages/fineract-client/src/models/putSavingsProductsProductIdRequest.ts new file mode 100644 index 0000000000..8fec58092b --- /dev/null +++ b/packages/fineract-client/src/models/putSavingsProductsProductIdRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutSavingsProductsProductIdRequest + */ +export interface PutSavingsProductsProductIdRequest { + description?: string; + interestRate?: number; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/putSavingsProductsProductIdResponse.ts b/packages/fineract-client/src/models/putSavingsProductsProductIdResponse.ts new file mode 100644 index 0000000000..fa9410b132 --- /dev/null +++ b/packages/fineract-client/src/models/putSavingsProductsProductIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutSavingsChanges } from './putSavingsChanges'; + + +/** + * PutSavingsProductsProductIdResponse + */ +export interface PutSavingsProductsProductIdResponse { + changes?: PutSavingsChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putSelfBeneficiariesChanges.ts b/packages/fineract-client/src/models/putSelfBeneficiariesChanges.ts new file mode 100644 index 0000000000..025f029bc4 --- /dev/null +++ b/packages/fineract-client/src/models/putSelfBeneficiariesChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutSelfBeneficiariesChanges { + name?: string; + transferLimit?: number; +} + diff --git a/packages/fineract-client/src/models/putSelfBeneficiariesTPTBeneficiaryIdRequest.ts b/packages/fineract-client/src/models/putSelfBeneficiariesTPTBeneficiaryIdRequest.ts new file mode 100644 index 0000000000..c41c792c97 --- /dev/null +++ b/packages/fineract-client/src/models/putSelfBeneficiariesTPTBeneficiaryIdRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutSelfBeneficiariesTPTBeneficiaryIdRequest + */ +export interface PutSelfBeneficiariesTPTBeneficiaryIdRequest { + name?: string; + transferLimit?: number; +} + diff --git a/packages/fineract-client/src/models/putSelfBeneficiariesTPTBeneficiaryIdResponse.ts b/packages/fineract-client/src/models/putSelfBeneficiariesTPTBeneficiaryIdResponse.ts new file mode 100644 index 0000000000..c2f83520cf --- /dev/null +++ b/packages/fineract-client/src/models/putSelfBeneficiariesTPTBeneficiaryIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutSelfBeneficiariesChanges } from './putSelfBeneficiariesChanges'; + + +/** + * PutSelfBeneficiariesTPTBeneficiaryIdResponse + */ +export interface PutSelfBeneficiariesTPTBeneficiaryIdResponse { + changes?: PutSelfBeneficiariesChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putSelfLoansChanges.ts b/packages/fineract-client/src/models/putSelfLoansChanges.ts new file mode 100644 index 0000000000..976fc753b7 --- /dev/null +++ b/packages/fineract-client/src/models/putSelfLoansChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutSelfLoansChanges { + locale?: string; + principal?: number; +} + diff --git a/packages/fineract-client/src/models/putSelfLoansLoanIdRequest.ts b/packages/fineract-client/src/models/putSelfLoansLoanIdRequest.ts new file mode 100644 index 0000000000..b75c944594 --- /dev/null +++ b/packages/fineract-client/src/models/putSelfLoansLoanIdRequest.ts @@ -0,0 +1,34 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutSelfLoansLoanIdRequest + */ +export interface PutSelfLoansLoanIdRequest { + amortizationType?: number; + dateFormat?: string; + expectedDisbursementDate?: string; + interestCalculationPeriodType?: number; + interestRatePerPeriod?: number; + interestType?: number; + loanTermFrequency?: number; + loanTermFrequencyType?: number; + locale?: string; + numberOfRepayments?: number; + principal?: number; + productId?: number; + repaymentEvery?: number; + repaymentFrequencyType?: number; + transactionProcessingStrategyCode?: string; +} + diff --git a/packages/fineract-client/src/models/putSelfLoansLoanIdResponse.ts b/packages/fineract-client/src/models/putSelfLoansLoanIdResponse.ts new file mode 100644 index 0000000000..502bd16fdd --- /dev/null +++ b/packages/fineract-client/src/models/putSelfLoansLoanIdResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutSelfLoansChanges } from './putSelfLoansChanges'; + + +/** + * PutSelfLoansLoanIdResponse + */ +export interface PutSelfLoansLoanIdResponse { + changes?: PutSelfLoansChanges; + clientId?: number; + loanId?: number; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putSelfUserChanges.ts b/packages/fineract-client/src/models/putSelfUserChanges.ts new file mode 100644 index 0000000000..ec33f1f4c7 --- /dev/null +++ b/packages/fineract-client/src/models/putSelfUserChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutSelfUserChanges { + passwordEncoded?: string; +} + diff --git a/packages/fineract-client/src/models/putSelfUserRequest.ts b/packages/fineract-client/src/models/putSelfUserRequest.ts new file mode 100644 index 0000000000..9048d7e064 --- /dev/null +++ b/packages/fineract-client/src/models/putSelfUserRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutSelfUserRequest + */ +export interface PutSelfUserRequest { + password?: string; + repeatPassword?: string; +} + diff --git a/packages/fineract-client/src/models/putSelfUserResponse.ts b/packages/fineract-client/src/models/putSelfUserResponse.ts new file mode 100644 index 0000000000..f0e4847259 --- /dev/null +++ b/packages/fineract-client/src/models/putSelfUserResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutSelfUserChanges } from './putSelfUserChanges'; + + +/** + * PutSelfUserResponse + */ +export interface PutSelfUserResponse { + changes?: PutSelfUserChanges; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putStaffRequest.ts b/packages/fineract-client/src/models/putStaffRequest.ts new file mode 100644 index 0000000000..593fc9dd92 --- /dev/null +++ b/packages/fineract-client/src/models/putStaffRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutStaffRequest + */ +export interface PutStaffRequest { + externalId?: string; + isLoanOfficer?: boolean; +} + diff --git a/packages/fineract-client/src/models/putStandingInstructionsStandingInstructionIdRequest.ts b/packages/fineract-client/src/models/putStandingInstructionsStandingInstructionIdRequest.ts new file mode 100644 index 0000000000..61445b7ff3 --- /dev/null +++ b/packages/fineract-client/src/models/putStandingInstructionsStandingInstructionIdRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutStandingInstructionsStandingInstructionIdRequest + */ +export interface PutStandingInstructionsStandingInstructionIdRequest { + recurrenceInterval?: number; +} + diff --git a/packages/fineract-client/src/models/putStandingInstructionsStandingInstructionIdResponse.ts b/packages/fineract-client/src/models/putStandingInstructionsStandingInstructionIdResponse.ts new file mode 100644 index 0000000000..a0a8444b95 --- /dev/null +++ b/packages/fineract-client/src/models/putStandingInstructionsStandingInstructionIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutUpdateStandingInstructionChanges } from './putUpdateStandingInstructionChanges'; + + +/** + * PutStandingInstructionsStandingInstructionIdResponse + */ +export interface PutStandingInstructionsStandingInstructionIdResponse { + changes?: PutUpdateStandingInstructionChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putTaxesComponentsChanges.ts b/packages/fineract-client/src/models/putTaxesComponentsChanges.ts new file mode 100644 index 0000000000..98980131cd --- /dev/null +++ b/packages/fineract-client/src/models/putTaxesComponentsChanges.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutTaxesComponentsChanges { + name?: string; + percentage?: number; + startDate?: string; +} + diff --git a/packages/fineract-client/src/models/putTaxesComponentsTaxComponentIdRequest.ts b/packages/fineract-client/src/models/putTaxesComponentsTaxComponentIdRequest.ts new file mode 100644 index 0000000000..1568ec245f --- /dev/null +++ b/packages/fineract-client/src/models/putTaxesComponentsTaxComponentIdRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutTaxesComponentsTaxComponentIdRequest + */ +export interface PutTaxesComponentsTaxComponentIdRequest { + dateFormat?: string; + locale?: string; + name?: string; + percentage?: number; + startDate?: string; +} + diff --git a/packages/fineract-client/src/models/putTaxesComponentsTaxComponentIdResponse.ts b/packages/fineract-client/src/models/putTaxesComponentsTaxComponentIdResponse.ts new file mode 100644 index 0000000000..15437355e8 --- /dev/null +++ b/packages/fineract-client/src/models/putTaxesComponentsTaxComponentIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutTaxesComponentsChanges } from './putTaxesComponentsChanges'; + + +/** + * PutTaxesComponentsTaxComponentIdResponse + */ +export interface PutTaxesComponentsTaxComponentIdResponse { + changes?: PutTaxesComponentsChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putTaxesGroupChanges.ts b/packages/fineract-client/src/models/putTaxesGroupChanges.ts new file mode 100644 index 0000000000..3fe676a5bc --- /dev/null +++ b/packages/fineract-client/src/models/putTaxesGroupChanges.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutTaxesGroupModifiedComponents } from './putTaxesGroupModifiedComponents'; + + +export interface PutTaxesGroupChanges { + addComponents?: Array; + modifiedComponents?: Set; + name?: string; +} + diff --git a/packages/fineract-client/src/models/putTaxesGroupModifiedComponents.ts b/packages/fineract-client/src/models/putTaxesGroupModifiedComponents.ts new file mode 100644 index 0000000000..7555f16d5b --- /dev/null +++ b/packages/fineract-client/src/models/putTaxesGroupModifiedComponents.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutTaxesGroupModifiedComponents { + endDate?: string; + taxComponentId?: number; +} + diff --git a/packages/fineract-client/src/models/putTaxesGroupTaxComponents.ts b/packages/fineract-client/src/models/putTaxesGroupTaxComponents.ts new file mode 100644 index 0000000000..a19feb25b6 --- /dev/null +++ b/packages/fineract-client/src/models/putTaxesGroupTaxComponents.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutTaxesGroupTaxComponents { + endDate?: string; + id?: number; + taxComponentId?: number; +} + diff --git a/packages/fineract-client/src/models/putTaxesGroupTaxGroupIdRequest.ts b/packages/fineract-client/src/models/putTaxesGroupTaxGroupIdRequest.ts new file mode 100644 index 0000000000..228b7eea77 --- /dev/null +++ b/packages/fineract-client/src/models/putTaxesGroupTaxGroupIdRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutTaxesGroupTaxComponents } from './putTaxesGroupTaxComponents'; + + +/** + * PutTaxesGroupTaxGroupIdRequest + */ +export interface PutTaxesGroupTaxGroupIdRequest { + dateFormat?: string; + locale?: string; + name?: string; + taxComponents?: Set; +} + diff --git a/packages/fineract-client/src/models/putTaxesGroupTaxGroupIdResponse.ts b/packages/fineract-client/src/models/putTaxesGroupTaxGroupIdResponse.ts new file mode 100644 index 0000000000..a83ff67978 --- /dev/null +++ b/packages/fineract-client/src/models/putTaxesGroupTaxGroupIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutTaxesGroupChanges } from './putTaxesGroupChanges'; + + +/** + * PutTaxesGroupTaxGroupIdResponse + */ +export interface PutTaxesGroupTaxGroupIdResponse { + changes?: PutTaxesGroupChanges; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putTellersRequest.ts b/packages/fineract-client/src/models/putTellersRequest.ts new file mode 100644 index 0000000000..fda0ac9102 --- /dev/null +++ b/packages/fineract-client/src/models/putTellersRequest.ts @@ -0,0 +1,38 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutTellersRequest + */ +export interface PutTellersRequest { + dateFormat?: string; + description?: string; + endDate?: string; + locale?: string; + name?: string; + officeId?: number; + startDate?: string; + status?: PutTellersRequest.StatusEnum; +} +export namespace PutTellersRequest { + export type StatusEnum = 'INVALID' | 'PENDING' | 'ACTIVE' | 'INACTIVE' | 'CLOSED'; + export const StatusEnum = { + Invalid: 'INVALID' as StatusEnum, + Pending: 'PENDING' as StatusEnum, + Active: 'ACTIVE' as StatusEnum, + Inactive: 'INACTIVE' as StatusEnum, + Closed: 'CLOSED' as StatusEnum + }; +} + + diff --git a/packages/fineract-client/src/models/putTellersResponse.ts b/packages/fineract-client/src/models/putTellersResponse.ts new file mode 100644 index 0000000000..c208b5470a --- /dev/null +++ b/packages/fineract-client/src/models/putTellersResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutTellersResponseChanges } from './putTellersResponseChanges'; + + +/** + * PutTellersResponse + */ +export interface PutTellersResponse { + changes?: PutTellersResponseChanges; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putTellersResponseChanges.ts b/packages/fineract-client/src/models/putTellersResponseChanges.ts new file mode 100644 index 0000000000..556914d19d --- /dev/null +++ b/packages/fineract-client/src/models/putTellersResponseChanges.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutTellersResponseChanges { + dateFormat?: string; + description?: string; + endDate?: string; + locale?: string; + startDate?: string; +} + diff --git a/packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdRequest.ts b/packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdRequest.ts new file mode 100644 index 0000000000..3799d48cd6 --- /dev/null +++ b/packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutTellersTellerIdCashiersCashierIdRequest + */ +export interface PutTellersTellerIdCashiersCashierIdRequest { + dateFormat?: string; + description?: string; + endDate?: string; + isFullDay?: boolean; + locale?: string; + staffId?: number; + startDate?: string; +} + diff --git a/packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdResponse.ts b/packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdResponse.ts new file mode 100644 index 0000000000..f0a8f71730 --- /dev/null +++ b/packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutTellersTellerIdCashiersCashierIdResponseChanges } from './putTellersTellerIdCashiersCashierIdResponseChanges'; + + +/** + * PutTellersTellerIdCashiersCashierIdResponse + */ +export interface PutTellersTellerIdCashiersCashierIdResponse { + changes?: PutTellersTellerIdCashiersCashierIdResponseChanges; + resourceId?: number; + subResourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdResponseChanges.ts b/packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdResponseChanges.ts new file mode 100644 index 0000000000..8f870001fc --- /dev/null +++ b/packages/fineract-client/src/models/putTellersTellerIdCashiersCashierIdResponseChanges.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutTellersTellerIdCashiersCashierIdResponseChanges { + dateFormat?: string; + description?: string; + endDate?: string; + locale?: string; +} + diff --git a/packages/fineract-client/src/models/putTemplatesTemplateIdRequest.ts b/packages/fineract-client/src/models/putTemplatesTemplateIdRequest.ts new file mode 100644 index 0000000000..b7c9bd9e31 --- /dev/null +++ b/packages/fineract-client/src/models/putTemplatesTemplateIdRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TemplateMapper } from './templateMapper'; + + +/** + * PutTemplatesTemplateIdRequest + */ +export interface PutTemplatesTemplateIdRequest { + entity?: number; + id?: number; + mappers?: Array; + name?: string; + text?: string; + type?: number; +} + diff --git a/packages/fineract-client/src/models/putTemplatesTemplateIdResponse.ts b/packages/fineract-client/src/models/putTemplatesTemplateIdResponse.ts new file mode 100644 index 0000000000..407ea67da0 --- /dev/null +++ b/packages/fineract-client/src/models/putTemplatesTemplateIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutTemplatesTemplateIdResponse + */ +export interface PutTemplatesTemplateIdResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putUpdateStandingInstructionChanges.ts b/packages/fineract-client/src/models/putUpdateStandingInstructionChanges.ts new file mode 100644 index 0000000000..7e8b437d76 --- /dev/null +++ b/packages/fineract-client/src/models/putUpdateStandingInstructionChanges.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutUpdateStandingInstructionChanges { + recurrenceInterval?: number; +} + diff --git a/packages/fineract-client/src/models/putUsersUserIdRequest.ts b/packages/fineract-client/src/models/putUsersUserIdRequest.ts new file mode 100644 index 0000000000..af9e9edfc7 --- /dev/null +++ b/packages/fineract-client/src/models/putUsersUserIdRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutUsersUserIdRequest + */ +export interface PutUsersUserIdRequest { + firstname?: string; + password?: string; + repeatPassword?: string; +} + diff --git a/packages/fineract-client/src/models/putUsersUserIdResponse.ts b/packages/fineract-client/src/models/putUsersUserIdResponse.ts new file mode 100644 index 0000000000..93a478df24 --- /dev/null +++ b/packages/fineract-client/src/models/putUsersUserIdResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PutUsersUserIdResponseChanges } from './putUsersUserIdResponseChanges'; + + +/** + * PutUsersUserIdResponse + */ +export interface PutUsersUserIdResponse { + changes?: PutUsersUserIdResponseChanges; + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/putUsersUserIdResponseChanges.ts b/packages/fineract-client/src/models/putUsersUserIdResponseChanges.ts new file mode 100644 index 0000000000..516036cf9d --- /dev/null +++ b/packages/fineract-client/src/models/putUsersUserIdResponseChanges.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface PutUsersUserIdResponseChanges { + firstname?: string; + passwordEncoded?: string; +} + diff --git a/packages/fineract-client/src/models/putWorkingDaysRequest.ts b/packages/fineract-client/src/models/putWorkingDaysRequest.ts new file mode 100644 index 0000000000..b1b833f79a --- /dev/null +++ b/packages/fineract-client/src/models/putWorkingDaysRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +/** + * PutWorkingDaysRequest + */ +export interface PutWorkingDaysRequest { + extendTermForDailyRepayments?: boolean; + locale?: string; + recurrence?: string; + repaymentRescheduleType?: EnumOptionData; +} + diff --git a/packages/fineract-client/src/models/putWorkingDaysResponse.ts b/packages/fineract-client/src/models/putWorkingDaysResponse.ts new file mode 100644 index 0000000000..83fd38911e --- /dev/null +++ b/packages/fineract-client/src/models/putWorkingDaysResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutWorkingDaysResponse + */ +export interface PutWorkingDaysResponse { + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/question.ts b/packages/fineract-client/src/models/question.ts new file mode 100644 index 0000000000..89be8bb02e --- /dev/null +++ b/packages/fineract-client/src/models/question.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Response } from './response'; +import { Survey } from './survey'; + + +export interface Question { + componentKey?: string; + description?: string; + id?: number; + key?: string; + _new?: boolean; + responses?: Array; + sequenceNo?: number; + survey?: Survey; + text?: string; +} + diff --git a/packages/fineract-client/src/models/questionData.ts b/packages/fineract-client/src/models/questionData.ts new file mode 100644 index 0000000000..09a41d8563 --- /dev/null +++ b/packages/fineract-client/src/models/questionData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ResponseData } from './responseData'; + + +export interface QuestionData { + componentKey?: string; + description?: string; + id?: number; + key?: string; + responseDatas?: Array; + sequenceNo?: number; + text?: string; +} + diff --git a/packages/fineract-client/src/models/rangeFilterBigDecimal.ts b/packages/fineract-client/src/models/rangeFilterBigDecimal.ts new file mode 100644 index 0000000000..bb9fbbd18d --- /dev/null +++ b/packages/fineract-client/src/models/rangeFilterBigDecimal.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface RangeFilterBigDecimal { + operator?: RangeFilterBigDecimal.OperatorEnum; + value?: number; +} +export namespace RangeFilterBigDecimal { + export type OperatorEnum = 'GTE' | 'LTE' | 'GT' | 'LT'; + export const OperatorEnum = { + Gte: 'GTE' as OperatorEnum, + Lte: 'LTE' as OperatorEnum, + Gt: 'GT' as OperatorEnum, + Lt: 'LT' as OperatorEnum + }; +} + + diff --git a/packages/fineract-client/src/models/rangeFilterLocalDate.ts b/packages/fineract-client/src/models/rangeFilterLocalDate.ts new file mode 100644 index 0000000000..a906cc4212 --- /dev/null +++ b/packages/fineract-client/src/models/rangeFilterLocalDate.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface RangeFilterLocalDate { + operator?: RangeFilterLocalDate.OperatorEnum; + value?: string; +} +export namespace RangeFilterLocalDate { + export type OperatorEnum = 'GTE' | 'LTE' | 'GT' | 'LT'; + export const OperatorEnum = { + Gte: 'GTE' as OperatorEnum, + Lte: 'LTE' as OperatorEnum, + Gt: 'GT' as OperatorEnum, + Lt: 'LT' as OperatorEnum + }; +} + + diff --git a/packages/fineract-client/src/models/rate.ts b/packages/fineract-client/src/models/rate.ts new file mode 100644 index 0000000000..38938a7053 --- /dev/null +++ b/packages/fineract-client/src/models/rate.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { AppUser } from './appUser'; + + +export interface Rate { + active?: boolean; + approveUser?: AppUser; + createdBy?: number; + createdDate?: string; + id?: number; + lastModifiedBy?: number; + lastModifiedDate?: string; + name?: string; + _new?: boolean; + percentage?: number; + productApply?: number; +} + diff --git a/packages/fineract-client/src/models/rateData.ts b/packages/fineract-client/src/models/rateData.ts new file mode 100644 index 0000000000..a995cd98b7 --- /dev/null +++ b/packages/fineract-client/src/models/rateData.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +export interface RateData { + active?: boolean; + id?: number; + name?: string; + percentage?: number; + productApply?: EnumOptionData; +} + diff --git a/packages/fineract-client/src/models/reportExportType.ts b/packages/fineract-client/src/models/reportExportType.ts new file mode 100644 index 0000000000..be58140662 --- /dev/null +++ b/packages/fineract-client/src/models/reportExportType.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ReportExportType { + key?: string; + queryParameter?: string; +} + diff --git a/packages/fineract-client/src/models/reportMailingJobRunHistoryData.ts b/packages/fineract-client/src/models/reportMailingJobRunHistoryData.ts new file mode 100644 index 0000000000..28dcdf5284 --- /dev/null +++ b/packages/fineract-client/src/models/reportMailingJobRunHistoryData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ReportMailingJobRunHistoryData { + endDateTime?: string; + errorLog?: string; + errorMessage?: string; + id?: number; + reportMailingJobId?: number; + startDateTime?: string; + status?: string; +} + diff --git a/packages/fineract-client/src/models/reportMailingJobTimelineData.ts b/packages/fineract-client/src/models/reportMailingJobTimelineData.ts new file mode 100644 index 0000000000..ad2909f1a0 --- /dev/null +++ b/packages/fineract-client/src/models/reportMailingJobTimelineData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ReportMailingJobTimelineData { + createdByFirstname?: string; + createdByLastname?: string; + createdByUsername?: string; + createdOnDate?: string; + updatedByFirstname?: string; + updatedByLastname?: string; + updatedByUsername?: string; + updatedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/rescheduleReasonsCodeValue.ts b/packages/fineract-client/src/models/rescheduleReasonsCodeValue.ts new file mode 100644 index 0000000000..1e47424796 --- /dev/null +++ b/packages/fineract-client/src/models/rescheduleReasonsCodeValue.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface RescheduleReasonsCodeValue { + active?: boolean; + id?: number; + mandatory?: boolean; + name?: string; +} + diff --git a/packages/fineract-client/src/models/rescheduleReasonsTimeline.ts b/packages/fineract-client/src/models/rescheduleReasonsTimeline.ts new file mode 100644 index 0000000000..888caec891 --- /dev/null +++ b/packages/fineract-client/src/models/rescheduleReasonsTimeline.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface RescheduleReasonsTimeline { + approvedByFirstname?: string; + approvedByLastname?: string; + approvedByUsername?: string; + approvedOnDate?: string; + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/response.ts b/packages/fineract-client/src/models/response.ts new file mode 100644 index 0000000000..ad6a12f1e7 --- /dev/null +++ b/packages/fineract-client/src/models/response.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Question } from './question'; + + +export interface Response { + id?: number; + _new?: boolean; + question?: Question; + sequenceNo?: number; + text?: string; + value?: number; +} + diff --git a/packages/fineract-client/src/models/responseData.ts b/packages/fineract-client/src/models/responseData.ts new file mode 100644 index 0000000000..5b5f137924 --- /dev/null +++ b/packages/fineract-client/src/models/responseData.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ResponseData { + id?: number; + sequenceNo?: number; + text?: string; + value?: number; +} + diff --git a/packages/fineract-client/src/models/resultsetColumnHeaderData.ts b/packages/fineract-client/src/models/resultsetColumnHeaderData.ts new file mode 100644 index 0000000000..d33ba86666 --- /dev/null +++ b/packages/fineract-client/src/models/resultsetColumnHeaderData.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ResultsetColumnHeaderData { + booleanDisplayType?: boolean; + codeLookupDisplayType?: boolean; + codeValueDisplayType?: boolean; + columnCode?: string; + columnDisplayType?: string; + columnLength?: number; + columnName?: string; + columnType?: string; + columnValues?: Array; + dateDisplayType?: boolean; + dateTimeDisplayType?: boolean; + decimalDisplayType?: boolean; + integerDisplayType?: boolean; + isColumnIndexed?: boolean; + isColumnNullable?: boolean; + isColumnPrimaryKey?: boolean; + isColumnUnique?: boolean; + mandatory?: boolean; + optional?: boolean; + string?: boolean; +} + diff --git a/packages/fineract-client/src/models/resultsetRowData.ts b/packages/fineract-client/src/models/resultsetRowData.ts new file mode 100644 index 0000000000..0e2b7a7682 --- /dev/null +++ b/packages/fineract-client/src/models/resultsetRowData.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ResultsetRowData { + row?: Array; +} + diff --git a/packages/fineract-client/src/models/retrieveOneResponse.ts b/packages/fineract-client/src/models/retrieveOneResponse.ts new file mode 100644 index 0000000000..d578b0ee2f --- /dev/null +++ b/packages/fineract-client/src/models/retrieveOneResponse.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * GetStaffResponse + */ +export interface RetrieveOneResponse { + displayName?: string; + externalId?: string; + firstname?: string; + id?: number; + isActive?: boolean; + isLoanOfficer?: boolean; + joiningDate?: string; + lastname?: string; + officeId?: number; + officeName?: string; +} + diff --git a/packages/fineract-client/src/models/role.ts b/packages/fineract-client/src/models/role.ts new file mode 100644 index 0000000000..d883310025 --- /dev/null +++ b/packages/fineract-client/src/models/role.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Permission } from './permission'; + + +export interface Role { + disabled?: boolean; + enabled?: boolean; + id?: number; + name?: string; + _new?: boolean; + permissions?: Array; +} + diff --git a/packages/fineract-client/src/models/roleData.ts b/packages/fineract-client/src/models/roleData.ts new file mode 100644 index 0000000000..943cae83ea --- /dev/null +++ b/packages/fineract-client/src/models/roleData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface RoleData { + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/runReportsResponse.ts b/packages/fineract-client/src/models/runReportsResponse.ts new file mode 100644 index 0000000000..9774176104 --- /dev/null +++ b/packages/fineract-client/src/models/runReportsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ResultsetRowData } from './resultsetRowData'; +import { ResultsetColumnHeaderData } from './resultsetColumnHeaderData'; + + +export interface RunReportsResponse { + columnHeaders?: Array; + data?: Array; +} + diff --git a/packages/fineract-client/src/models/savingsAccountApplicationTimelineData.ts b/packages/fineract-client/src/models/savingsAccountApplicationTimelineData.ts new file mode 100644 index 0000000000..d3f74e905e --- /dev/null +++ b/packages/fineract-client/src/models/savingsAccountApplicationTimelineData.ts @@ -0,0 +1,40 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface SavingsAccountApplicationTimelineData { + activatedByFirstname?: string; + activatedByLastname?: string; + activatedByUsername?: string; + activatedOnDate?: string; + approvedByFirstname?: string; + approvedByLastname?: string; + approvedByUsername?: string; + approvedOnDate?: string; + closedByFirstname?: string; + closedByLastname?: string; + closedByUsername?: string; + closedOnDate?: string; + rejectedByFirstname?: string; + rejectedByLastname?: string; + rejectedByUsername?: string; + rejectedOnDate?: string; + submittedByFirstname?: string; + submittedByLastname?: string; + submittedByUsername?: string; + submittedOnDate?: string; + withdrawnByFirstname?: string; + withdrawnByLastname?: string; + withdrawnByUsername?: string; + withdrawnOnDate?: string; +} + diff --git a/packages/fineract-client/src/models/savingsAccountChargeData.ts b/packages/fineract-client/src/models/savingsAccountChargeData.ts new file mode 100644 index 0000000000..a0eb2c7d86 --- /dev/null +++ b/packages/fineract-client/src/models/savingsAccountChargeData.ts @@ -0,0 +1,51 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CurrencyData } from './currencyData'; +import { ChargeData } from './chargeData'; +import { EnumOptionData } from './enumOptionData'; +import { ChargeFeeOnMonthDay } from './chargeFeeOnMonthDay'; + + +export interface SavingsAccountChargeData { + accountId?: number; + amount?: number; + amountOrPercentage?: number; + amountOutstanding?: number; + amountPaid?: number; + amountPercentageAppliedTo?: number; + amountWaived?: number; + amountWrittenOff?: number; + annualFee?: boolean; + chargeCalculationType?: EnumOptionData; + chargeData?: ChargeData; + chargeId?: number; + chargeOptions?: Array; + chargeTimeType?: EnumOptionData; + currency?: CurrencyData; + dueDate?: string; + feeCharge?: boolean; + feeInterval?: number; + feeOnMonthDay?: ChargeFeeOnMonthDay; + freeWithdrawalChargeFrequency?: number; + id?: number; + inactivationDate?: string; + isActive?: boolean; + isFreeWithdrawal?: boolean; + name?: string; + penalty?: boolean; + percentage?: number; + restartFrequency?: number; + restartFrequencyEnum?: number; + savingsActivation?: boolean; + withdrawalFee?: boolean; +} + diff --git a/packages/fineract-client/src/models/savingsAccountChargesPaidByData.ts b/packages/fineract-client/src/models/savingsAccountChargesPaidByData.ts new file mode 100644 index 0000000000..e1d35ab48f --- /dev/null +++ b/packages/fineract-client/src/models/savingsAccountChargesPaidByData.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { SavingsAccountChargeData } from './savingsAccountChargeData'; + + +export interface SavingsAccountChargesPaidByData { + amount?: number; + chargeId?: number; + feeCharge?: boolean; + penaltyCharge?: boolean; + savingsAccountChargeData?: SavingsAccountChargeData; +} + diff --git a/packages/fineract-client/src/models/savingsAccountData.ts b/packages/fineract-client/src/models/savingsAccountData.ts new file mode 100644 index 0000000000..fd9da14a98 --- /dev/null +++ b/packages/fineract-client/src/models/savingsAccountData.ts @@ -0,0 +1,124 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GroupGeneralData } from './groupGeneralData'; +import { SavingsAccountApplicationTimelineData } from './savingsAccountApplicationTimelineData'; +import { DatatableData } from './datatableData'; +import { StaffData } from './staffData'; +import { ChargeData } from './chargeData'; +import { EnumOptionData } from './enumOptionData'; +import { SavingsProductData } from './savingsProductData'; +import { SavingsAccountSubStatusEnumData } from './savingsAccountSubStatusEnumData'; +import { SavingsAccountSummaryData } from './savingsAccountSummaryData'; +import { CurrencyData } from './currencyData'; +import { SavingsAccountStatusEnumData } from './savingsAccountStatusEnumData'; +import { ClientData } from './clientData'; +import { SavingsAccountChargeData } from './savingsAccountChargeData'; +import { SavingsAccountTransactionData } from './savingsAccountTransactionData'; +import { TaxGroupData } from './taxGroupData'; + + +export interface SavingsAccountData { + accountNo?: string; + accrualBasedAccountingEnabledOnSavingsProduct?: boolean; + activatedOnDate?: string; + activationLocalDate?: string; + allowOverdraft?: boolean; + annualFee?: SavingsAccountChargeData; + cashBasedAccountingEnabledOnSavingsProduct?: boolean; + chargeOptions?: Array; + charges?: Array; + clientData?: ClientData; + clientId?: number; + clientName?: string; + currency?: CurrencyData; + datatables?: Array; + dateFormat?: string; + daysToDormancy?: number; + daysToEscheat?: number; + daysToInactive?: number; + depositType?: EnumOptionData; + depositTypeId?: number; + enforceMinRequiredBalance?: boolean; + existingReversedTransactionIds?: Set; + existingTransactionIds?: Set; + externalId?: string; + fieldOfficerId?: number; + fieldOfficerName?: string; + fieldOfficerOptions?: Array; + glAccountIdForInterestOnSavings?: number; + glAccountIdForSavingsControl?: number; + groupGeneralData?: GroupGeneralData; + groupId?: number; + groupName?: string; + id?: number; + interestCalculationDaysInYearType?: EnumOptionData; + interestCalculationDaysInYearTypeId?: number; + interestCalculationDaysInYearTypeOptions?: Array; + interestCalculationType?: EnumOptionData; + interestCalculationTypeId?: number; + interestCalculationTypeOptions?: Array; + interestCompoundingPeriodType?: EnumOptionData; + interestCompoundingPeriodTypeId?: number; + interestCompoundingPeriodTypeOptions?: Array; + interestPostingPeriodType?: EnumOptionData; + interestPostingPeriodTypeId?: number; + interestPostingPeriodTypeOptions?: Array; + isDormancyTrackingActive?: boolean; + lastActiveTransactionDate?: string; + lastSavingsAccountTransaction?: SavingsAccountTransactionData; + lienAllowed?: boolean; + locale?: string; + lockedInUntilDate?: string; + lockinPeriodFrequency?: number; + lockinPeriodFrequencyType?: EnumOptionData; + lockinPeriodFrequencyTypeId?: number; + lockinPeriodFrequencyTypeOptions?: Array; + maxAllowedLienLimit?: number; + minBalanceForInterestCalculation?: number; + minOverdraftForInterestCalculation?: number; + minRequiredBalance?: number; + minRequiredOpeningBalance?: number; + newSavingsAccountTransactionData?: Array; + nominalAnnualInterestRate?: number; + nominalAnnualInterestRateOverdraft?: number; + officeId?: number; + onHoldFunds?: number; + overdraftLimit?: number; + productId?: number; + productOptions?: Array; + reasonForBlock?: string; + rowIndex?: number; + savingsAccountSummaryData?: SavingsAccountSummaryData; + savingsAccountTransactionData?: Array; + savingsAccountTransactionSummaryWrapper?: object; + savingsAccountTransactionsWithPivotConfig?: Array; + savingsAmountOnHold?: number; + savingsHelper?: object; + savingsProduct?: SavingsProductData; + savingsProductData?: SavingsProductData; + savingsProductId?: number; + savingsProductName?: string; + startInterestCalculationDate?: string; + status?: SavingsAccountStatusEnumData; + subStatus?: SavingsAccountSubStatusEnumData; + submittedOnDate?: string; + summary?: SavingsAccountSummaryData; + taxGroup?: TaxGroupData; + timeline?: SavingsAccountApplicationTimelineData; + transactions?: Array; + updatedTransactions?: Array; + withHoldTax?: boolean; + withdrawalFee?: SavingsAccountChargeData; + withdrawalFeeForTransfers?: boolean; + withdrawalFeeTypeOptions?: Array; +} + diff --git a/packages/fineract-client/src/models/savingsAccountStatusEnumData.ts b/packages/fineract-client/src/models/savingsAccountStatusEnumData.ts new file mode 100644 index 0000000000..2df70880a2 --- /dev/null +++ b/packages/fineract-client/src/models/savingsAccountStatusEnumData.ts @@ -0,0 +1,29 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface SavingsAccountStatusEnumData { + active?: boolean; + approved?: boolean; + closed?: boolean; + code?: string; + id?: number; + matured?: boolean; + prematureClosed?: boolean; + rejected?: boolean; + submittedAndPendingApproval?: boolean; + transferInProgress?: boolean; + transferOnHold?: boolean; + value?: string; + withdrawnByApplicant?: boolean; +} + diff --git a/packages/fineract-client/src/models/savingsAccountSubStatusEnumData.ts b/packages/fineract-client/src/models/savingsAccountSubStatusEnumData.ts new file mode 100644 index 0000000000..e5c2431d83 --- /dev/null +++ b/packages/fineract-client/src/models/savingsAccountSubStatusEnumData.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface SavingsAccountSubStatusEnumData { + block?: boolean; + blockCredit?: boolean; + blockDebit?: boolean; + code?: string; + dormant?: boolean; + escheat?: boolean; + id?: number; + inactive?: boolean; + none?: boolean; + value?: string; +} + diff --git a/packages/fineract-client/src/models/savingsAccountSummaryData.ts b/packages/fineract-client/src/models/savingsAccountSummaryData.ts new file mode 100644 index 0000000000..969059fc56 --- /dev/null +++ b/packages/fineract-client/src/models/savingsAccountSummaryData.ts @@ -0,0 +1,36 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CurrencyData } from './currencyData'; + + +export interface SavingsAccountSummaryData { + accountBalance?: number; + availableBalance?: number; + currency?: CurrencyData; + interestNotPosted?: number; + interestPostedTillDate?: string; + lastInterestCalculationDate?: string; + prevInterestPostedTillDate?: string; + runningBalanceOnInterestPostingTillDate?: number; + runningBalanceOnPivotDate?: number; + totalAnnualFees?: number; + totalDeposits?: number; + totalFeeCharge?: number; + totalInterestEarned?: number; + totalInterestPosted?: number; + totalOverdraftInterestDerived?: number; + totalPenaltyCharge?: number; + totalWithdrawalFees?: number; + totalWithdrawals?: number; + totalWithholdTax?: number; +} + diff --git a/packages/fineract-client/src/models/savingsAccountTransactionData.ts b/packages/fineract-client/src/models/savingsAccountTransactionData.ts new file mode 100644 index 0000000000..3e56a9cabb --- /dev/null +++ b/packages/fineract-client/src/models/savingsAccountTransactionData.ts @@ -0,0 +1,98 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PaymentTypeData } from './paymentTypeData'; +import { AccountTransferData } from './accountTransferData'; +import { SavingsAccountTransactionEnumData } from './savingsAccountTransactionEnumData'; +import { CurrencyData } from './currencyData'; +import { SavingsAccountChargesPaidByData } from './savingsAccountChargesPaidByData'; +import { PaymentDetailData } from './paymentDetailData'; +import { TaxDetailsData } from './taxDetailsData'; + + +export interface SavingsAccountTransactionData { + accountId?: number; + accountNo?: string; + accountNumber?: string; + amount?: number; + amountOnHold?: boolean; + amountRelease?: boolean; + annualFee?: boolean; + annualFeeAndNotReversed?: boolean; + balanceEndDate?: string; + balanceNumberOfDays?: number; + bankNumber?: string; + chargeTransaction?: boolean; + chargeTransactionAndNotReversed?: boolean; + chargesPaidByData?: Set; + checkNumber?: string; + credit?: boolean; + cumulativeBalance?: number; + currency?: CurrencyData; + date?: string; + dateFormat?: string; + debit?: boolean; + deposit?: boolean; + depositAndNotReversed?: boolean; + dividendPayoutAndNotReversed?: boolean; + endOfBalanceLocalDate?: string; + feeCharge?: boolean; + feeChargeAndNotReversed?: boolean; + id?: number; + interestPosting?: boolean; + interestPostingAndNotReversed?: boolean; + interestedPostedAsOn?: boolean; + isManualTransaction?: boolean; + isReversal?: boolean; + lienTransaction?: boolean; + locale?: string; + manualTransaction?: boolean; + modifiedId?: number; + notReversed?: boolean; + note?: string; + originalTransactionId?: number; + outstandingChargeAmount?: number; + overdraftAmount?: number; + overdraftInterestAndNotReversed?: boolean; + payCharge?: boolean; + paymentDetailData?: PaymentDetailData; + paymentTypeId?: number; + paymentTypeOptions?: Array; + penaltyCharge?: boolean; + penaltyChargeAndNotReversed?: boolean; + reasonForBlock?: string; + receiptNumber?: string; + refNo?: string; + releaseTransactionId?: number; + reversalTransaction?: boolean; + reversed?: boolean; + routingCode?: string; + rowIndex?: number; + runningBalance?: number; + savingsAccountChargesPaid?: Set; + savingsAccountId?: number; + submittedByUsername?: string; + submittedOnDate?: string; + taxDetails?: Array; + transactionAmount?: number; + transactionDate?: string; + transactionType?: SavingsAccountTransactionEnumData; + transfer?: AccountTransferData; + waiveCharge?: boolean; + waiveFeeCharge?: boolean; + waiveFeeChargeAndNotReversed?: boolean; + waivePenaltyCharge?: boolean; + waivePenaltyChargeAndNotReversed?: boolean; + withHoldTaxAndNotReversed?: boolean; + withdrawal?: boolean; + withdrawalFeeAndNotReversed?: boolean; +} + diff --git a/packages/fineract-client/src/models/savingsAccountTransactionEnumData.ts b/packages/fineract-client/src/models/savingsAccountTransactionEnumData.ts new file mode 100644 index 0000000000..48eba2b8c9 --- /dev/null +++ b/packages/fineract-client/src/models/savingsAccountTransactionEnumData.ts @@ -0,0 +1,42 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface SavingsAccountTransactionEnumData { + amountHold?: boolean; + amountRelease?: boolean; + annualFee?: boolean; + approveTransfer?: boolean; + chargeTransaction?: boolean; + code?: string; + deposit?: boolean; + depositOrWithdrawal?: boolean; + dividendPayout?: boolean; + escheat?: boolean; + feeDeduction?: boolean; + id?: number; + incomeFromInterest?: boolean; + initiateTransfer?: boolean; + interestPosting?: boolean; + overDraftInterestPosting?: boolean; + overdraftFee?: boolean; + overdraftInterest?: boolean; + payCharge?: boolean; + rejectTransfer?: boolean; + value?: string; + withdrawTransfer?: boolean; + withdrawal?: boolean; + withdrawalFee?: boolean; + withholdTax?: boolean; + writtenoff?: boolean; +} + diff --git a/packages/fineract-client/src/models/savingsAccountTransactionsSearchResponse.ts b/packages/fineract-client/src/models/savingsAccountTransactionsSearchResponse.ts new file mode 100644 index 0000000000..dd6f29daa4 --- /dev/null +++ b/packages/fineract-client/src/models/savingsAccountTransactionsSearchResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GetSavingsAccountTransactionsPageItem } from './getSavingsAccountTransactionsPageItem'; + + +/** + * SavingsAccountTransactionsSearchResponse + */ +export interface SavingsAccountTransactionsSearchResponse { + pageItems?: Set; + totalFilteredRecords?: number; +} + diff --git a/packages/fineract-client/src/models/savingsProductData.ts b/packages/fineract-client/src/models/savingsProductData.ts new file mode 100644 index 0000000000..dd7b587a16 --- /dev/null +++ b/packages/fineract-client/src/models/savingsProductData.ts @@ -0,0 +1,39 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { CurrencyData } from './currencyData'; +import { EnumOptionData } from './enumOptionData'; + + +export interface SavingsProductData { + accrualBasedAccountingEnabled?: boolean; + allowOverdraft?: boolean; + cashBasedAccountingEnabled?: boolean; + currency?: CurrencyData; + depositAccountType?: string; + id?: number; + interestCalculationDaysInYearType?: EnumOptionData; + interestCalculationType?: EnumOptionData; + interestCompoundingPeriodType?: EnumOptionData; + interestPostingPeriodType?: EnumOptionData; + lockinPeriodFrequency?: number; + lockinPeriodFrequencyType?: EnumOptionData; + maxAllowedLienLimit?: number; + minRequiredBalance?: number; + minRequiredOpeningBalance?: number; + name?: string; + nominalAnnualInterestRate?: number; + overdraftLimit?: number; + periodicAccrualAccounting?: boolean; + upfrontAccrualAccounting?: boolean; + withdrawalFeeForTransfers?: boolean; +} + diff --git a/packages/fineract-client/src/models/savingsTransactionSearch.ts b/packages/fineract-client/src/models/savingsTransactionSearch.ts new file mode 100644 index 0000000000..68ab7b8291 --- /dev/null +++ b/packages/fineract-client/src/models/savingsTransactionSearch.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Filters } from './filters'; + + +export interface SavingsTransactionSearch { + filters?: Filters; +} + diff --git a/packages/fineract-client/src/models/scorecard.ts b/packages/fineract-client/src/models/scorecard.ts new file mode 100644 index 0000000000..ac43b76ea0 --- /dev/null +++ b/packages/fineract-client/src/models/scorecard.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Response } from './response'; +import { Survey } from './survey'; +import { AppUser } from './appUser'; +import { Question } from './question'; +import { Client } from './client'; + + +export interface Scorecard { + appUser?: AppUser; + client?: Client; + createdOn?: string; + id?: number; + _new?: boolean; + question?: Question; + response?: Response; + survey?: Survey; + value?: number; +} + diff --git a/packages/fineract-client/src/models/scorecardData.ts b/packages/fineract-client/src/models/scorecardData.ts new file mode 100644 index 0000000000..27c638f24c --- /dev/null +++ b/packages/fineract-client/src/models/scorecardData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { ScorecardValue } from './scorecardValue'; + + +export interface ScorecardData { + clientId?: number; + id?: number; + scorecardValues?: Array; + surveyId?: number; + surveyName?: string; + userId?: number; + username?: string; +} + diff --git a/packages/fineract-client/src/models/scorecardValue.ts b/packages/fineract-client/src/models/scorecardValue.ts new file mode 100644 index 0000000000..d342f2477c --- /dev/null +++ b/packages/fineract-client/src/models/scorecardValue.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface ScorecardValue { + createdOn?: string; + questionId?: number; + responseId?: number; + value?: number; +} + diff --git a/packages/fineract-client/src/models/singleDebitOrCreditEntryCommand.ts b/packages/fineract-client/src/models/singleDebitOrCreditEntryCommand.ts new file mode 100644 index 0000000000..b8d7c3de55 --- /dev/null +++ b/packages/fineract-client/src/models/singleDebitOrCreditEntryCommand.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface SingleDebitOrCreditEntryCommand { + amount?: number; + comments?: string; + commentsChanged?: boolean; + glAccountId?: number; + glAccountIdChanged?: boolean; + glAmountChanged?: boolean; + parametersPassedInRequest?: Set; +} + diff --git a/packages/fineract-client/src/models/smsCampaignData.ts b/packages/fineract-client/src/models/smsCampaignData.ts new file mode 100644 index 0000000000..c04814b4b2 --- /dev/null +++ b/packages/fineract-client/src/models/smsCampaignData.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionData } from './enumOptionData'; + + +export interface SmsCampaignData { + campaignName?: string; + campaignStatus?: EnumOptionData; + campaignType?: EnumOptionData; + id?: number; + lastTriggerDate?: string; + message?: string; + nextTriggerDate?: string; + notification?: boolean; + paramValue?: string; + recurrence?: string; + recurrenceStartDate?: string; + reportName?: string; + runReportId?: number; +} + diff --git a/packages/fineract-client/src/models/sort.ts b/packages/fineract-client/src/models/sort.ts new file mode 100644 index 0000000000..a7e77eb399 --- /dev/null +++ b/packages/fineract-client/src/models/sort.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface Sort { + empty?: boolean; + sorted?: boolean; + unsorted?: boolean; +} + diff --git a/packages/fineract-client/src/models/sortOrder.ts b/packages/fineract-client/src/models/sortOrder.ts new file mode 100644 index 0000000000..6e478b5cae --- /dev/null +++ b/packages/fineract-client/src/models/sortOrder.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface SortOrder { + direction?: SortOrder.DirectionEnum; + property?: string; +} +export namespace SortOrder { + export type DirectionEnum = 'ASC' | 'DESC'; + export const DirectionEnum = { + Asc: 'ASC' as DirectionEnum, + Desc: 'DESC' as DirectionEnum + }; +} + + diff --git a/packages/fineract-client/src/models/staff.ts b/packages/fineract-client/src/models/staff.ts new file mode 100644 index 0000000000..869f43e5a6 --- /dev/null +++ b/packages/fineract-client/src/models/staff.ts @@ -0,0 +1,35 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Office } from './office'; +import { Image } from './image'; + + +export interface Staff { + active?: boolean; + displayName?: string; + emailAddress?: string; + externalId?: string; + firstname?: string; + id?: number; + image?: Image; + joiningDate?: string; + lastname?: string; + loanOfficer?: boolean; + mobileNo?: string; + _new?: boolean; + notActive?: boolean; + notLoanOfficer?: boolean; + office?: Office; + organisationalRoleParentStaff?: Staff; + organisationalRoleType?: number; +} + diff --git a/packages/fineract-client/src/models/staffData.ts b/packages/fineract-client/src/models/staffData.ts new file mode 100644 index 0000000000..40424ae2db --- /dev/null +++ b/packages/fineract-client/src/models/staffData.ts @@ -0,0 +1,24 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface StaffData { + displayName?: string; + firstname?: string; + id?: number; + joiningDate?: string; + lastname?: string; + officeId?: number; + officeName?: string; + rowIndex?: number; +} + diff --git a/packages/fineract-client/src/models/subjectName.ts b/packages/fineract-client/src/models/subjectName.ts new file mode 100644 index 0000000000..a7f248b348 --- /dev/null +++ b/packages/fineract-client/src/models/subjectName.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface SubjectName { + displayName?: string; + firstName?: string; + lastName?: string; + middleName?: string; +} + diff --git a/packages/fineract-client/src/models/survey.ts b/packages/fineract-client/src/models/survey.ts new file mode 100644 index 0000000000..fb53d50782 --- /dev/null +++ b/packages/fineract-client/src/models/survey.ts @@ -0,0 +1,28 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { Question } from './question'; +import { Component } from './component'; + + +export interface Survey { + components?: Array; + countryCode?: string; + description?: string; + id?: number; + key?: string; + name?: string; + _new?: boolean; + questions?: Array; + validFrom?: string; + validTo?: string; +} + diff --git a/packages/fineract-client/src/models/surveyData.ts b/packages/fineract-client/src/models/surveyData.ts new file mode 100644 index 0000000000..6126a0edd2 --- /dev/null +++ b/packages/fineract-client/src/models/surveyData.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { QuestionData } from './questionData'; +import { ComponentData } from './componentData'; + + +export interface SurveyData { + componentDatas?: Array; + countryCode?: string; + description?: string; + id?: number; + key?: string; + name?: string; + questionDatas?: Array; + validFrom?: string; + validTo?: string; +} + diff --git a/packages/fineract-client/src/models/taxComponent.ts b/packages/fineract-client/src/models/taxComponent.ts new file mode 100644 index 0000000000..75809bd8ee --- /dev/null +++ b/packages/fineract-client/src/models/taxComponent.ts @@ -0,0 +1,32 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { GLAccount } from './gLAccount'; +import { TaxComponentHistory } from './taxComponentHistory'; +import { TaxGroupMappings } from './taxGroupMappings'; + + +export interface TaxComponent { + createdBy?: number; + createdDate?: string; + creditAccountType?: number; + creditAcount?: GLAccount; + debitAccountType?: number; + debitAcount?: GLAccount; + id?: number; + lastModifiedBy?: number; + lastModifiedDate?: string; + _new?: boolean; + percentage?: number; + taxComponentHistories?: Set; + taxGroupMappings?: Set; +} + diff --git a/packages/fineract-client/src/models/taxComponentData.ts b/packages/fineract-client/src/models/taxComponentData.ts new file mode 100644 index 0000000000..249b9cc53d --- /dev/null +++ b/packages/fineract-client/src/models/taxComponentData.ts @@ -0,0 +1,30 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TaxComponentHistoryData } from './taxComponentHistoryData'; +import { GLAccountData } from './gLAccountData'; +import { EnumOptionData } from './enumOptionData'; + + +export interface TaxComponentData { + creditAccount?: GLAccountData; + creditAccountType?: EnumOptionData; + debitAccount?: GLAccountData; + debitAccountType?: EnumOptionData; + glAccountOptions?: { [key: string]: Array; }; + glAccountTypeOptions?: Array; + id?: number; + name?: string; + percentage?: number; + startDate?: string; + taxComponentHistories?: Array; +} + diff --git a/packages/fineract-client/src/models/taxComponentHistory.ts b/packages/fineract-client/src/models/taxComponentHistory.ts new file mode 100644 index 0000000000..a25a045115 --- /dev/null +++ b/packages/fineract-client/src/models/taxComponentHistory.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface TaxComponentHistory { + createdBy?: number; + createdDate?: string; + id?: number; + lastModifiedBy?: number; + lastModifiedDate?: string; + _new?: boolean; + percentage?: number; +} + diff --git a/packages/fineract-client/src/models/taxComponentHistoryData.ts b/packages/fineract-client/src/models/taxComponentHistoryData.ts new file mode 100644 index 0000000000..84e3cbaf64 --- /dev/null +++ b/packages/fineract-client/src/models/taxComponentHistoryData.ts @@ -0,0 +1,17 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface TaxComponentHistoryData { + percentage?: number; +} + diff --git a/packages/fineract-client/src/models/taxDetailsData.ts b/packages/fineract-client/src/models/taxDetailsData.ts new file mode 100644 index 0000000000..1cf6bdc266 --- /dev/null +++ b/packages/fineract-client/src/models/taxDetailsData.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TaxComponentData } from './taxComponentData'; + + +export interface TaxDetailsData { + amount?: number; + taxComponent?: TaxComponentData; +} + diff --git a/packages/fineract-client/src/models/taxGroup.ts b/packages/fineract-client/src/models/taxGroup.ts new file mode 100644 index 0000000000..7b4da015b6 --- /dev/null +++ b/packages/fineract-client/src/models/taxGroup.ts @@ -0,0 +1,25 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TaxGroupMappings } from './taxGroupMappings'; + + +export interface TaxGroup { + createdBy?: number; + createdDate?: string; + id?: number; + lastModifiedBy?: number; + lastModifiedDate?: string; + name?: string; + _new?: boolean; + taxGroupMappings?: Set; +} + diff --git a/packages/fineract-client/src/models/taxGroupData.ts b/packages/fineract-client/src/models/taxGroupData.ts new file mode 100644 index 0000000000..9f6cf9f1aa --- /dev/null +++ b/packages/fineract-client/src/models/taxGroupData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TaxGroupMappingsData } from './taxGroupMappingsData'; + + +export interface TaxGroupData { + taxAssociations?: Array; +} + diff --git a/packages/fineract-client/src/models/taxGroupMappings.ts b/packages/fineract-client/src/models/taxGroupMappings.ts new file mode 100644 index 0000000000..e90085c01e --- /dev/null +++ b/packages/fineract-client/src/models/taxGroupMappings.ts @@ -0,0 +1,27 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TaxComponent } from './taxComponent'; +import { TaxGroup } from './taxGroup'; + + +export interface TaxGroupMappings { + createdBy?: number; + createdDate?: string; + endDate?: string; + id?: number; + lastModifiedBy?: number; + lastModifiedDate?: string; + _new?: boolean; + taxComponent?: TaxComponent; + taxGroup?: TaxGroup; +} + diff --git a/packages/fineract-client/src/models/taxGroupMappingsData.ts b/packages/fineract-client/src/models/taxGroupMappingsData.ts new file mode 100644 index 0000000000..b2bd199e6a --- /dev/null +++ b/packages/fineract-client/src/models/taxGroupMappingsData.ts @@ -0,0 +1,18 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { TaxComponentData } from './taxComponentData'; + + +export interface TaxGroupMappingsData { + taxComponent?: TaxComponentData; +} + diff --git a/packages/fineract-client/src/models/templateMapper.ts b/packages/fineract-client/src/models/templateMapper.ts new file mode 100644 index 0000000000..082b06e8a5 --- /dev/null +++ b/packages/fineract-client/src/models/templateMapper.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface TemplateMapper { + id?: number; + mapperkey?: string; + mapperorder?: number; + mappervalue?: string; + _new?: boolean; +} + diff --git a/packages/fineract-client/src/models/transactionDetailData.ts b/packages/fineract-client/src/models/transactionDetailData.ts new file mode 100644 index 0000000000..e9d765171e --- /dev/null +++ b/packages/fineract-client/src/models/transactionDetailData.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { PaymentDetailData } from './paymentDetailData'; +import { NoteData } from './noteData'; +import { TransactionTypeEnumData } from './transactionTypeEnumData'; + + +export interface TransactionDetailData { + noteData?: NoteData; + paymentDetails?: PaymentDetailData; + transactionId?: number; + transactionType?: TransactionTypeEnumData; +} + diff --git a/packages/fineract-client/src/models/transactionDetails.ts b/packages/fineract-client/src/models/transactionDetails.ts new file mode 100644 index 0000000000..2629cdf6d3 --- /dev/null +++ b/packages/fineract-client/src/models/transactionDetails.ts @@ -0,0 +1,23 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { EnumOptionType } from './enumOptionType'; +import { GetResourceTypeResourceIdNotesResponse } from './getResourceTypeResourceIdNotesResponse'; +import { PaymentDetailData } from './paymentDetailData'; + + +export interface TransactionDetails { + noteData?: GetResourceTypeResourceIdNotesResponse; + paymentDetails?: PaymentDetailData; + transactionId?: number; + transactionType?: EnumOptionType; +} + diff --git a/packages/fineract-client/src/models/transactionProcessingStrategyData.ts b/packages/fineract-client/src/models/transactionProcessingStrategyData.ts new file mode 100644 index 0000000000..20851c23bc --- /dev/null +++ b/packages/fineract-client/src/models/transactionProcessingStrategyData.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface TransactionProcessingStrategyData { + code?: string; + id?: number; + name?: string; +} + diff --git a/packages/fineract-client/src/models/transactionTypeEnumData.ts b/packages/fineract-client/src/models/transactionTypeEnumData.ts new file mode 100644 index 0000000000..4a582140fb --- /dev/null +++ b/packages/fineract-client/src/models/transactionTypeEnumData.ts @@ -0,0 +1,19 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface TransactionTypeEnumData { + code?: string; + id?: number; + value?: string; +} + diff --git a/packages/fineract-client/src/models/updateBusinessStepConfigRequest.ts b/packages/fineract-client/src/models/updateBusinessStepConfigRequest.ts new file mode 100644 index 0000000000..b0d5cff68f --- /dev/null +++ b/packages/fineract-client/src/models/updateBusinessStepConfigRequest.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { BusinessStep } from './businessStep'; + + +/** + * UpdateBusinessStepConfigRequest + */ +export interface UpdateBusinessStepConfigRequest { + businessSteps?: Array; +} + diff --git a/packages/fineract-client/src/models/updateChangesResponse.ts b/packages/fineract-client/src/models/updateChangesResponse.ts new file mode 100644 index 0000000000..bd7e5b3d6c --- /dev/null +++ b/packages/fineract-client/src/models/updateChangesResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +export interface UpdateChangesResponse { + accountNo?: number; + amount?: number; + bankName?: string; + date?: string; +} + diff --git a/packages/fineract-client/src/models/updatePostDatedCheckRequest.ts b/packages/fineract-client/src/models/updatePostDatedCheckRequest.ts new file mode 100644 index 0000000000..24f7e4fed7 --- /dev/null +++ b/packages/fineract-client/src/models/updatePostDatedCheckRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * UpdatePostDatedCheckRequest + */ +export interface UpdatePostDatedCheckRequest { + accountNo?: number; + amount?: number; + date?: string; + dateFormat?: string; + locale?: string; + name?: string; + repaymentDate?: string; +} + diff --git a/packages/fineract-client/src/models/updatePostDatedCheckResponse.ts b/packages/fineract-client/src/models/updatePostDatedCheckResponse.ts new file mode 100644 index 0000000000..5f42e0174e --- /dev/null +++ b/packages/fineract-client/src/models/updatePostDatedCheckResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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 { UpdateChangesResponse } from './updateChangesResponse'; + + +/** + * UpdatePostDatedCheckResponse + */ +export interface UpdatePostDatedCheckResponse { + changes?: UpdateChangesResponse; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/models/updateStaffResponse.ts b/packages/fineract-client/src/models/updateStaffResponse.ts new file mode 100644 index 0000000000..4b7f036f56 --- /dev/null +++ b/packages/fineract-client/src/models/updateStaffResponse.ts @@ -0,0 +1,21 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ + + +/** + * PutStaffResponse + */ +export interface UpdateStaffResponse { + officeId?: number; + resourceId?: number; +} + diff --git a/packages/fineract-client/src/param.ts b/packages/fineract-client/src/param.ts new file mode 100644 index 0000000000..78a2d20a64 --- /dev/null +++ b/packages/fineract-client/src/param.ts @@ -0,0 +1,69 @@ +/** + * Standard parameter styles defined by OpenAPI spec + */ +export type StandardParamStyle = + | 'matrix' + | 'label' + | 'form' + | 'simple' + | 'spaceDelimited' + | 'pipeDelimited' + | 'deepObject' + ; + +/** + * The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user. + */ +export type ParamStyle = StandardParamStyle | string; + +/** + * Standard parameter locations defined by OpenAPI spec + */ +export type ParamLocation = 'query' | 'header' | 'path' | 'cookie'; + +/** + * Standard types as defined in OpenAPI Specification: Data Types + */ +export type StandardDataType = + | "integer" + | "number" + | "boolean" + | "string" + | "object" + | "array" + ; + +/** + * Standard {@link DataType}s plus your own types/classes. + */ +export type DataType = StandardDataType | string; + +/** + * Standard formats as defined in OpenAPI Specification: Data Types + */ +export type StandardDataFormat = + | "int32" + | "int64" + | "float" + | "double" + | "byte" + | "binary" + | "date" + | "date-time" + | "password" + ; + +export type DataFormat = StandardDataFormat | string; + +/** + * The parameter to encode. + */ +export interface Param { + name: string; + value: unknown; + in: ParamLocation; + style: ParamStyle, + explode: boolean; + dataType: DataType; + dataFormat: DataFormat | undefined; +} diff --git a/packages/fineract-client/src/services/accountNumberFormat.service.ts b/packages/fineract-client/src/services/accountNumberFormat.service.ts new file mode 100644 index 0000000000..e3a4871113 --- /dev/null +++ b/packages/fineract-client/src/services/accountNumberFormat.service.ts @@ -0,0 +1,550 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteAccountNumberFormatsResponse } from '../models/deleteAccountNumberFormatsResponse'; +// @ts-ignore +import { GetAccountNumberFormatsIdResponse } from '../models/getAccountNumberFormatsIdResponse'; +// @ts-ignore +import { GetAccountNumberFormatsResponseTemplate } from '../models/getAccountNumberFormatsResponseTemplate'; +// @ts-ignore +import { PostAccountNumberFormatsRequest } from '../models/postAccountNumberFormatsRequest'; +// @ts-ignore +import { PostAccountNumberFormatsResponse } from '../models/postAccountNumberFormatsResponse'; +// @ts-ignore +import { PutAccountNumberFormatsRequest } from '../models/putAccountNumberFormatsRequest'; +// @ts-ignore +import { PutAccountNumberFormatsResponse } from '../models/putAccountNumberFormatsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class AccountNumberFormatService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Delete an Account number format + * Note: Account numbers created while this format was active would remain unchanged. + * @param accountNumberFormatId accountNumberFormatId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public _delete(accountNumberFormatId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public _delete(accountNumberFormatId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public _delete(accountNumberFormatId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public _delete(accountNumberFormatId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountNumberFormatId === null || accountNumberFormatId === undefined) { + throw new Error('Required parameter accountNumberFormatId was null or undefined when calling _delete.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountnumberformats/${this.configuration.encodeParam({name: "accountNumberFormatId", value: accountNumberFormatId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create an Account number format + * Note: You may associate a single Account number format for a given account type Mandatory Fields for Account number formats accountType + * @param postAccountNumberFormatsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create(postAccountNumberFormatsRequest?: PostAccountNumberFormatsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create(postAccountNumberFormatsRequest?: PostAccountNumberFormatsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create(postAccountNumberFormatsRequest?: PostAccountNumberFormatsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create(postAccountNumberFormatsRequest?: PostAccountNumberFormatsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountnumberformats`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postAccountNumberFormatsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Account number formats + * Example Requests: accountnumberformats accountnumberformats?fields=accountType,prefixType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll3(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll3(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll3(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll3(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountnumberformats`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve an Account number format + * Example Requests: accountnumberformats/1 accountnumberformats/1?template=true accountnumberformats/1?fields=accountType,prefixType + * @param accountNumberFormatId accountNumberFormatId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne(accountNumberFormatId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne(accountNumberFormatId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne(accountNumberFormatId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne(accountNumberFormatId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountNumberFormatId === null || accountNumberFormatId === undefined) { + throw new Error('Required parameter accountNumberFormatId was null or undefined when calling retrieveOne.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountnumberformats/${this.configuration.encodeParam({name: "accountNumberFormatId", value: accountNumberFormatId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Account number format Template + * 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 + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate2(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate2(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate2(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate2(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountnumberformats/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update an Account number format + * @param accountNumberFormatId accountNumberFormatId + * @param putAccountNumberFormatsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update1(accountNumberFormatId: number, putAccountNumberFormatsRequest: PutAccountNumberFormatsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update1(accountNumberFormatId: number, putAccountNumberFormatsRequest: PutAccountNumberFormatsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update1(accountNumberFormatId: number, putAccountNumberFormatsRequest: PutAccountNumberFormatsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update1(accountNumberFormatId: number, putAccountNumberFormatsRequest: PutAccountNumberFormatsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountNumberFormatId === null || accountNumberFormatId === undefined) { + throw new Error('Required parameter accountNumberFormatId was null or undefined when calling update1.'); + } + if (putAccountNumberFormatsRequest === null || putAccountNumberFormatsRequest === undefined) { + throw new Error('Required parameter putAccountNumberFormatsRequest was null or undefined when calling update1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountnumberformats/${this.configuration.encodeParam({name: "accountNumberFormatId", value: accountNumberFormatId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putAccountNumberFormatsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/accountTransfers.service.ts b/packages/fineract-client/src/services/accountTransfers.service.ts new file mode 100644 index 0000000000..1663bd71b2 --- /dev/null +++ b/packages/fineract-client/src/services/accountTransfers.service.ts @@ -0,0 +1,672 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetAccountTransfersPageItems } from '../models/getAccountTransfersPageItems'; +// @ts-ignore +import { GetAccountTransfersResponse } from '../models/getAccountTransfersResponse'; +// @ts-ignore +import { GetAccountTransfersTemplateRefundByTransferResponse } from '../models/getAccountTransfersTemplateRefundByTransferResponse'; +// @ts-ignore +import { GetAccountTransfersTemplateResponse } from '../models/getAccountTransfersTemplateResponse'; +// @ts-ignore +import { PostAccountTransfersRefundByTransferRequest } from '../models/postAccountTransfersRefundByTransferRequest'; +// @ts-ignore +import { PostAccountTransfersRefundByTransferResponse } from '../models/postAccountTransfersRefundByTransferResponse'; +// @ts-ignore +import { PostAccountTransfersRequest } from '../models/postAccountTransfersRequest'; +// @ts-ignore +import { PostAccountTransfersResponse } from '../models/postAccountTransfersResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class AccountTransfersService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create new Transfer + * Ability to create new transfer of monetary funds from one account to another. + * @param postAccountTransfersRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create4(postAccountTransfersRequest: PostAccountTransfersRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create4(postAccountTransfersRequest: PostAccountTransfersRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create4(postAccountTransfersRequest: PostAccountTransfersRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create4(postAccountTransfersRequest: PostAccountTransfersRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postAccountTransfersRequest === null || postAccountTransfersRequest === undefined) { + throw new Error('Required parameter postAccountTransfersRequest was null or undefined when calling create4.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounttransfers`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postAccountTransfersRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List account transfers + * Lists account\'s transfers Example Requests: accounttransfers + * @param sqlSearch sqlSearch + * @param externalId externalId + * @param offset offset + * @param limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param accountDetailId accountDetailId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll18(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountDetailId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll18(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountDetailId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll18(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountDetailId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll18(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountDetailId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (externalId !== undefined && externalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalId, 'externalId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (accountDetailId !== undefined && accountDetailId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + accountDetailId, 'accountDetailId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounttransfers`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve account transfer + * Retrieves account transfer Example Requests : accounttransfers/1 + * @param transferId transferId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne9(transferId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne9(transferId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne9(transferId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne9(transferId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (transferId === null || transferId === undefined) { + throw new Error('Required parameter transferId was null or undefined when calling retrieveOne9.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounttransfers/${this.configuration.encodeParam({name: "transferId", value: transferId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Account Transfer Template + * 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 Requests: accounttransfers/template?fromAccountType=2&fromOfficeId=1 accounttransfers/template?fromAccountType=2&fromOfficeId=1&fromClientId=1 accounttransfers/template?fromClientId=1&fromAccountType=2&fromAccountId=1 + * @param fromOfficeId fromOfficeId + * @param fromClientId fromClientId + * @param fromAccountId fromAccountId + * @param fromAccountType fromAccountType + * @param toOfficeId toOfficeId + * @param toClientId toClientId + * @param toAccountId toAccountId + * @param toAccountType toAccountType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template5(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template5(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template5(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template5(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (fromOfficeId !== undefined && fromOfficeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromOfficeId, 'fromOfficeId'); + } + if (fromClientId !== undefined && fromClientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromClientId, 'fromClientId'); + } + if (fromAccountId !== undefined && fromAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromAccountId, 'fromAccountId'); + } + if (fromAccountType !== undefined && fromAccountType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromAccountType, 'fromAccountType'); + } + if (toOfficeId !== undefined && toOfficeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toOfficeId, 'toOfficeId'); + } + if (toClientId !== undefined && toClientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toClientId, 'toClientId'); + } + if (toAccountId !== undefined && toAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toAccountId, 'toAccountId'); + } + if (toAccountType !== undefined && toAccountType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toAccountType, 'toAccountType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounttransfers/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Refund of an Active Loan by Transfer Template + * Retrieves Refund of an Active Loan by Transfer TemplateExample Requests : accounttransfers/templateRefundByTransfer?fromAccountId=2&fromAccountType=1& toAccountId=1&toAccountType=2&toClientId=1&toOfficeId=1 + * @param fromOfficeId fromOfficeId + * @param fromClientId fromClientId + * @param fromAccountId fromAccountId + * @param fromAccountType fromAccountType + * @param toOfficeId toOfficeId + * @param toClientId toClientId + * @param toAccountId toAccountId + * @param toAccountType toAccountType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public templateRefundByTransfer(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public templateRefundByTransfer(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public templateRefundByTransfer(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public templateRefundByTransfer(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (fromOfficeId !== undefined && fromOfficeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromOfficeId, 'fromOfficeId'); + } + if (fromClientId !== undefined && fromClientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromClientId, 'fromClientId'); + } + if (fromAccountId !== undefined && fromAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromAccountId, 'fromAccountId'); + } + if (fromAccountType !== undefined && fromAccountType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromAccountType, 'fromAccountType'); + } + if (toOfficeId !== undefined && toOfficeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toOfficeId, 'toOfficeId'); + } + if (toClientId !== undefined && toClientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toClientId, 'toClientId'); + } + if (toAccountId !== undefined && toAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toAccountId, 'toAccountId'); + } + if (toAccountType !== undefined && toAccountType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toAccountType, 'toAccountType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounttransfers/templateRefundByTransfer`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Refund of an Active Loan by Transfer + * Ability to refund an active loan by transferring to a savings account. + * @param postAccountTransfersRefundByTransferRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public templateRefundByTransferPost(postAccountTransfersRefundByTransferRequest: PostAccountTransfersRefundByTransferRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public templateRefundByTransferPost(postAccountTransfersRefundByTransferRequest: PostAccountTransfersRefundByTransferRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public templateRefundByTransferPost(postAccountTransfersRefundByTransferRequest: PostAccountTransfersRefundByTransferRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public templateRefundByTransferPost(postAccountTransfersRefundByTransferRequest: PostAccountTransfersRefundByTransferRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postAccountTransfersRefundByTransferRequest === null || postAccountTransfersRefundByTransferRequest === undefined) { + throw new Error('Required parameter postAccountTransfersRefundByTransferRequest was null or undefined when calling templateRefundByTransferPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounttransfers/refundByTransfer`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postAccountTransfersRefundByTransferRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/accountingClosure.service.ts b/packages/fineract-client/src/services/accountingClosure.service.ts new file mode 100644 index 0000000000..595a5def79 --- /dev/null +++ b/packages/fineract-client/src/services/accountingClosure.service.ts @@ -0,0 +1,489 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteGlClosuresResponse } from '../models/deleteGlClosuresResponse'; +// @ts-ignore +import { GetGlClosureResponse } from '../models/getGlClosureResponse'; +// @ts-ignore +import { PostGlClosuresRequest } from '../models/postGlClosuresRequest'; +// @ts-ignore +import { PostGlClosuresResponse } from '../models/postGlClosuresResponse'; +// @ts-ignore +import { PutGlClosuresRequest } from '../models/putGlClosuresRequest'; +// @ts-ignore +import { PutGlClosuresResponse } from '../models/putGlClosuresResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class AccountingClosureService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create an Accounting Closure + * Mandatory Fields officeId,closingDate + * @param postGlClosuresRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createGLClosure(postGlClosuresRequest: PostGlClosuresRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createGLClosure(postGlClosuresRequest: PostGlClosuresRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createGLClosure(postGlClosuresRequest: PostGlClosuresRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createGLClosure(postGlClosuresRequest: PostGlClosuresRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postGlClosuresRequest === null || postGlClosuresRequest === undefined) { + throw new Error('Required parameter postGlClosuresRequest was null or undefined when calling createGLClosure.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glclosures`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postGlClosuresRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete an accounting closure + * Note: Only the latest accounting closure associated with a branch may be deleted. + * @param glClosureId glclosureId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteGLClosure(glClosureId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteGLClosure(glClosureId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteGLClosure(glClosureId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteGLClosure(glClosureId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (glClosureId === null || glClosureId === undefined) { + throw new Error('Required parameter glClosureId was null or undefined when calling deleteGLClosure.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glclosures/${this.configuration.encodeParam({name: "glClosureId", value: glClosureId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve an Accounting Closure + * Example Requests: glclosures/1 /glclosures/1?fields=officeName,closingDate + * @param glClosureId glClosureId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retreiveClosure(glClosureId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retreiveClosure(glClosureId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retreiveClosure(glClosureId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retreiveClosure(glClosureId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (glClosureId === null || glClosureId === undefined) { + throw new Error('Required parameter glClosureId was null or undefined when calling retreiveClosure.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glclosures/${this.configuration.encodeParam({name: "glClosureId", value: glClosureId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Accounting closures + * Example Requests: glclosures + * @param officeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllClosures(officeId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClosures(officeId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllClosures(officeId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllClosures(officeId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glclosures`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update an Accounting closure + * Once an accounting closure is created, only the comments associated with it may be edited + * @param glClosureId glClosureId + * @param putGlClosuresRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateGLClosure(glClosureId: number, putGlClosuresRequest?: PutGlClosuresRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateGLClosure(glClosureId: number, putGlClosuresRequest?: PutGlClosuresRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateGLClosure(glClosureId: number, putGlClosuresRequest?: PutGlClosuresRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateGLClosure(glClosureId: number, putGlClosuresRequest?: PutGlClosuresRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (glClosureId === null || glClosureId === undefined) { + throw new Error('Required parameter glClosureId was null or undefined when calling updateGLClosure.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glclosures/${this.configuration.encodeParam({name: "glClosureId", value: glClosureId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putGlClosuresRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/accountingRules.service.ts b/packages/fineract-client/src/services/accountingRules.service.ts new file mode 100644 index 0000000000..ec66e7dd1e --- /dev/null +++ b/packages/fineract-client/src/services/accountingRules.service.ts @@ -0,0 +1,550 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { AccountingRuleData } from '../models/accountingRuleData'; +// @ts-ignore +import { DeleteAccountingRulesResponse } from '../models/deleteAccountingRulesResponse'; +// @ts-ignore +import { GetAccountRulesResponse } from '../models/getAccountRulesResponse'; +// @ts-ignore +import { GetAccountRulesTemplateResponse } from '../models/getAccountRulesTemplateResponse'; +// @ts-ignore +import { PostAccountingRulesRequest } from '../models/postAccountingRulesRequest'; +// @ts-ignore +import { PostAccountingRulesResponse } from '../models/postAccountingRulesResponse'; +// @ts-ignore +import { PutAccountingRulesRequest } from '../models/putAccountingRulesRequest'; +// @ts-ignore +import { PutAccountingRulesResponse } from '../models/putAccountingRulesResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class AccountingRulesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create/Define a Accounting rule + * Define a new Accounting rule. Mandatory Fields name, officeId, accountToDebit OR debitTags, accountToCredit OR creditTags. Optional Fields description + * @param postAccountingRulesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createAccountingRule(postAccountingRulesRequest?: PostAccountingRulesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createAccountingRule(postAccountingRulesRequest?: PostAccountingRulesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createAccountingRule(postAccountingRulesRequest?: PostAccountingRulesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createAccountingRule(postAccountingRulesRequest?: PostAccountingRulesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountingrules`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postAccountingRulesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Accounting Rule + * Deletes a Accounting rule. + * @param accountingRuleId accountingRuleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteAccountingRule(accountingRuleId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteAccountingRule(accountingRuleId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteAccountingRule(accountingRuleId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteAccountingRule(accountingRuleId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountingRuleId === null || accountingRuleId === undefined) { + throw new Error('Required parameter accountingRuleId was null or undefined when calling deleteAccountingRule.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountingrules/${this.configuration.encodeParam({name: "accountingRuleId", value: accountingRuleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Accounting rule + * Returns the details of a defined Accounting rule. Example Requests: accountingrules/1 + * @param accountingRuleId accountingRuleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retreiveAccountingRule(accountingRuleId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retreiveAccountingRule(accountingRuleId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retreiveAccountingRule(accountingRuleId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retreiveAccountingRule(accountingRuleId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountingRuleId === null || accountingRuleId === undefined) { + throw new Error('Required parameter accountingRuleId was null or undefined when calling retreiveAccountingRule.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountingrules/${this.configuration.encodeParam({name: "accountingRuleId", value: accountingRuleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Accounting Rules + * Returns the list of defined accounting rules. Example Requests: accountingrules + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllAccountingRules(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllAccountingRules(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllAccountingRules(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllAccountingRules(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountingrules`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Accounting Rule Details Template + * 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: accountingrules/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate1(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate1(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate1(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate1(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountingrules/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Accounting Rule + * Updates the details of a Accounting rule. + * @param accountingRuleId accountingRuleId + * @param putAccountingRulesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateAccountingRule(accountingRuleId: number, putAccountingRulesRequest?: PutAccountingRulesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateAccountingRule(accountingRuleId: number, putAccountingRulesRequest?: PutAccountingRulesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateAccountingRule(accountingRuleId: number, putAccountingRulesRequest?: PutAccountingRulesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateAccountingRule(accountingRuleId: number, putAccountingRulesRequest?: PutAccountingRulesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountingRuleId === null || accountingRuleId === undefined) { + throw new Error('Required parameter accountingRuleId was null or undefined when calling updateAccountingRule.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accountingrules/${this.configuration.encodeParam({name: "accountingRuleId", value: accountingRuleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putAccountingRulesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/adhocQueryApi.service.ts b/packages/fineract-client/src/services/adhocQueryApi.service.ts new file mode 100644 index 0000000000..d4747e04e9 --- /dev/null +++ b/packages/fineract-client/src/services/adhocQueryApi.service.ts @@ -0,0 +1,522 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class AdhocQueryApiService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createAdHocQuery(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createAdHocQuery(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createAdHocQuery(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createAdHocQuery(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/adhocquery`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param adHocId adHocId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteAdHocQuery(adHocId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteAdHocQuery(adHocId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteAdHocQuery(adHocId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteAdHocQuery(adHocId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (adHocId === null || adHocId === undefined) { + throw new Error('Required parameter adHocId was null or undefined when calling deleteAdHocQuery.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/adhocquery/${this.configuration.encodeParam({name: "adHocId", value: adHocId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param adHocId adHocId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAdHocQuery(adHocId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAdHocQuery(adHocId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAdHocQuery(adHocId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAdHocQuery(adHocId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (adHocId === null || adHocId === undefined) { + throw new Error('Required parameter adHocId was null or undefined when calling retrieveAdHocQuery.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/adhocquery/${this.configuration.encodeParam({name: "adHocId", value: adHocId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll2(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll2(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll2(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll2(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/adhocquery`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/adhocquery/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param adHocId adHocId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update(adHocId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update(adHocId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update(adHocId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update(adHocId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (adHocId === null || adHocId === undefined) { + throw new Error('Required parameter adHocId was null or undefined when calling update.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/adhocquery/${this.configuration.encodeParam({name: "adHocId", value: adHocId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/api.ts b/packages/fineract-client/src/services/api.ts new file mode 100644 index 0000000000..a2ca4f2d52 --- /dev/null +++ b/packages/fineract-client/src/services/api.ts @@ -0,0 +1,291 @@ +export * from './accountNumberFormat.service'; +import { AccountNumberFormatService } from './accountNumberFormat.service'; +export * from './accountTransfers.service'; +import { AccountTransfersService } from './accountTransfers.service'; +export * from './accountingClosure.service'; +import { AccountingClosureService } from './accountingClosure.service'; +export * from './accountingRules.service'; +import { AccountingRulesService } from './accountingRules.service'; +export * from './adhocQueryApi.service'; +import { AdhocQueryApiService } from './adhocQueryApi.service'; +export * from './audits.service'; +import { AuditsService } from './audits.service'; +export * from './authenticationHTTPBasic.service'; +import { AuthenticationHTTPBasicService } from './authenticationHTTPBasic.service'; +export * from './batchAPI.service'; +import { BatchAPIService } from './batchAPI.service'; +export * from './bulkImport.service'; +import { BulkImportService } from './bulkImport.service'; +export * from './bulkLoans.service'; +import { BulkLoansService } from './bulkLoans.service'; +export * from './businessDateManagement.service'; +import { BusinessDateManagementService } from './businessDateManagement.service'; +export * from './businessStepConfiguration.service'; +import { BusinessStepConfigurationService } from './businessStepConfiguration.service'; +export * from './cache.service'; +import { CacheService } from './cache.service'; +export * from './calendar.service'; +import { CalendarService } from './calendar.service'; +export * from './cashierJournals.service'; +import { CashierJournalsService } from './cashierJournals.service'; +export * from './cashiers.service'; +import { CashiersService } from './cashiers.service'; +export * from './centers.service'; +import { CentersService } from './centers.service'; +export * from './charges.service'; +import { ChargesService } from './charges.service'; +export * from './client.service'; +import { ClientService } from './client.service'; +export * from './clientCharges.service'; +import { ClientChargesService } from './clientCharges.service'; +export * from './clientCollateralManagement.service'; +import { ClientCollateralManagementService } from './clientCollateralManagement.service'; +export * from './clientFamilyMember.service'; +import { ClientFamilyMemberService } from './clientFamilyMember.service'; +export * from './clientIdentifier.service'; +import { ClientIdentifierService } from './clientIdentifier.service'; +export * from './clientSearchV2.service'; +import { ClientSearchV2Service } from './clientSearchV2.service'; +export * from './clientTransaction.service'; +import { ClientTransactionService } from './clientTransaction.service'; +export * from './clientsAddress.service'; +import { ClientsAddressService } from './clientsAddress.service'; +export * from './codeValues.service'; +import { CodeValuesService } from './codeValues.service'; +export * from './codes.service'; +import { CodesService } from './codes.service'; +export * from './collateralManagement.service'; +import { CollateralManagementService } from './collateralManagement.service'; +export * from './collectionSheet.service'; +import { CollectionSheetService } from './collectionSheet.service'; +export * from './creditBureauConfiguration.service'; +import { CreditBureauConfigurationService } from './creditBureauConfiguration.service'; +export * from './currency.service'; +import { CurrencyService } from './currency.service'; +export * from './dataTables.service'; +import { DataTablesService } from './dataTables.service'; +export * from './default.service'; +import { DefaultService } from './default.service'; +export * from './delinquencyRangeAndBucketsManagement.service'; +import { DelinquencyRangeAndBucketsManagementService } from './delinquencyRangeAndBucketsManagement.service'; +export * from './depositAccountOnHoldFundTransactions.service'; +import { DepositAccountOnHoldFundTransactionsService } from './depositAccountOnHoldFundTransactions.service'; +export * from './deviceRegistration.service'; +import { DeviceRegistrationService } from './deviceRegistration.service'; +export * from './documents.service'; +import { DocumentsService } from './documents.service'; +export * from './entityDataTable.service'; +import { EntityDataTableService } from './entityDataTable.service'; +export * from './entityFieldConfiguration.service'; +import { EntityFieldConfigurationService } from './entityFieldConfiguration.service'; +export * from './externalAssetOwners.service'; +import { ExternalAssetOwnersService } from './externalAssetOwners.service'; +export * from './externalEventConfiguration.service'; +import { ExternalEventConfigurationService } from './externalEventConfiguration.service'; +export * from './externalServices.service'; +import { ExternalServicesService } from './externalServices.service'; +export * from './fetchAuthenticatedUserDetails.service'; +import { FetchAuthenticatedUserDetailsService } from './fetchAuthenticatedUserDetails.service'; +export * from './fineractEntity.service'; +import { FineractEntityService } from './fineractEntity.service'; +export * from './fixedDepositAccount.service'; +import { FixedDepositAccountService } from './fixedDepositAccount.service'; +export * from './fixedDepositAccountTransactions.service'; +import { FixedDepositAccountTransactionsService } from './fixedDepositAccountTransactions.service'; +export * from './fixedDepositProduct.service'; +import { FixedDepositProductService } from './fixedDepositProduct.service'; +export * from './floatingRates.service'; +import { FloatingRatesService } from './floatingRates.service'; +export * from './funds.service'; +import { FundsService } from './funds.service'; +export * from './generalLedgerAccount.service'; +import { GeneralLedgerAccountService } from './generalLedgerAccount.service'; +export * from './globalConfiguration.service'; +import { GlobalConfigurationService } from './globalConfiguration.service'; +export * from './groups.service'; +import { GroupsService } from './groups.service'; +export * from './groupsLevel.service'; +import { GroupsLevelService } from './groupsLevel.service'; +export * from './guarantors.service'; +import { GuarantorsService } from './guarantors.service'; +export * from './holidays.service'; +import { HolidaysService } from './holidays.service'; +export * from './hooks.service'; +import { HooksService } from './hooks.service'; +export * from './inlineJob.service'; +import { InlineJobService } from './inlineJob.service'; +export * from './instanceMode.service'; +import { InstanceModeService } from './instanceMode.service'; +export * from './interOperation.service'; +import { InterOperationService } from './interOperation.service'; +export * from './interestRateChart.service'; +import { InterestRateChartService } from './interestRateChart.service'; +export * from './interestRateSlabAKAInterestBands.service'; +import { InterestRateSlabAKAInterestBandsService } from './interestRateSlabAKAInterestBands.service'; +export * from './journalEntries.service'; +import { JournalEntriesService } from './journalEntries.service'; +export * from './likelihood.service'; +import { LikelihoodService } from './likelihood.service'; +export * from './listReportMailingJobHistory.service'; +import { ListReportMailingJobHistoryService } from './listReportMailingJobHistory.service'; +export * from './loanAccountLock.service'; +import { LoanAccountLockService } from './loanAccountLock.service'; +export * from './loanCOBCatchUp.service'; +import { LoanCOBCatchUpService } from './loanCOBCatchUp.service'; +export * from './loanCharges.service'; +import { LoanChargesService } from './loanCharges.service'; +export * from './loanCollateral.service'; +import { LoanCollateralService } from './loanCollateral.service'; +export * from './loanCollateralManagement.service'; +import { LoanCollateralManagementService } from './loanCollateralManagement.service'; +export * from './loanDisbursementDetails.service'; +import { LoanDisbursementDetailsService } from './loanDisbursementDetails.service'; +export * from './loanProducts.service'; +import { LoanProductsService } from './loanProducts.service'; +export * from './loanRescheduling.service'; +import { LoanReschedulingService } from './loanRescheduling.service'; +export * from './loanTransactions.service'; +import { LoanTransactionsService } from './loanTransactions.service'; +export * from './loans.service'; +import { LoansService } from './loans.service'; +export * from './makerCheckerOr4EyeFunctionality.service'; +import { MakerCheckerOr4EyeFunctionalityService } from './makerCheckerOr4EyeFunctionality.service'; +export * from './mappingFinancialActivitiesToAccounts.service'; +import { MappingFinancialActivitiesToAccountsService } from './mappingFinancialActivitiesToAccounts.service'; +export * from './meetings.service'; +import { MeetingsService } from './meetings.service'; +export * from './mixMapping.service'; +import { MixMappingService } from './mixMapping.service'; +export * from './mixReport.service'; +import { MixReportService } from './mixReport.service'; +export * from './mixTaxonomy.service'; +import { MixTaxonomyService } from './mixTaxonomy.service'; +export * from './notes.service'; +import { NotesService } from './notes.service'; +export * from './notification.service'; +import { NotificationService } from './notification.service'; +export * from './offices.service'; +import { OfficesService } from './offices.service'; +export * from './passwordPreferences.service'; +import { PasswordPreferencesService } from './passwordPreferences.service'; +export * from './paymentType.service'; +import { PaymentTypeService } from './paymentType.service'; +export * from './periodicAccrualAccounting.service'; +import { PeriodicAccrualAccountingService } from './periodicAccrualAccounting.service'; +export * from './permissions.service'; +import { PermissionsService } from './permissions.service'; +export * from './pocket.service'; +import { PocketService } from './pocket.service'; +export * from './povertyLine.service'; +import { PovertyLineService } from './povertyLine.service'; +export * from './productMix.service'; +import { ProductMixService } from './productMix.service'; +export * from './products.service'; +import { ProductsService } from './products.service'; +export * from './provisioningCategory.service'; +import { ProvisioningCategoryService } from './provisioningCategory.service'; +export * from './provisioningCriteria.service'; +import { ProvisioningCriteriaService } from './provisioningCriteria.service'; +export * from './provisioningEntries.service'; +import { ProvisioningEntriesService } from './provisioningEntries.service'; +export * from './rate.service'; +import { RateService } from './rate.service'; +export * from './recurringDepositAccount.service'; +import { RecurringDepositAccountService } from './recurringDepositAccount.service'; +export * from './recurringDepositAccountTransactions.service'; +import { RecurringDepositAccountTransactionsService } from './recurringDepositAccountTransactions.service'; +export * from './recurringDepositProduct.service'; +import { RecurringDepositProductService } from './recurringDepositProduct.service'; +export * from './repaymentWithPostDatedChecks.service'; +import { RepaymentWithPostDatedChecksService } from './repaymentWithPostDatedChecks.service'; +export * from './reportMailingJobs.service'; +import { ReportMailingJobsService } from './reportMailingJobs.service'; +export * from './reports.service'; +import { ReportsService } from './reports.service'; +export * from './rescheduleLoans.service'; +import { RescheduleLoansService } from './rescheduleLoans.service'; +export * from './roles.service'; +import { RolesService } from './roles.service'; +export * from './runReports.service'; +import { RunReportsService } from './runReports.service'; +export * from './sCHEDULERJOB.service'; +import { SCHEDULERJOBService } from './sCHEDULERJOB.service'; +export * from './sMS.service'; +import { SMSService } from './sMS.service'; +export * from './sPMAPILookUpTable.service'; +import { SPMAPILookUpTableService } from './sPMAPILookUpTable.service'; +export * from './savingsAccount.service'; +import { SavingsAccountService } from './savingsAccount.service'; +export * from './savingsAccountTransactions.service'; +import { SavingsAccountTransactionsService } from './savingsAccountTransactions.service'; +export * from './savingsCharges.service'; +import { SavingsChargesService } from './savingsCharges.service'; +export * from './savingsProduct.service'; +import { SavingsProductService } from './savingsProduct.service'; +export * from './scheduler.service'; +import { SchedulerService } from './scheduler.service'; +export * from './scoreCard.service'; +import { ScoreCardService } from './scoreCard.service'; +export * from './searchAPI.service'; +import { SearchAPIService } from './searchAPI.service'; +export * from './selfAccountTransfer.service'; +import { SelfAccountTransferService } from './selfAccountTransfer.service'; +export * from './selfAuthentication.service'; +import { SelfAuthenticationService } from './selfAuthentication.service'; +export * from './selfClient.service'; +import { SelfClientService } from './selfClient.service'; +export * from './selfDividend.service'; +import { SelfDividendService } from './selfDividend.service'; +export * from './selfLoanProducts.service'; +import { SelfLoanProductsService } from './selfLoanProducts.service'; +export * from './selfLoans.service'; +import { SelfLoansService } from './selfLoans.service'; +export * from './selfRunReport.service'; +import { SelfRunReportService } from './selfRunReport.service'; +export * from './selfSavingsAccount.service'; +import { SelfSavingsAccountService } from './selfSavingsAccount.service'; +export * from './selfSavingsProducts.service'; +import { SelfSavingsProductsService } from './selfSavingsProducts.service'; +export * from './selfScoreCard.service'; +import { SelfScoreCardService } from './selfScoreCard.service'; +export * from './selfServiceRegistration.service'; +import { SelfServiceRegistrationService } from './selfServiceRegistration.service'; +export * from './selfShareAccounts.service'; +import { SelfShareAccountsService } from './selfShareAccounts.service'; +export * from './selfShareProducts.service'; +import { SelfShareProductsService } from './selfShareProducts.service'; +export * from './selfSpm.service'; +import { SelfSpmService } from './selfSpm.service'; +export * from './selfThirdPartyTransfer.service'; +import { SelfThirdPartyTransferService } from './selfThirdPartyTransfer.service'; +export * from './selfUser.service'; +import { SelfUserService } from './selfUser.service'; +export * from './selfUserDetails.service'; +import { SelfUserDetailsService } from './selfUserDetails.service'; +export * from './shareAccount.service'; +import { ShareAccountService } from './shareAccount.service'; +export * from './spmSurveys.service'; +import { SpmSurveysService } from './spmSurveys.service'; +export * from './staff.service'; +import { StaffService } from './staff.service'; +export * from './standingInstructions.service'; +import { StandingInstructionsService } from './standingInstructions.service'; +export * from './standingInstructionsHistory.service'; +import { StandingInstructionsHistoryService } from './standingInstructionsHistory.service'; +export * from './survey.service'; +import { SurveyService } from './survey.service'; +export * from './taxComponents.service'; +import { TaxComponentsService } from './taxComponents.service'; +export * from './taxGroup.service'; +import { TaxGroupService } from './taxGroup.service'; +export * from './tellerCashManagement.service'; +import { TellerCashManagementService } from './tellerCashManagement.service'; +export * from './twoFactor.service'; +import { TwoFactorService } from './twoFactor.service'; +export * from './userGeneratedDocuments.service'; +import { UserGeneratedDocumentsService } from './userGeneratedDocuments.service'; +export * from './users.service'; +import { UsersService } from './users.service'; +export * from './workingDays.service'; +import { WorkingDaysService } from './workingDays.service'; +export const APIS = [AccountNumberFormatService, AccountTransfersService, AccountingClosureService, AccountingRulesService, AdhocQueryApiService, AuditsService, AuthenticationHTTPBasicService, BatchAPIService, BulkImportService, BulkLoansService, BusinessDateManagementService, BusinessStepConfigurationService, CacheService, CalendarService, CashierJournalsService, CashiersService, CentersService, ChargesService, ClientService, ClientChargesService, ClientCollateralManagementService, ClientFamilyMemberService, ClientIdentifierService, ClientSearchV2Service, ClientTransactionService, ClientsAddressService, CodeValuesService, CodesService, CollateralManagementService, CollectionSheetService, CreditBureauConfigurationService, CurrencyService, DataTablesService, DefaultService, DelinquencyRangeAndBucketsManagementService, DepositAccountOnHoldFundTransactionsService, DeviceRegistrationService, DocumentsService, EntityDataTableService, EntityFieldConfigurationService, ExternalAssetOwnersService, ExternalEventConfigurationService, ExternalServicesService, FetchAuthenticatedUserDetailsService, FineractEntityService, FixedDepositAccountService, FixedDepositAccountTransactionsService, FixedDepositProductService, FloatingRatesService, FundsService, GeneralLedgerAccountService, GlobalConfigurationService, GroupsService, GroupsLevelService, GuarantorsService, HolidaysService, HooksService, InlineJobService, InstanceModeService, InterOperationService, InterestRateChartService, InterestRateSlabAKAInterestBandsService, JournalEntriesService, LikelihoodService, ListReportMailingJobHistoryService, LoanAccountLockService, LoanCOBCatchUpService, LoanChargesService, LoanCollateralService, LoanCollateralManagementService, LoanDisbursementDetailsService, LoanProductsService, LoanReschedulingService, LoanTransactionsService, LoansService, MakerCheckerOr4EyeFunctionalityService, MappingFinancialActivitiesToAccountsService, MeetingsService, MixMappingService, MixReportService, MixTaxonomyService, NotesService, NotificationService, OfficesService, PasswordPreferencesService, PaymentTypeService, PeriodicAccrualAccountingService, PermissionsService, PocketService, PovertyLineService, ProductMixService, ProductsService, ProvisioningCategoryService, ProvisioningCriteriaService, ProvisioningEntriesService, RateService, RecurringDepositAccountService, RecurringDepositAccountTransactionsService, RecurringDepositProductService, RepaymentWithPostDatedChecksService, ReportMailingJobsService, ReportsService, RescheduleLoansService, RolesService, RunReportsService, SCHEDULERJOBService, SMSService, SPMAPILookUpTableService, SavingsAccountService, SavingsAccountTransactionsService, SavingsChargesService, SavingsProductService, SchedulerService, ScoreCardService, SearchAPIService, SelfAccountTransferService, SelfAuthenticationService, SelfClientService, SelfDividendService, SelfLoanProductsService, SelfLoansService, SelfRunReportService, SelfSavingsAccountService, SelfSavingsProductsService, SelfScoreCardService, SelfServiceRegistrationService, SelfShareAccountsService, SelfShareProductsService, SelfSpmService, SelfThirdPartyTransferService, SelfUserService, SelfUserDetailsService, ShareAccountService, SpmSurveysService, StaffService, StandingInstructionsService, StandingInstructionsHistoryService, SurveyService, TaxComponentsService, TaxGroupService, TellerCashManagementService, TwoFactorService, UserGeneratedDocumentsService, UsersService, WorkingDaysService]; diff --git a/packages/fineract-client/src/services/audits.service.ts b/packages/fineract-client/src/services/audits.service.ts new file mode 100644 index 0000000000..f17f892ad9 --- /dev/null +++ b/packages/fineract-client/src/services/audits.service.ts @@ -0,0 +1,407 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetMakerCheckerResponse } from '../models/getMakerCheckerResponse'; +// @ts-ignore +import { GetMakerCheckersSearchTemplateResponse } from '../models/getMakerCheckersSearchTemplateResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class AuditsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * List Audits + * Get a 200 list of audits that match the criteria supplied and sorted by audit id in descending order, and are within the requestors\' data scope. Also it supports pagination and sorting Example Requests: audits audits?fields=madeOnDate,maker,processingResult audits?makerDateTimeFrom=2013-03-25 08:00:00&makerDateTimeTo=2013-04-04 18:00:00 audits?officeId=1 audits?officeId=1&includeJson=true + * @param actionName actionName + * @param entityName entityName + * @param resourceId resourceId + * @param makerId makerId + * @param makerDateTimeFrom makerDateTimeFrom + * @param makerDateTimeTo makerDateTimeTo + * @param checkerId checkerId + * @param checkerDateTimeFrom checkerDateTimeFrom + * @param checkerDateTimeTo checkerDateTimeTo + * @param processingResult processingResult + * @param officeId officeId + * @param groupId groupId + * @param clientId clientId + * @param loanid loanid + * @param savingsAccountId savingsAccountId + * @param paged paged + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAuditEntries(actionName?: string, entityName?: string, resourceId?: number, makerId?: number, makerDateTimeFrom?: string, makerDateTimeTo?: string, checkerId?: number, checkerDateTimeFrom?: string, checkerDateTimeTo?: string, processingResult?: number, officeId?: number, groupId?: number, clientId?: number, loanid?: number, savingsAccountId?: number, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAuditEntries(actionName?: string, entityName?: string, resourceId?: number, makerId?: number, makerDateTimeFrom?: string, makerDateTimeTo?: string, checkerId?: number, checkerDateTimeFrom?: string, checkerDateTimeTo?: string, processingResult?: number, officeId?: number, groupId?: number, clientId?: number, loanid?: number, savingsAccountId?: number, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAuditEntries(actionName?: string, entityName?: string, resourceId?: number, makerId?: number, makerDateTimeFrom?: string, makerDateTimeTo?: string, checkerId?: number, checkerDateTimeFrom?: string, checkerDateTimeTo?: string, processingResult?: number, officeId?: number, groupId?: number, clientId?: number, loanid?: number, savingsAccountId?: number, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAuditEntries(actionName?: string, entityName?: string, resourceId?: number, makerId?: number, makerDateTimeFrom?: string, makerDateTimeTo?: string, checkerId?: number, checkerDateTimeFrom?: string, checkerDateTimeTo?: string, processingResult?: number, officeId?: number, groupId?: number, clientId?: number, loanid?: number, savingsAccountId?: number, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (actionName !== undefined && actionName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + actionName, 'actionName'); + } + if (entityName !== undefined && entityName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + entityName, 'entityName'); + } + if (resourceId !== undefined && resourceId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + resourceId, 'resourceId'); + } + if (makerId !== undefined && makerId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + makerId, 'makerId'); + } + if (makerDateTimeFrom !== undefined && makerDateTimeFrom !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + makerDateTimeFrom, 'makerDateTimeFrom'); + } + if (makerDateTimeTo !== undefined && makerDateTimeTo !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + makerDateTimeTo, 'makerDateTimeTo'); + } + if (checkerId !== undefined && checkerId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + checkerId, 'checkerId'); + } + if (checkerDateTimeFrom !== undefined && checkerDateTimeFrom !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + checkerDateTimeFrom, 'checkerDateTimeFrom'); + } + if (checkerDateTimeTo !== undefined && checkerDateTimeTo !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + checkerDateTimeTo, 'checkerDateTimeTo'); + } + if (processingResult !== undefined && processingResult !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + processingResult, 'processingResult'); + } + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (groupId !== undefined && groupId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + groupId, 'groupId'); + } + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (loanid !== undefined && loanid !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + loanid, 'loanid'); + } + if (savingsAccountId !== undefined && savingsAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + savingsAccountId, 'savingsAccountId'); + } + if (paged !== undefined && paged !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + paged, 'paged'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/audits`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve an Audit Entry + * Example Requests: audits/20 audits/20?fields=madeOnDate,maker,processingResult + * @param auditId auditId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAuditEntry(auditId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAuditEntry(auditId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAuditEntry(auditId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAuditEntry(auditId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (auditId === null || auditId === undefined) { + throw new Error('Required parameter auditId was null or undefined when calling retrieveAuditEntry.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/audits/${this.configuration.encodeParam({name: "auditId", value: auditId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Audit Search Template + * This is a convenience resource. It can be useful when building an Audit Search UI. \"appUsers\" are data scoped to the office/branch the requestor is associated with. Example Requests: audits/searchtemplate audits/searchtemplate?fields=actionNames + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAuditSearchTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAuditSearchTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAuditSearchTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAuditSearchTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/audits/searchtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/authenticationHTTPBasic.service.ts b/packages/fineract-client/src/services/authenticationHTTPBasic.service.ts new file mode 100644 index 0000000000..46aafa83c3 --- /dev/null +++ b/packages/fineract-client/src/services/authenticationHTTPBasic.service.ts @@ -0,0 +1,186 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { PostAuthenticationRequest } from '../models/postAuthenticationRequest'; +// @ts-ignore +import { PostAuthenticationResponse } from '../models/postAuthenticationResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class AuthenticationHTTPBasicService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Verify authentication + * Authenticates the credentials provided and returns the set roles and permissions allowed. + * @param postAuthenticationRequest + * @param returnClientList + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public authenticate(postAuthenticationRequest: PostAuthenticationRequest, returnClientList?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public authenticate(postAuthenticationRequest: PostAuthenticationRequest, returnClientList?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public authenticate(postAuthenticationRequest: PostAuthenticationRequest, returnClientList?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public authenticate(postAuthenticationRequest: PostAuthenticationRequest, returnClientList?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postAuthenticationRequest === null || postAuthenticationRequest === undefined) { + throw new Error('Required parameter postAuthenticationRequest was null or undefined when calling authenticate.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (returnClientList !== undefined && returnClientList !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + returnClientList, 'returnClientList'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/authentication`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postAuthenticationRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/batchAPI.service.ts b/packages/fineract-client/src/services/batchAPI.service.ts new file mode 100644 index 0000000000..c901d9155a --- /dev/null +++ b/packages/fineract-client/src/services/batchAPI.service.ts @@ -0,0 +1,186 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { BatchRequest } from '../models/batchRequest'; +// @ts-ignore +import { BatchResponse } from '../models/batchResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class BatchAPIService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Batch requests in a single transaction + * 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. + * @param batchRequest + * @param enclosingTransaction enclosingTransaction + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleBatchRequests(batchRequest: Array, enclosingTransaction?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleBatchRequests(batchRequest: Array, enclosingTransaction?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public handleBatchRequests(batchRequest: Array, enclosingTransaction?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public handleBatchRequests(batchRequest: Array, enclosingTransaction?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (batchRequest === null || batchRequest === undefined) { + throw new Error('Required parameter batchRequest was null or undefined when calling handleBatchRequests.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (enclosingTransaction !== undefined && enclosingTransaction !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + enclosingTransaction, 'enclosingTransaction'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/batches`; + return this.httpClient.request>('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: batchRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/bulkImport.service.ts b/packages/fineract-client/src/services/bulkImport.service.ts new file mode 100644 index 0000000000..fcb31b7e59 --- /dev/null +++ b/packages/fineract-client/src/services/bulkImport.service.ts @@ -0,0 +1,314 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class BulkImportService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param importDocumentId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getOutputTemplate(importDocumentId?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getOutputTemplate(importDocumentId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getOutputTemplate(importDocumentId?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getOutputTemplate(importDocumentId?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (importDocumentId !== undefined && importDocumentId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + importDocumentId, 'importDocumentId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/imports/downloadOutputTemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entityType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveImportDocuments(entityType?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveImportDocuments(entityType?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveImportDocuments(entityType?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveImportDocuments(entityType?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (entityType !== undefined && entityType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + entityType, 'entityType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/imports`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param importDocumentId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retriveOutputTemplateLocation(importDocumentId?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public retriveOutputTemplateLocation(importDocumentId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public retriveOutputTemplateLocation(importDocumentId?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public retriveOutputTemplateLocation(importDocumentId?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (importDocumentId !== undefined && importDocumentId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + importDocumentId, 'importDocumentId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/imports/getOutputTemplateLocation`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/bulkLoans.service.ts b/packages/fineract-client/src/services/bulkLoans.service.ts new file mode 100644 index 0000000000..45a679162d --- /dev/null +++ b/packages/fineract-client/src/services/bulkLoans.service.ts @@ -0,0 +1,248 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class BulkLoansService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public loanReassignment(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public loanReassignment(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public loanReassignment(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public loanReassignment(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/loanreassignment`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param fromLoanOfficerId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public loanReassignmentTemplate(officeId?: number, fromLoanOfficerId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public loanReassignmentTemplate(officeId?: number, fromLoanOfficerId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public loanReassignmentTemplate(officeId?: number, fromLoanOfficerId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public loanReassignmentTemplate(officeId?: number, fromLoanOfficerId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (fromLoanOfficerId !== undefined && fromLoanOfficerId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromLoanOfficerId, 'fromLoanOfficerId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/loanreassignment/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/businessDateManagement.service.ts b/packages/fineract-client/src/services/businessDateManagement.service.ts new file mode 100644 index 0000000000..504f1607da --- /dev/null +++ b/packages/fineract-client/src/services/businessDateManagement.service.ts @@ -0,0 +1,315 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { BusinessDateRequest } from '../models/businessDateRequest'; +// @ts-ignore +import { BusinessDateResponse } from '../models/businessDateResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class BusinessDateManagementService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieve a specific Business date + * @param type type + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getBusinessDate(type: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getBusinessDate(type: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getBusinessDate(type: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getBusinessDate(type: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling getBusinessDate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/businessdate/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List all business dates + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getBusinessDates(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getBusinessDates(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getBusinessDates(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getBusinessDates(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/businessdate`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Business Date + * @param businessDateRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateBusinessDate(businessDateRequest: BusinessDateRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateBusinessDate(businessDateRequest: BusinessDateRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateBusinessDate(businessDateRequest: BusinessDateRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateBusinessDate(businessDateRequest: BusinessDateRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (businessDateRequest === null || businessDateRequest === undefined) { + throw new Error('Required parameter businessDateRequest was null or undefined when calling updateBusinessDate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/businessdate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: businessDateRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/businessStepConfiguration.service.ts b/packages/fineract-client/src/services/businessStepConfiguration.service.ts new file mode 100644 index 0000000000..afd0677d37 --- /dev/null +++ b/packages/fineract-client/src/services/businessStepConfiguration.service.ts @@ -0,0 +1,392 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetBusinessJobConfigResponse } from '../models/getBusinessJobConfigResponse'; +// @ts-ignore +import { GetBusinessStepConfigResponse } from '../models/getBusinessStepConfigResponse'; +// @ts-ignore +import { UpdateBusinessStepConfigRequest } from '../models/updateBusinessStepConfigRequest'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class BusinessStepConfigurationService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * List Business Step Configurations for a Job + * Returns the available Business Steps for a job + * @param jobName jobName + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllAvailableBusinessStep(jobName: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllAvailableBusinessStep(jobName: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllAvailableBusinessStep(jobName: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllAvailableBusinessStep(jobName: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (jobName === null || jobName === undefined) { + throw new Error('Required parameter jobName was null or undefined when calling retrieveAllAvailableBusinessStep.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/jobs/${this.configuration.encodeParam({name: "jobName", value: jobName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/available-steps`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Business Jobs + * Returns the configured Business Jobs + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllConfiguredBusinessJobs(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllConfiguredBusinessJobs(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllConfiguredBusinessJobs(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllConfiguredBusinessJobs(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/jobs/names`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Business Step Configurations for a Job + * Returns the configured Business Steps for a job + * @param jobName jobName + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllConfiguredBusinessStep(jobName: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllConfiguredBusinessStep(jobName: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllConfiguredBusinessStep(jobName: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllConfiguredBusinessStep(jobName: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (jobName === null || jobName === undefined) { + throw new Error('Required parameter jobName was null or undefined when calling retrieveAllConfiguredBusinessStep.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/jobs/${this.configuration.encodeParam({name: "jobName", value: jobName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/steps`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Business Step Configurations for a Job + * Updates the Business steps execution order for a job + * @param jobName jobName + * @param updateBusinessStepConfigRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateJobBusinessStepConfig(jobName: string, updateBusinessStepConfigRequest?: UpdateBusinessStepConfigRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public updateJobBusinessStepConfig(jobName: string, updateBusinessStepConfigRequest?: UpdateBusinessStepConfigRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public updateJobBusinessStepConfig(jobName: string, updateBusinessStepConfigRequest?: UpdateBusinessStepConfigRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public updateJobBusinessStepConfig(jobName: string, updateBusinessStepConfigRequest?: UpdateBusinessStepConfigRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (jobName === null || jobName === undefined) { + throw new Error('Required parameter jobName was null or undefined when calling updateJobBusinessStepConfig.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/jobs/${this.configuration.encodeParam({name: "jobName", value: jobName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/steps`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: updateBusinessStepConfigRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/cache.service.ts b/packages/fineract-client/src/services/cache.service.ts new file mode 100644 index 0000000000..34c51d8a27 --- /dev/null +++ b/packages/fineract-client/src/services/cache.service.ts @@ -0,0 +1,248 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetCachesResponse } from '../models/getCachesResponse'; +// @ts-ignore +import { PutCachesRequest } from '../models/putCachesRequest'; +// @ts-ignore +import { PutCachesResponse } from '../models/putCachesResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CacheService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieve Cache Types + * Returns the list of caches. Example Requests: caches + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll4(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll4(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll4(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll4(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/caches`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Switch Cache + * Switches the cache to chosen one. + * @param putCachesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public switchCache(putCachesRequest: PutCachesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public switchCache(putCachesRequest: PutCachesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public switchCache(putCachesRequest: PutCachesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public switchCache(putCachesRequest: PutCachesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (putCachesRequest === null || putCachesRequest === undefined) { + throw new Error('Required parameter putCachesRequest was null or undefined when calling switchCache.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/caches`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putCachesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/calendar.service.ts b/packages/fineract-client/src/services/calendar.service.ts new file mode 100644 index 0000000000..8f75524d3a --- /dev/null +++ b/packages/fineract-client/src/services/calendar.service.ts @@ -0,0 +1,578 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CalendarService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param entityType + * @param entityId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCalendar(entityType: string, entityId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCalendar(entityType: string, entityId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCalendar(entityType: string, entityId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCalendar(entityType: string, entityId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling createCalendar.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling createCalendar.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/calendars`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entityType + * @param entityId + * @param calendarId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteCalendar(entityType: string, entityId: number, calendarId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteCalendar(entityType: string, entityId: number, calendarId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCalendar(entityType: string, entityId: number, calendarId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCalendar(entityType: string, entityId: number, calendarId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling deleteCalendar.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling deleteCalendar.'); + } + if (calendarId === null || calendarId === undefined) { + throw new Error('Required parameter calendarId was null or undefined when calling deleteCalendar.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/calendars/${this.configuration.encodeParam({name: "calendarId", value: calendarId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param calendarId + * @param entityType + * @param entityId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCalendar(calendarId: number, entityType: string, entityId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveCalendar(calendarId: number, entityType: string, entityId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCalendar(calendarId: number, entityType: string, entityId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCalendar(calendarId: number, entityType: string, entityId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (calendarId === null || calendarId === undefined) { + throw new Error('Required parameter calendarId was null or undefined when calling retrieveCalendar.'); + } + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling retrieveCalendar.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling retrieveCalendar.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/calendars/${this.configuration.encodeParam({name: "calendarId", value: calendarId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entityType + * @param entityId + * @param calendarType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCalendarsByEntity(entityType: string, entityId: number, calendarType?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveCalendarsByEntity(entityType: string, entityId: number, calendarType?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCalendarsByEntity(entityType: string, entityId: number, calendarType?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCalendarsByEntity(entityType: string, entityId: number, calendarType?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling retrieveCalendarsByEntity.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling retrieveCalendarsByEntity.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (calendarType !== undefined && calendarType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + calendarType, 'calendarType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/calendars`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entityType + * @param entityId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveNewCalendarDetails(entityType: string, entityId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveNewCalendarDetails(entityType: string, entityId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveNewCalendarDetails(entityType: string, entityId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveNewCalendarDetails(entityType: string, entityId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling retrieveNewCalendarDetails.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling retrieveNewCalendarDetails.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/calendars/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entityType + * @param entityId + * @param calendarId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCalendar(entityType: string, entityId: number, calendarId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCalendar(entityType: string, entityId: number, calendarId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCalendar(entityType: string, entityId: number, calendarId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCalendar(entityType: string, entityId: number, calendarId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling updateCalendar.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling updateCalendar.'); + } + if (calendarId === null || calendarId === undefined) { + throw new Error('Required parameter calendarId was null or undefined when calling updateCalendar.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/calendars/${this.configuration.encodeParam({name: "calendarId", value: calendarId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/cashierJournals.service.ts b/packages/fineract-client/src/services/cashierJournals.service.ts new file mode 100644 index 0000000000..bfc6832367 --- /dev/null +++ b/packages/fineract-client/src/services/cashierJournals.service.ts @@ -0,0 +1,181 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CashierJournalsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param officeId + * @param tellerId + * @param cashierId + * @param dateRange + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getJournalData1(officeId?: number, tellerId?: number, cashierId?: number, dateRange?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getJournalData1(officeId?: number, tellerId?: number, cashierId?: number, dateRange?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getJournalData1(officeId?: number, tellerId?: number, cashierId?: number, dateRange?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getJournalData1(officeId?: number, tellerId?: number, cashierId?: number, dateRange?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (tellerId !== undefined && tellerId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + tellerId, 'tellerId'); + } + if (cashierId !== undefined && cashierId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + cashierId, 'cashierId'); + } + if (dateRange !== undefined && dateRange !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateRange, 'dateRange'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/cashiersjournal`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/cashiers.service.ts b/packages/fineract-client/src/services/cashiers.service.ts new file mode 100644 index 0000000000..5348920dd0 --- /dev/null +++ b/packages/fineract-client/src/services/cashiers.service.ts @@ -0,0 +1,181 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CashiersService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param officeId + * @param tellerId + * @param staffId + * @param date + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCashierData(officeId?: number, tellerId?: number, staffId?: number, date?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getCashierData(officeId?: number, tellerId?: number, staffId?: number, date?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCashierData(officeId?: number, tellerId?: number, staffId?: number, date?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCashierData(officeId?: number, tellerId?: number, staffId?: number, date?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (tellerId !== undefined && tellerId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + tellerId, 'tellerId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (date !== undefined && date !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + date, 'date'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/cashiers`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/centers.service.ts b/packages/fineract-client/src/services/centers.service.ts new file mode 100644 index 0000000000..7adf9866a3 --- /dev/null +++ b/packages/fineract-client/src/services/centers.service.ts @@ -0,0 +1,1017 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteCentersCenterIdResponse } from '../models/deleteCentersCenterIdResponse'; +// @ts-ignore +import { GetCentersCenterIdAccountsResponse } from '../models/getCentersCenterIdAccountsResponse'; +// @ts-ignore +import { GetCentersCenterIdResponse } from '../models/getCentersCenterIdResponse'; +// @ts-ignore +import { GetCentersResponse } from '../models/getCentersResponse'; +// @ts-ignore +import { GetCentersTemplateResponse } from '../models/getCentersTemplateResponse'; +// @ts-ignore +import { PostCentersCenterIdRequest } from '../models/postCentersCenterIdRequest'; +// @ts-ignore +import { PostCentersCenterIdResponse } from '../models/postCentersCenterIdResponse'; +// @ts-ignore +import { PostCentersRequest } from '../models/postCentersRequest'; +// @ts-ignore +import { PostCentersResponse } from '../models/postCentersResponse'; +// @ts-ignore +import { PutCentersCenterIdRequest } from '../models/putCentersCenterIdRequest'; +// @ts-ignore +import { PutCentersCenterIdResponse } from '../models/putCentersCenterIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CentersService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Activate a Center | Generate Collection Sheet | Save Collection Sheet | Close a Center | Associate Groups | Disassociate Groups + * Activate a Center: Centers can be created in a Pending state. This API exists to enable center activation. If the center happens to be already active, this API will result in an error. Close a Center: Centers can be closed if they don\'t have any non-closed groups or saving accounts. If the Center has any active groups or savings accounts, this API will result in an error. Associate Groups: This API allows associating existing groups to a center. The groups are listed from the office to which the center is associated. If group(s) is already associated with a center, this API will result in an error. Disassociate Groups: This API allows to disassociate groups from a center. Generate Collection Sheet: This Api retrieves repayment details of all jlg loans under a center as on a specified meeting date. Save Collection Sheet: This Api allows the loan officer to perform bulk repayments of JLG loans for a center on a given meeting date. Showing Request/Response for Close a Center + * @param centerId centerId + * @param postCentersCenterIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public activate2(centerId: number, postCentersCenterIdRequest: PostCentersCenterIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public activate2(centerId: number, postCentersCenterIdRequest: PostCentersCenterIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public activate2(centerId: number, postCentersCenterIdRequest: PostCentersCenterIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public activate2(centerId: number, postCentersCenterIdRequest: PostCentersCenterIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (centerId === null || centerId === undefined) { + throw new Error('Required parameter centerId was null or undefined when calling activate2.'); + } + if (postCentersCenterIdRequest === null || postCentersCenterIdRequest === undefined) { + throw new Error('Required parameter postCentersCenterIdRequest was null or undefined when calling activate2.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/centers/${this.configuration.encodeParam({name: "centerId", value: centerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postCentersCenterIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create a Center + * Creates a Center Mandatory Fields: name, officeId, active, activationDate (if active=true) Optional Fields: externalId, staffId, groupMembers + * @param postCentersRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create7(postCentersRequest: PostCentersRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create7(postCentersRequest: PostCentersRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create7(postCentersRequest: PostCentersRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create7(postCentersRequest: PostCentersRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postCentersRequest === null || postCentersRequest === undefined) { + throw new Error('Required parameter postCentersRequest was null or undefined when calling create7.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/centers`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postCentersRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Center + * A Center can be deleted if it is in pending state and has no association - groups, loans or savings + * @param centerId centerId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete11(centerId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete11(centerId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete11(centerId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete11(centerId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (centerId === null || centerId === undefined) { + throw new Error('Required parameter centerId was null or undefined when calling delete11.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/centers/${this.configuration.encodeParam({name: "centerId", value: centerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param staffId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCentersTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getCentersTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getCentersTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getCentersTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/centers/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postCentersTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postCentersTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postCentersTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postCentersTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/centers/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Centers + * The default implementation supports pagination and sorting with the default pagination size set to 200 records. The parameter limit with description -1 will return all entries. Example Requests: centers centers?fields=name,officeName,joinedDate centers?offset=10&limit=50 centers?orderBy=name&sortOrder=DESC + * @param officeId officeId + * @param staffId staffId + * @param externalId externalId + * @param name name + * @param underHierarchy underHierarchy + * @param paged paged + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param meetingDate meetingDate + * @param dateFormat dateFormat + * @param locale locale + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll23(officeId?: number, staffId?: number, externalId?: string, name?: string, underHierarchy?: string, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, meetingDate?: object, dateFormat?: string, locale?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll23(officeId?: number, staffId?: number, externalId?: string, name?: string, underHierarchy?: string, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, meetingDate?: object, dateFormat?: string, locale?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll23(officeId?: number, staffId?: number, externalId?: string, name?: string, underHierarchy?: string, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, meetingDate?: object, dateFormat?: string, locale?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll23(officeId?: number, staffId?: number, externalId?: string, name?: string, underHierarchy?: string, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, meetingDate?: object, dateFormat?: string, locale?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (externalId !== undefined && externalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalId, 'externalId'); + } + if (name !== undefined && name !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + name, 'name'); + } + if (underHierarchy !== undefined && underHierarchy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + underHierarchy, 'underHierarchy'); + } + if (paged !== undefined && paged !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + paged, 'paged'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (meetingDate !== undefined && meetingDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + meetingDate, 'meetingDate'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + if (locale !== undefined && locale !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + locale, 'locale'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/centers`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Center accounts overview + * An example of how a savings summary for a Center can be provided. This is requested in a specific use case of the reference application. It is quite reasonable to add resources like this to simplify User Interface development. Example Requests: centers/9/accounts + * @param centerId centerId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveGroupAccount(centerId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveGroupAccount(centerId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveGroupAccount(centerId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveGroupAccount(centerId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (centerId === null || centerId === undefined) { + throw new Error('Required parameter centerId was null or undefined when calling retrieveGroupAccount.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/centers/${this.configuration.encodeParam({name: "centerId", value: centerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/accounts`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Center + * Retrieves a Center Example Requests: centers/1 centers/1?associations=groupMembers + * @param centerId centerId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne14(centerId: number, staffInSelectedOfficeOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne14(centerId: number, staffInSelectedOfficeOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne14(centerId: number, staffInSelectedOfficeOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne14(centerId: number, staffInSelectedOfficeOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (centerId === null || centerId === undefined) { + throw new Error('Required parameter centerId was null or undefined when calling retrieveOne14.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/centers/${this.configuration.encodeParam({name: "centerId", value: centerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Center Template + * Retrieves a Center Template Example Requests: centers/template centers/template?officeId=2 + * @param command command + * @param officeId officeId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate6(command?: string, officeId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate6(command?: string, officeId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate6(command?: string, officeId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate6(command?: string, officeId?: number, staffInSelectedOfficeOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/centers/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Center + * Updates a Center + * @param centerId centerId + * @param putCentersCenterIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update12(centerId: number, putCentersCenterIdRequest: PutCentersCenterIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update12(centerId: number, putCentersCenterIdRequest: PutCentersCenterIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update12(centerId: number, putCentersCenterIdRequest: PutCentersCenterIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update12(centerId: number, putCentersCenterIdRequest: PutCentersCenterIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (centerId === null || centerId === undefined) { + throw new Error('Required parameter centerId was null or undefined when calling update12.'); + } + if (putCentersCenterIdRequest === null || putCentersCenterIdRequest === undefined) { + throw new Error('Required parameter putCentersCenterIdRequest was null or undefined when calling update12.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/centers/${this.configuration.encodeParam({name: "centerId", value: centerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putCentersCenterIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/charges.service.ts b/packages/fineract-client/src/services/charges.service.ts new file mode 100644 index 0000000000..171228b445 --- /dev/null +++ b/packages/fineract-client/src/services/charges.service.ts @@ -0,0 +1,554 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteChargesChargeIdResponse } from '../models/deleteChargesChargeIdResponse'; +// @ts-ignore +import { GetChargesResponse } from '../models/getChargesResponse'; +// @ts-ignore +import { GetChargesTemplateResponse } from '../models/getChargesTemplateResponse'; +// @ts-ignore +import { PostChargesRequest } from '../models/postChargesRequest'; +// @ts-ignore +import { PostChargesResponse } from '../models/postChargesResponse'; +// @ts-ignore +import { PutChargesChargeIdRequest } from '../models/putChargesChargeIdRequest'; +// @ts-ignore +import { PutChargesChargeIdResponse } from '../models/putChargesChargeIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ChargesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create/Define a Charge + * Define a new charge that can later be associated with loans and savings through their respective product definitions or directly on each account instance. + * @param postChargesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCharge(postChargesRequest: PostChargesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCharge(postChargesRequest: PostChargesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCharge(postChargesRequest: PostChargesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCharge(postChargesRequest: PostChargesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postChargesRequest === null || postChargesRequest === undefined) { + throw new Error('Required parameter postChargesRequest was null or undefined when calling createCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/charges`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postChargesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Charge + * Deletes a Charge. + * @param chargeId chargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteCharge(chargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteCharge(chargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCharge(chargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCharge(chargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chargeId === null || chargeId === undefined) { + throw new Error('Required parameter chargeId was null or undefined when calling deleteCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/charges/${this.configuration.encodeParam({name: "chargeId", value: chargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Charges + * Returns the list of defined charges. Example Requests: charges + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllCharges(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllCharges(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllCharges(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllCharges(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/charges`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Charge + * Returns the details of a defined Charge. Example Requests: charges/1 + * @param chargeId chargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCharge(chargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveCharge(chargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCharge(chargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCharge(chargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chargeId === null || chargeId === undefined) { + throw new Error('Required parameter chargeId was null or undefined when calling retrieveCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/charges/${this.configuration.encodeParam({name: "chargeId", value: chargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Charge Template + * 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 Request: charges/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveNewChargeDetails(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveNewChargeDetails(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveNewChargeDetails(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveNewChargeDetails(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/charges/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Charge + * Updates the details of a Charge. + * @param chargeId chargeId + * @param putChargesChargeIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCharge(chargeId: number, putChargesChargeIdRequest: PutChargesChargeIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCharge(chargeId: number, putChargesChargeIdRequest: PutChargesChargeIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCharge(chargeId: number, putChargesChargeIdRequest: PutChargesChargeIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCharge(chargeId: number, putChargesChargeIdRequest: PutChargesChargeIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chargeId === null || chargeId === undefined) { + throw new Error('Required parameter chargeId was null or undefined when calling updateCharge.'); + } + if (putChargesChargeIdRequest === null || putChargesChargeIdRequest === undefined) { + throw new Error('Required parameter putChargesChargeIdRequest was null or undefined when calling updateCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/charges/${this.configuration.encodeParam({name: "chargeId", value: chargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putChargesChargeIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/client.service.ts b/packages/fineract-client/src/services/client.service.ts new file mode 100644 index 0000000000..88f9bfd24e --- /dev/null +++ b/packages/fineract-client/src/services/client.service.ts @@ -0,0 +1,1754 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteClientsClientIdResponse } from '../models/deleteClientsClientIdResponse'; +// @ts-ignore +import { GetClientObligeeDetailsResponse } from '../models/getClientObligeeDetailsResponse'; +// @ts-ignore +import { GetClientTransferProposalDateResponse } from '../models/getClientTransferProposalDateResponse'; +// @ts-ignore +import { GetClientsClientIdAccountsResponse } from '../models/getClientsClientIdAccountsResponse'; +// @ts-ignore +import { GetClientsClientIdResponse } from '../models/getClientsClientIdResponse'; +// @ts-ignore +import { GetClientsResponse } from '../models/getClientsResponse'; +// @ts-ignore +import { GetClientsTemplateResponse } from '../models/getClientsTemplateResponse'; +// @ts-ignore +import { PostClientsClientIdRequest } from '../models/postClientsClientIdRequest'; +// @ts-ignore +import { PostClientsClientIdResponse } from '../models/postClientsClientIdResponse'; +// @ts-ignore +import { PostClientsRequest } from '../models/postClientsRequest'; +// @ts-ignore +import { PostClientsResponse } from '../models/postClientsResponse'; +// @ts-ignore +import { PutClientsClientIdRequest } from '../models/putClientsClientIdRequest'; +// @ts-ignore +import { PutClientsClientIdResponse } from '../models/putClientsClientIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ClientService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Activate a Client | Close a Client | Reject a Client | Withdraw a Client | Reactivate a Client | UndoReject a Client | UndoWithdraw a Client | Assign a Staff | Unassign a Staff | Update Default Savings Account | Propose a Client Transfer | Withdraw a Client Transfer | Reject a Client Transfer | Accept a Client Transfer | Propose and Accept a Client Transfer + * Activate a Client: Clients can be created in a Pending state. This API exists to enable client activation (for when a client becomes an approved member of the financial Institution). If the client happens to be already active this API will result in an error. Close a Client: Clients can be closed if they do not have any non-closed loans/savingsAccount. This API exists to close a client . If the client have any active loans/savingsAccount this API will result in an error. Reject a Client: Clients can be rejected when client is in pending for activation status. If the client is any other status, this API throws an error. Mandatory Fields: rejectionDate, rejectionReasonId Withdraw a Client: Client applications can be withdrawn when client is in a pending for activation status. If the client is any other status, this API throws an error. Mandatory Fields: withdrawalDate, withdrawalReasonId Reactivate a Client: Clients can be reactivated after they have been closed. Trying to reactivate a client in any other state throws an error. Mandatory Fields: reactivationDate UndoReject a Client: Clients can be reactivated after they have been rejected. Trying to reactivate a client in any other state throws an error. Mandatory Fields: reopenedDateUndoWithdraw a Client: Clients can be reactivated after they have been withdrawn. Trying to reactivate a client in any other state throws an error. Mandatory Fields: reopenedDate Assign a Staff: Allows you to assign a Staff for existed Client. The selected Staff should belong to the same office (or an officer higher up in the hierarchy) as the Client he manages. Unassign a Staff: Allows you to unassign the Staff assigned to a Client. Update Default Savings Account: Allows you to modify or assign a default savings account for an existing Client. The selected savings account should be one among the existing savings account for a particular customer. Propose a Client Transfer: Allows you to propose the transfer of a Client to a different Office. Withdraw a Client Transfer: Allows you to withdraw the proposed transfer of a Client to a different Office. Withdrawal can happen only if the destination Branch (to which the transfer was proposed) has not already accepted the transfer proposal Reject a Client Transfer: Allows the Destination Branch to reject the proposed Client Transfer. Accept a Client Transfer: Allows the Destination Branch to accept the proposed Client Transfer. The destination branch may also choose to link this client to a group (in which case, any existing active JLG loan of the client is rescheduled to match the meeting frequency of the group) and loan Officer at the time of accepting the transfer Propose and Accept a Client Transfer: Abstraction over the Propose and Accept Client Transfer API\'s which enable a user with Data Scope over both the Target and Destination Branches to directly transfer a Client to the destination Office. Showing request/response for \'Reject a Client Transfer\' + * @param clientId clientId + * @param postClientsClientIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public activate1(clientId: number, postClientsClientIdRequest: PostClientsClientIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public activate1(clientId: number, postClientsClientIdRequest: PostClientsClientIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public activate1(clientId: number, postClientsClientIdRequest: PostClientsClientIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public activate1(clientId: number, postClientsClientIdRequest: PostClientsClientIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling activate1.'); + } + if (postClientsClientIdRequest === null || postClientsClientIdRequest === undefined) { + throw new Error('Required parameter postClientsClientIdRequest was null or undefined when calling activate1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postClientsClientIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Activate a Client | Close a Client | Reject a Client | Withdraw a Client | Reactivate a Client | UndoReject a Client | UndoWithdraw a Client | Assign a Staff | Unassign a Staff | Update Default Savings Account | Propose a Client Transfer | Withdraw a Client Transfer | Reject a Client Transfer | Accept a Client Transfer | Propose and Accept a Client Transfer + * Activate a Client: Clients can be created in a Pending state. This API exists to enable client activation (for when a client becomes an approved member of the financial Institution). If the client happens to be already active this API will result in an error. Close a Client: Clients can be closed if they do not have any non-closed loans/savingsAccount. This API exists to close a client . If the client have any active loans/savingsAccount this API will result in an error. Reject a Client: Clients can be rejected when client is in pending for activation status. If the client is any other status, this API throws an error. Mandatory Fields: rejectionDate, rejectionReasonId Withdraw a Client: Client applications can be withdrawn when client is in a pending for activation status. If the client is any other status, this API throws an error. Mandatory Fields: withdrawalDate, withdrawalReasonId Reactivate a Client: Clients can be reactivated after they have been closed. Trying to reactivate a client in any other state throws an error. Mandatory Fields: reactivationDate UndoReject a Client: Clients can be reactivated after they have been rejected. Trying to reactivate a client in any other state throws an error. Mandatory Fields: reopenedDateUndoWithdraw a Client: Clients can be reactivated after they have been withdrawn. Trying to reactivate a client in any other state throws an error. Mandatory Fields: reopenedDate Assign a Staff: Allows you to assign a Staff for existed Client. The selected Staff should belong to the same office (or an officer higher up in the hierarchy) as the Client he manages. Unassign a Staff: Allows you to unassign the Staff assigned to a Client. Update Default Savings Account: Allows you to modify or assign a default savings account for an existing Client. The selected savings account should be one among the existing savings account for a particular customer. Propose a Client Transfer: Allows you to propose the transfer of a Client to a different Office. Withdraw a Client Transfer: Allows you to withdraw the proposed transfer of a Client to a different Office. Withdrawal can happen only if the destination Branch (to which the transfer was proposed) has not already accepted the transfer proposal Reject a Client Transfer: Allows the Destination Branch to reject the proposed Client Transfer. Accept a Client Transfer: Allows the Destination Branch to accept the proposed Client Transfer. The destination branch may also choose to link this client to a group (in which case, any existing active JLG loan of the client is rescheduled to match the meeting frequency of the group) and loan Officer at the time of accepting the transfer Propose and Accept a Client Transfer: Abstraction over the Propose and Accept Client Transfer API\'s which enable a user with Data Scope over both the Target and Destination Branches to directly transfer a Client to the destination Office. Showing request/response for \'Reject a Client Transfer\' + * @param externalId externalId + * @param postClientsClientIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public applyCommand(externalId: string, postClientsClientIdRequest: PostClientsClientIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public applyCommand(externalId: string, postClientsClientIdRequest: PostClientsClientIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public applyCommand(externalId: string, postClientsClientIdRequest: PostClientsClientIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public applyCommand(externalId: string, postClientsClientIdRequest: PostClientsClientIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (externalId === null || externalId === undefined) { + throw new Error('Required parameter externalId was null or undefined when calling applyCommand.'); + } + if (postClientsClientIdRequest === null || postClientsClientIdRequest === undefined) { + throw new Error('Required parameter postClientsClientIdRequest was null or undefined when calling applyCommand.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/external-id/${this.configuration.encodeParam({name: "externalId", value: externalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postClientsClientIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create a Client + * Note: 1. You can enter either:firstname/middlename/lastname - for a person (middlename is optional) OR fullname - for a business or organisation (or person known by one name). 2.If address is enable(enable-address=true), then additional field called address has to be passed. Mandatory Fields: firstname and lastname OR fullname, officeId, active=true and activationDate OR active=false, if(address enabled) address Optional Fields: groupId, externalId, accountNo, staffId, mobileNo, savingsProductId, genderId, clientTypeId, clientClassificationId + * @param postClientsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create6(postClientsRequest: PostClientsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create6(postClientsRequest: PostClientsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create6(postClientsRequest: PostClientsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create6(postClientsRequest: PostClientsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postClientsRequest === null || postClientsRequest === undefined) { + throw new Error('Required parameter postClientsRequest was null or undefined when calling create6.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postClientsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Client + * If a client is in Pending state, you are allowed to Delete it. The delete is a \'hard delete\' and cannot be recovered from. Once clients become active or have loans or savings associated with them, you cannot delete the client but you may Close the client if they have left the program. + * @param externalId externalId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete10(externalId: string, body: object, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete10(externalId: string, body: object, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete10(externalId: string, body: object, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete10(externalId: string, body: object, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (externalId === null || externalId === undefined) { + throw new Error('Required parameter externalId was null or undefined when calling delete10.'); + } + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling delete10.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/external-id/${this.configuration.encodeParam({name: "externalId", value: externalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Client + * If a client is in Pending state, you are allowed to Delete it. The delete is a \'hard delete\' and cannot be recovered from. Once clients become active or have loans or savings associated with them, you cannot delete the client but you may Close the client if they have left the program. + * @param clientId clientId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete9(clientId: number, body: object, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete9(clientId: number, body: object, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete9(clientId: number, body: object, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete9(clientId: number, body: object, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling delete9.'); + } + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling delete9.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param legalFormType + * @param officeId + * @param staffId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getClientTemplate(legalFormType?: string, officeId?: number, staffId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getClientTemplate(legalFormType?: string, officeId?: number, staffId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getClientTemplate(legalFormType?: string, officeId?: number, staffId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getClientTemplate(legalFormType?: string, officeId?: number, staffId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (legalFormType !== undefined && legalFormType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + legalFormType, 'legalFormType'); + } + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param legalFormType + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postClientTemplate(legalFormType?: string, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postClientTemplate(legalFormType?: string, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postClientTemplate(legalFormType?: string, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postClientTemplate(legalFormType?: string, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (legalFormType !== undefined && legalFormType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + legalFormType, 'legalFormType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Clients + * The list capability of clients can support pagination and sorting. Example Requests: clients clients?fields=displayName,officeName,timeline clients?offset=10&limit=50 clients?orderBy=displayName&sortOrder=DESC + * @param sqlSearch sqlSearch + * @param officeId officeId + * @param externalId externalId + * @param displayName displayName + * @param firstName firstName + * @param lastName lastName + * @param status status + * @param underHierarchy underHierarchy + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param orphansOnly orphansOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll21(sqlSearch?: string, officeId?: number, externalId?: string, displayName?: string, firstName?: string, lastName?: string, status?: string, underHierarchy?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, orphansOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll21(sqlSearch?: string, officeId?: number, externalId?: string, displayName?: string, firstName?: string, lastName?: string, status?: string, underHierarchy?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, orphansOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll21(sqlSearch?: string, officeId?: number, externalId?: string, displayName?: string, firstName?: string, lastName?: string, status?: string, underHierarchy?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, orphansOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll21(sqlSearch?: string, officeId?: number, externalId?: string, displayName?: string, firstName?: string, lastName?: string, status?: string, underHierarchy?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, orphansOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (externalId !== undefined && externalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalId, 'externalId'); + } + if (displayName !== undefined && displayName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + displayName, 'displayName'); + } + if (firstName !== undefined && firstName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + firstName, 'firstName'); + } + if (lastName !== undefined && lastName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + lastName, 'lastName'); + } + if (status !== undefined && status !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + status, 'status'); + } + if (underHierarchy !== undefined && underHierarchy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + underHierarchy, 'underHierarchy'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (orphansOnly !== undefined && orphansOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orphansOnly, 'orphansOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve client accounts overview + * An example of how a loan portfolio summary can be provided. This is requested in a specific use case of the community application. It is quite reasonable to add resources like this to simplify User Interface development. Example Requests: clients/1/accounts clients/1/accounts?fields=loanAccounts,savingsAccounts + * @param clientId clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAssociatedAccounts(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAssociatedAccounts(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAssociatedAccounts(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAssociatedAccounts(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveAssociatedAccounts.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/accounts`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve client accounts overview + * An example of how a loan portfolio summary can be provided. This is requested in a specific use case of the community application. It is quite reasonable to add resources like this to simplify User Interface development. Example Requests: clients/123-456/accounts clients/123-456/accounts?fields=loanAccounts,savingsAccounts + * @param externalId externalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAssociatedAccounts1(externalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAssociatedAccounts1(externalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAssociatedAccounts1(externalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAssociatedAccounts1(externalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (externalId === null || externalId === undefined) { + throw new Error('Required parameter externalId was null or undefined when calling retrieveAssociatedAccounts1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/external-id/${this.configuration.encodeParam({name: "externalId", value: externalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/accounts`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve client obligee details + * Retrieve client obligee details + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveObligeeDetails(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveObligeeDetails(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveObligeeDetails(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveObligeeDetails(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveObligeeDetails.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/obligeedetails`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve client obligee details + * Retrieve client obligee details using the client external Id + * @param externalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveObligeeDetails1(externalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveObligeeDetails1(externalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveObligeeDetails1(externalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveObligeeDetails1(externalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (externalId === null || externalId === undefined) { + throw new Error('Required parameter externalId was null or undefined when calling retrieveObligeeDetails1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/external-id/${this.configuration.encodeParam({name: "externalId", value: externalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/obligeedetails`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Client + * Example Requests: clients/1 clients/1?template=true clients/1?fields=id,displayName,officeName + * @param clientId clientId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne11(clientId: number, staffInSelectedOfficeOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne11(clientId: number, staffInSelectedOfficeOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne11(clientId: number, staffInSelectedOfficeOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne11(clientId: number, staffInSelectedOfficeOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveOne11.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Client by External Id + * Example Requests: clients/123-456 clients/123-456?template=true clients/123-456?fields=id,displayName,officeName + * @param externalId externalId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne12(externalId: string, staffInSelectedOfficeOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne12(externalId: string, staffInSelectedOfficeOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne12(externalId: string, staffInSelectedOfficeOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne12(externalId: string, staffInSelectedOfficeOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (externalId === null || externalId === undefined) { + throw new Error('Required parameter externalId was null or undefined when calling retrieveOne12.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/external-id/${this.configuration.encodeParam({name: "externalId", value: externalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Client Details Template + * 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: clients/template + * @param officeId officeId + * @param commandParam commandParam + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate5(officeId?: number, commandParam?: string, staffInSelectedOfficeOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate5(officeId?: number, commandParam?: string, staffInSelectedOfficeOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate5(officeId?: number, commandParam?: string, staffInSelectedOfficeOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate5(officeId?: number, commandParam?: string, staffInSelectedOfficeOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (commandParam !== undefined && commandParam !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + commandParam, 'commandParam'); + } + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve client transfer template + * Retrieve client transfer template + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTransferTemplate(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTransferTemplate(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransferTemplate(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransferTemplate(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveTransferTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transferproposaldate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve client transfer template + * Retrieve client transfer template using the client external Id + * @param externalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTransferTemplate1(externalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTransferTemplate1(externalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransferTemplate1(externalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransferTemplate1(externalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (externalId === null || externalId === undefined) { + throw new Error('Required parameter externalId was null or undefined when calling retrieveTransferTemplate1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/external-id/${this.configuration.encodeParam({name: "externalId", value: externalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transferproposaldate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Client + * Note: You can update any of the basic attributes of a client (but not its associations) using this API. Changing the relationship between a client and its office is not supported through this API. An API specific to handling transfers of clients between offices is available for the same. The relationship between a client and a group must be removed through the Groups API. + * @param clientId clientId + * @param putClientsClientIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update10(clientId: number, putClientsClientIdRequest: PutClientsClientIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update10(clientId: number, putClientsClientIdRequest: PutClientsClientIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update10(clientId: number, putClientsClientIdRequest: PutClientsClientIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update10(clientId: number, putClientsClientIdRequest: PutClientsClientIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling update10.'); + } + if (putClientsClientIdRequest === null || putClientsClientIdRequest === undefined) { + throw new Error('Required parameter putClientsClientIdRequest was null or undefined when calling update10.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putClientsClientIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Client using the External Id + * Note: You can update any of the basic attributes of a client (but not its associations) using this API. Changing the relationship between a client and its office is not supported through this API. An API specific to handling transfers of clients between offices is available for the same. The relationship between a client and a group must be removed through the Groups API. + * @param externalId externalId + * @param putClientsClientIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update11(externalId: string, putClientsClientIdRequest: PutClientsClientIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update11(externalId: string, putClientsClientIdRequest: PutClientsClientIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update11(externalId: string, putClientsClientIdRequest: PutClientsClientIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update11(externalId: string, putClientsClientIdRequest: PutClientsClientIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (externalId === null || externalId === undefined) { + throw new Error('Required parameter externalId was null or undefined when calling update11.'); + } + if (putClientsClientIdRequest === null || putClientsClientIdRequest === undefined) { + throw new Error('Required parameter putClientsClientIdRequest was null or undefined when calling update11.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/external-id/${this.configuration.encodeParam({name: "externalId", value: externalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putClientsClientIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/clientCharges.service.ts b/packages/fineract-client/src/services/clientCharges.service.ts new file mode 100644 index 0000000000..bed997549b --- /dev/null +++ b/packages/fineract-client/src/services/clientCharges.service.ts @@ -0,0 +1,607 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteClientsClientIdChargesChargeIdResponse } from '../models/deleteClientsClientIdChargesChargeIdResponse'; +// @ts-ignore +import { GetClientsChargesPageItems } from '../models/getClientsChargesPageItems'; +// @ts-ignore +import { GetClientsClientIdChargesResponse } from '../models/getClientsClientIdChargesResponse'; +// @ts-ignore +import { PostClientsClientIdChargesChargeIdRequest } from '../models/postClientsClientIdChargesChargeIdRequest'; +// @ts-ignore +import { PostClientsClientIdChargesChargeIdResponse } from '../models/postClientsClientIdChargesChargeIdResponse'; +// @ts-ignore +import { PostClientsClientIdChargesRequest } from '../models/postClientsClientIdChargesRequest'; +// @ts-ignore +import { PostClientsClientIdChargesResponse } from '../models/postClientsClientIdChargesResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ClientChargesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Add Client Charge + * This API associates a Client charge with an implicit Client account Mandatory Fields : chargeId and dueDate Optional Fields : amount + * @param clientId clientId + * @param postClientsClientIdChargesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public applyClientCharge(clientId: number, postClientsClientIdChargesRequest: PostClientsClientIdChargesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public applyClientCharge(clientId: number, postClientsClientIdChargesRequest: PostClientsClientIdChargesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public applyClientCharge(clientId: number, postClientsClientIdChargesRequest: PostClientsClientIdChargesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public applyClientCharge(clientId: number, postClientsClientIdChargesRequest: PostClientsClientIdChargesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling applyClientCharge.'); + } + if (postClientsClientIdChargesRequest === null || postClientsClientIdChargesRequest === undefined) { + throw new Error('Required parameter postClientsClientIdChargesRequest was null or undefined when calling applyClientCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postClientsClientIdChargesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Client Charge + * Deletes a Client Charge on which no transactions have taken place (either payments or waivers). + * @param clientId clientId + * @param chargeId chargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteClientCharge(clientId: number, chargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteClientCharge(clientId: number, chargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteClientCharge(clientId: number, chargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteClientCharge(clientId: number, chargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling deleteClientCharge.'); + } + if (chargeId === null || chargeId === undefined) { + throw new Error('Required parameter chargeId was null or undefined when calling deleteClientCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "chargeId", value: chargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Pay a Client Charge | Waive a Client Charge + * Pay a Client Charge: Mandatory Fields:transactionDate and amount \"Pay either a part of or the entire due amount for a charge.(command=paycharge) Waive a Client Charge: This API provides the facility of waiving off the remaining amount on a client charge (command=waive) Showing request/response for \'Pay a Client Charge\' + * @param clientId clientId + * @param chargeId chargeId + * @param postClientsClientIdChargesChargeIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public payOrWaiveClientCharge(clientId: number, chargeId: number, postClientsClientIdChargesChargeIdRequest: PostClientsClientIdChargesChargeIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public payOrWaiveClientCharge(clientId: number, chargeId: number, postClientsClientIdChargesChargeIdRequest: PostClientsClientIdChargesChargeIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public payOrWaiveClientCharge(clientId: number, chargeId: number, postClientsClientIdChargesChargeIdRequest: PostClientsClientIdChargesChargeIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public payOrWaiveClientCharge(clientId: number, chargeId: number, postClientsClientIdChargesChargeIdRequest: PostClientsClientIdChargesChargeIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling payOrWaiveClientCharge.'); + } + if (chargeId === null || chargeId === undefined) { + throw new Error('Required parameter chargeId was null or undefined when calling payOrWaiveClientCharge.'); + } + if (postClientsClientIdChargesChargeIdRequest === null || postClientsClientIdChargesChargeIdRequest === undefined) { + throw new Error('Required parameter postClientsClientIdChargesChargeIdRequest was null or undefined when calling payOrWaiveClientCharge.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "chargeId", value: chargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postClientsClientIdChargesChargeIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Client Charges + * The list capability of client charges supports pagination.Example Requests: clients/1/charges clients/1/charges?offset=0&limit=5 + * @param clientId clientId + * @param chargeStatus chargeStatus + * @param pendingPayment pendingPayment + * @param limit limit + * @param offset offset + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllClientCharges(clientId: number, chargeStatus?: string, pendingPayment?: boolean, limit?: number, offset?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllClientCharges(clientId: number, chargeStatus?: string, pendingPayment?: boolean, limit?: number, offset?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientCharges(clientId: number, chargeStatus?: string, pendingPayment?: boolean, limit?: number, offset?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientCharges(clientId: number, chargeStatus?: string, pendingPayment?: boolean, limit?: number, offset?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveAllClientCharges.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (chargeStatus !== undefined && chargeStatus !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + chargeStatus, 'chargeStatus'); + } + if (pendingPayment !== undefined && pendingPayment !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pendingPayment, 'pendingPayment'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Client Charge + * Example Requests: clients/1/charges/1 clients/1/charges/1?fields=name,id + * @param clientId clientId + * @param chargeId chargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveClientCharge(clientId: number, chargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveClientCharge(clientId: number, chargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientCharge(clientId: number, chargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientCharge(clientId: number, chargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveClientCharge.'); + } + if (chargeId === null || chargeId === undefined) { + throw new Error('Required parameter chargeId was null or undefined when calling retrieveClientCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "chargeId", value: chargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param clientId clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate4(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate4(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate4(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate4(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveTemplate4.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/clientCollateralManagement.service.ts b/packages/fineract-client/src/services/clientCollateralManagement.service.ts new file mode 100644 index 0000000000..4928ed234c --- /dev/null +++ b/packages/fineract-client/src/services/clientCollateralManagement.service.ts @@ -0,0 +1,584 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteClientCollateralResponse } from '../models/deleteClientCollateralResponse'; +// @ts-ignore +import { GetLoanCollateralManagementTemplate } from '../models/getLoanCollateralManagementTemplate'; +// @ts-ignore +import { PostClientCollateralRequest } from '../models/postClientCollateralRequest'; +// @ts-ignore +import { PostClientCollateralResponse } from '../models/postClientCollateralResponse'; +// @ts-ignore +import { PutClientCollateralRequest } from '../models/putClientCollateralRequest'; +// @ts-ignore +import { PutClientCollateralResponse } from '../models/putClientCollateralResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ClientCollateralManagementService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Add New Collateral For a Client + * Add New Collateral For a Client + * @param clientId clientId + * @param postClientCollateralRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addCollateral(clientId: number, postClientCollateralRequest: PostClientCollateralRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public addCollateral(clientId: number, postClientCollateralRequest: PostClientCollateralRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addCollateral(clientId: number, postClientCollateralRequest: PostClientCollateralRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addCollateral(clientId: number, postClientCollateralRequest: PostClientCollateralRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling addCollateral.'); + } + if (postClientCollateralRequest === null || postClientCollateralRequest === undefined) { + throw new Error('Required parameter postClientCollateralRequest was null or undefined when calling addCollateral.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postClientCollateralRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete Client Collateral + * Delete Client Collateral + * @param clientId clientId + * @param collateralId collateralId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteCollateral1(clientId: number, collateralId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteCollateral1(clientId: number, collateralId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCollateral1(clientId: number, collateralId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCollateral1(clientId: number, collateralId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling deleteCollateral1.'); + } + if (collateralId === null || collateralId === undefined) { + throw new Error('Required parameter collateralId was null or undefined when calling deleteCollateral1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals/${this.configuration.encodeParam({name: "collateralId", value: collateralId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Get Clients Collateral Products + * Get Collateral Product of a Client + * @param clientId clientId + * @param prodId prodId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getClientCollateral(clientId: number, prodId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getClientCollateral(clientId: number, prodId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getClientCollateral(clientId: number, prodId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getClientCollateral(clientId: number, prodId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling getClientCollateral.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (prodId !== undefined && prodId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + prodId, 'prodId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Get Client Collateral Data + * Get Client Collateral Data + * @param clientId clientId + * @param clientCollateralId clientCollateralId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getClientCollateralData(clientId: number, clientCollateralId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getClientCollateralData(clientId: number, clientCollateralId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getClientCollateralData(clientId: number, clientCollateralId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getClientCollateralData(clientId: number, clientCollateralId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling getClientCollateralData.'); + } + if (clientCollateralId === null || clientCollateralId === undefined) { + throw new Error('Required parameter clientCollateralId was null or undefined when calling getClientCollateralData.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals/${this.configuration.encodeParam({name: "clientCollateralId", value: clientCollateralId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Get Client Collateral Template + * Get Client Collateral Template + * @param clientId clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getClientCollateralTemplate(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getClientCollateralTemplate(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getClientCollateralTemplate(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getClientCollateralTemplate(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling getClientCollateralTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals/template`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update New Collateral of a Client + * Update New Collateral of a Client + * @param clientId clientId + * @param collateralId collateralId + * @param putClientCollateralRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCollateral1(clientId: number, collateralId: number, putClientCollateralRequest: PutClientCollateralRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCollateral1(clientId: number, collateralId: number, putClientCollateralRequest: PutClientCollateralRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCollateral1(clientId: number, collateralId: number, putClientCollateralRequest: PutClientCollateralRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCollateral1(clientId: number, collateralId: number, putClientCollateralRequest: PutClientCollateralRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling updateCollateral1.'); + } + if (collateralId === null || collateralId === undefined) { + throw new Error('Required parameter collateralId was null or undefined when calling updateCollateral1.'); + } + if (putClientCollateralRequest === null || putClientCollateralRequest === undefined) { + throw new Error('Required parameter putClientCollateralRequest was null or undefined when calling updateCollateral1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals/${this.configuration.encodeParam({name: "collateralId", value: collateralId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putClientCollateralRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/clientFamilyMember.service.ts b/packages/fineract-client/src/services/clientFamilyMember.service.ts new file mode 100644 index 0000000000..66fb8c7317 --- /dev/null +++ b/packages/fineract-client/src/services/clientFamilyMember.service.ts @@ -0,0 +1,557 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ClientFamilyMemberService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param clientId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addClientFamilyMembers(clientId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public addClientFamilyMembers(clientId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addClientFamilyMembers(clientId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addClientFamilyMembers(clientId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling addClientFamilyMembers.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/familymembers`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param familyMemberId + * @param clientId clientId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteClientFamilyMembers(familyMemberId: number, clientId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteClientFamilyMembers(familyMemberId: number, clientId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteClientFamilyMembers(familyMemberId: number, clientId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteClientFamilyMembers(familyMemberId: number, clientId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (familyMemberId === null || familyMemberId === undefined) { + throw new Error('Required parameter familyMemberId was null or undefined when calling deleteClientFamilyMembers.'); + } + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling deleteClientFamilyMembers.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/familymembers/${this.configuration.encodeParam({name: "familyMemberId", value: familyMemberId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param familyMemberId + * @param clientId clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getFamilyMember(familyMemberId: number, clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getFamilyMember(familyMemberId: number, clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getFamilyMember(familyMemberId: number, clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getFamilyMember(familyMemberId: number, clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (familyMemberId === null || familyMemberId === undefined) { + throw new Error('Required parameter familyMemberId was null or undefined when calling getFamilyMember.'); + } + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling getFamilyMember.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/familymembers/${this.configuration.encodeParam({name: "familyMemberId", value: familyMemberId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getFamilyMembers(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getFamilyMembers(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getFamilyMembers(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getFamilyMembers(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling getFamilyMembers.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/familymembers`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTemplate2(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getTemplate2(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTemplate2(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTemplate2(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling getTemplate2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/familymembers/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param familyMemberId + * @param clientId clientId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateClientFamilyMembers(familyMemberId: number, clientId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateClientFamilyMembers(familyMemberId: number, clientId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateClientFamilyMembers(familyMemberId: number, clientId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateClientFamilyMembers(familyMemberId: number, clientId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (familyMemberId === null || familyMemberId === undefined) { + throw new Error('Required parameter familyMemberId was null or undefined when calling updateClientFamilyMembers.'); + } + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling updateClientFamilyMembers.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/familymembers/${this.configuration.encodeParam({name: "familyMemberId", value: familyMemberId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/clientIdentifier.service.ts b/packages/fineract-client/src/services/clientIdentifier.service.ts new file mode 100644 index 0000000000..3584c907e0 --- /dev/null +++ b/packages/fineract-client/src/services/clientIdentifier.service.ts @@ -0,0 +1,578 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteClientsClientIdIdentifiersIdentifierIdResponse } from '../models/deleteClientsClientIdIdentifiersIdentifierIdResponse'; +// @ts-ignore +import { GetClientsClientIdIdentifiersResponse } from '../models/getClientsClientIdIdentifiersResponse'; +// @ts-ignore +import { GetClientsClientIdIdentifiersTemplateResponse } from '../models/getClientsClientIdIdentifiersTemplateResponse'; +// @ts-ignore +import { PostClientsClientIdIdentifiersRequest } from '../models/postClientsClientIdIdentifiersRequest'; +// @ts-ignore +import { PostClientsClientIdIdentifiersResponse } from '../models/postClientsClientIdIdentifiersResponse'; +// @ts-ignore +import { PutClientsClientIdIdentifiersIdentifierIdRequest } from '../models/putClientsClientIdIdentifiersIdentifierIdRequest'; +// @ts-ignore +import { PutClientsClientIdIdentifiersIdentifierIdResponse } from '../models/putClientsClientIdIdentifiersIdentifierIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ClientIdentifierService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create an Identifier for a Client + * Mandatory Fields documentKey, documentTypeId + * @param clientId clientId + * @param postClientsClientIdIdentifiersRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createClientIdentifier(clientId: number, postClientsClientIdIdentifiersRequest: PostClientsClientIdIdentifiersRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createClientIdentifier(clientId: number, postClientsClientIdIdentifiersRequest: PostClientsClientIdIdentifiersRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createClientIdentifier(clientId: number, postClientsClientIdIdentifiersRequest: PostClientsClientIdIdentifiersRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createClientIdentifier(clientId: number, postClientsClientIdIdentifiersRequest: PostClientsClientIdIdentifiersRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling createClientIdentifier.'); + } + if (postClientsClientIdIdentifiersRequest === null || postClientsClientIdIdentifiersRequest === undefined) { + throw new Error('Required parameter postClientsClientIdIdentifiersRequest was null or undefined when calling createClientIdentifier.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/identifiers`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postClientsClientIdIdentifiersRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Client Identifier + * Deletes a Client Identifier + * @param clientId clientId + * @param identifierId identifierId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteClientIdentifier(clientId: number, identifierId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteClientIdentifier(clientId: number, identifierId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteClientIdentifier(clientId: number, identifierId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteClientIdentifier(clientId: number, identifierId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling deleteClientIdentifier.'); + } + if (identifierId === null || identifierId === undefined) { + throw new Error('Required parameter identifierId was null or undefined when calling deleteClientIdentifier.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/identifiers/${this.configuration.encodeParam({name: "identifierId", value: identifierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Client Identifier Details Template + * This is a convenience resource useful for building maintenance user interface screens for client applications. The template data returned consists of any or all of: Field Defaults Allowed description Lists Example Request: clients/1/identifiers/template + * @param clientId clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public newClientIdentifierDetails(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public newClientIdentifierDetails(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public newClientIdentifierDetails(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public newClientIdentifierDetails(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling newClientIdentifierDetails.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/identifiers/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List all Identifiers for a Client + * Example Requests: clients/1/identifiers clients/1/identifiers?fields=documentKey,documentType,description + * @param clientId clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllClientIdentifiers(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientIdentifiers(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllClientIdentifiers(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllClientIdentifiers(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveAllClientIdentifiers.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/identifiers`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Client Identifier + * Example Requests: clients/1/identifier/2 clients/1/identifier/2?template=true clients/1/identifiers/2?fields=documentKey,documentType,description + * @param clientId clientId + * @param identifierId identifierId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveClientIdentifiers(clientId: number, identifierId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveClientIdentifiers(clientId: number, identifierId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientIdentifiers(clientId: number, identifierId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientIdentifiers(clientId: number, identifierId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveClientIdentifiers.'); + } + if (identifierId === null || identifierId === undefined) { + throw new Error('Required parameter identifierId was null or undefined when calling retrieveClientIdentifiers.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/identifiers/${this.configuration.encodeParam({name: "identifierId", value: identifierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Client Identifier + * Updates a Client Identifier + * @param clientId clientId + * @param identifierId identifierId + * @param putClientsClientIdIdentifiersIdentifierIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateClientIdentifer(clientId: number, identifierId: number, putClientsClientIdIdentifiersIdentifierIdRequest: PutClientsClientIdIdentifiersIdentifierIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateClientIdentifer(clientId: number, identifierId: number, putClientsClientIdIdentifiersIdentifierIdRequest: PutClientsClientIdIdentifiersIdentifierIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateClientIdentifer(clientId: number, identifierId: number, putClientsClientIdIdentifiersIdentifierIdRequest: PutClientsClientIdIdentifiersIdentifierIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateClientIdentifer(clientId: number, identifierId: number, putClientsClientIdIdentifiersIdentifierIdRequest: PutClientsClientIdIdentifiersIdentifierIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling updateClientIdentifer.'); + } + if (identifierId === null || identifierId === undefined) { + throw new Error('Required parameter identifierId was null or undefined when calling updateClientIdentifer.'); + } + if (putClientsClientIdIdentifiersIdentifierIdRequest === null || putClientsClientIdIdentifiersIdentifierIdRequest === undefined) { + throw new Error('Required parameter putClientsClientIdIdentifiersIdentifierIdRequest was null or undefined when calling updateClientIdentifer.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/identifiers/${this.configuration.encodeParam({name: "identifierId", value: identifierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putClientsClientIdIdentifiersIdentifierIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/clientSearchV2.service.ts b/packages/fineract-client/src/services/clientSearchV2.service.ts new file mode 100644 index 0000000000..f6397c74e5 --- /dev/null +++ b/packages/fineract-client/src/services/clientSearchV2.service.ts @@ -0,0 +1,174 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { PageClientSearchData } from '../models/pageClientSearchData'; +// @ts-ignore +import { PagedRequestClientTextSearch } from '../models/pagedRequestClientTextSearch'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ClientSearchV2Service { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Search Clients by text + * @param pagedRequestClientTextSearch + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchByText(pagedRequestClientTextSearch?: PagedRequestClientTextSearch, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public searchByText(pagedRequestClientTextSearch?: PagedRequestClientTextSearch, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public searchByText(pagedRequestClientTextSearch?: PagedRequestClientTextSearch, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public searchByText(pagedRequestClientTextSearch?: PagedRequestClientTextSearch, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v2/clients/search`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: pagedRequestClientTextSearch, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/clientTransaction.service.ts b/packages/fineract-client/src/services/clientTransaction.service.ts new file mode 100644 index 0000000000..a2175cb69e --- /dev/null +++ b/packages/fineract-client/src/services/clientTransaction.service.ts @@ -0,0 +1,588 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetClientsClientIdTransactionsResponse } from '../models/getClientsClientIdTransactionsResponse'; +// @ts-ignore +import { GetClientsClientIdTransactionsTransactionIdResponse } from '../models/getClientsClientIdTransactionsTransactionIdResponse'; +// @ts-ignore +import { PostClientsClientIdTransactionsTransactionIdResponse } from '../models/postClientsClientIdTransactionsTransactionIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ClientTransactionService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * List Client Transactions + * The list capability of client transaction can support pagination. Example Requests: clients/189/transactions clients/189/transactions?offset=10&limit=50 + * @param clientId clientId + * @param offset offset + * @param limit limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllClientTransactions(clientId: number, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllClientTransactions(clientId: number, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientTransactions(clientId: number, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientTransactions(clientId: number, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveAllClientTransactions.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Client Transactions + * The list capability of client transaction can support pagination. Example Requests: clients/189/transactions clients/189/transactions?offset=10&limit=50 + * @param clientExternalId clientExternalId + * @param offset offset + * @param limit limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllClientTransactions1(clientExternalId: string, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllClientTransactions1(clientExternalId: string, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientTransactions1(clientExternalId: string, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientTransactions1(clientExternalId: string, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientExternalId === null || clientExternalId === undefined) { + throw new Error('Required parameter clientExternalId was null or undefined when calling retrieveAllClientTransactions1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/external-id/${this.configuration.encodeParam({name: "clientExternalId", value: clientExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Client Transaction + * Example Requests: clients/1/transactions/1 clients/1/transactions/1?fields=id,officeName + * @param clientId clientId + * @param transactionId transactionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveClientTransaction(clientId: number, transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveClientTransaction(clientId: number, transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientTransaction(clientId: number, transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientTransaction(clientId: number, transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveClientTransaction.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling retrieveClientTransaction.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Client Transaction + * Example Requests: clients/1/transactions/1 clients/1/transactions/1?fields=id,officeName + * @param clientExternalId clientExternalId + * @param transactionId transactionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveClientTransaction1(clientExternalId: string, transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveClientTransaction1(clientExternalId: string, transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientTransaction1(clientExternalId: string, transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientTransaction1(clientExternalId: string, transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientExternalId === null || clientExternalId === undefined) { + throw new Error('Required parameter clientExternalId was null or undefined when calling retrieveClientTransaction1.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling retrieveClientTransaction1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/external-id/${this.configuration.encodeParam({name: "clientExternalId", value: clientExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Undo a Client Transaction + * Undoes a Client Transaction + * @param clientId clientId + * @param transactionId transactionId + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public undoClientTransaction(clientId: number, transactionId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public undoClientTransaction(clientId: number, transactionId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoClientTransaction(clientId: number, transactionId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoClientTransaction(clientId: number, transactionId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling undoClientTransaction.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling undoClientTransaction.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Undo a Client Transaction + * Undoes a Client Transaction + * @param clientExternalId clientExternalId + * @param transactionId transactionId + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public undoClientTransaction1(clientExternalId: string, transactionId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public undoClientTransaction1(clientExternalId: string, transactionId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoClientTransaction1(clientExternalId: string, transactionId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoClientTransaction1(clientExternalId: string, transactionId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientExternalId === null || clientExternalId === undefined) { + throw new Error('Required parameter clientExternalId was null or undefined when calling undoClientTransaction1.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling undoClientTransaction1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/clients/external-id/${this.configuration.encodeParam({name: "clientExternalId", value: clientExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/clientsAddress.service.ts b/packages/fineract-client/src/services/clientsAddress.service.ts new file mode 100644 index 0000000000..77ce333739 --- /dev/null +++ b/packages/fineract-client/src/services/clientsAddress.service.ts @@ -0,0 +1,433 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetClientClientIdAddressesResponse } from '../models/getClientClientIdAddressesResponse'; +// @ts-ignore +import { PostClientClientIdAddressesRequest } from '../models/postClientClientIdAddressesRequest'; +// @ts-ignore +import { PostClientClientIdAddressesResponse } from '../models/postClientClientIdAddressesResponse'; +// @ts-ignore +import { PutClientClientIdAddressesRequest } from '../models/putClientClientIdAddressesRequest'; +// @ts-ignore +import { PutClientClientIdAddressesResponse } from '../models/putClientClientIdAddressesResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ClientsAddressService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create an address for a Client + * Mandatory Fields : type and clientId + * @param clientid clientId + * @param postClientClientIdAddressesRequest + * @param type type + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addClientAddress(clientid: number, postClientClientIdAddressesRequest: PostClientClientIdAddressesRequest, type?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public addClientAddress(clientid: number, postClientClientIdAddressesRequest: PostClientClientIdAddressesRequest, type?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addClientAddress(clientid: number, postClientClientIdAddressesRequest: PostClientClientIdAddressesRequest, type?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addClientAddress(clientid: number, postClientClientIdAddressesRequest: PostClientClientIdAddressesRequest, type?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientid === null || clientid === undefined) { + throw new Error('Required parameter clientid was null or undefined when calling addClientAddress.'); + } + if (postClientClientIdAddressesRequest === null || postClientClientIdAddressesRequest === undefined) { + throw new Error('Required parameter postClientClientIdAddressesRequest was null or undefined when calling addClientAddress.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (type !== undefined && type !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + type, 'type'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/client/${this.configuration.encodeParam({name: "clientid", value: clientid, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/addresses`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postClientClientIdAddressesRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List all addresses for a Client + * Example Requests: client/1/addresses clients/1/addresses?status=false,true&&type=1,2,3 + * @param clientid clientId + * @param status status + * @param type type + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAddresses1(clientid: number, status?: string, type?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAddresses1(clientid: number, status?: string, type?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getAddresses1(clientid: number, status?: string, type?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getAddresses1(clientid: number, status?: string, type?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientid === null || clientid === undefined) { + throw new Error('Required parameter clientid was null or undefined when calling getAddresses1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (status !== undefined && status !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + status, 'status'); + } + if (type !== undefined && type !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + type, 'type'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/client/${this.configuration.encodeParam({name: "clientid", value: clientid, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/addresses`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAddressesTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getAddressesTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAddressesTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAddressesTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/client/addresses/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update an address for a Client + * All the address fields can be updated by using update client address API Mandatory Fields type and addressId + * @param clientid clientId + * @param putClientClientIdAddressesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateClientAddress(clientid: number, putClientClientIdAddressesRequest: PutClientClientIdAddressesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateClientAddress(clientid: number, putClientClientIdAddressesRequest: PutClientClientIdAddressesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateClientAddress(clientid: number, putClientClientIdAddressesRequest: PutClientClientIdAddressesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateClientAddress(clientid: number, putClientClientIdAddressesRequest: PutClientClientIdAddressesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientid === null || clientid === undefined) { + throw new Error('Required parameter clientid was null or undefined when calling updateClientAddress.'); + } + if (putClientClientIdAddressesRequest === null || putClientClientIdAddressesRequest === undefined) { + throw new Error('Required parameter putClientClientIdAddressesRequest was null or undefined when calling updateClientAddress.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/client/${this.configuration.encodeParam({name: "clientid", value: clientid, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/addresses`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putClientClientIdAddressesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/codeValues.service.ts b/packages/fineract-client/src/services/codeValues.service.ts new file mode 100644 index 0000000000..e4eabcfde6 --- /dev/null +++ b/packages/fineract-client/src/services/codeValues.service.ts @@ -0,0 +1,503 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteCodeValueDataResponse } from '../models/deleteCodeValueDataResponse'; +// @ts-ignore +import { GetCodeValuesDataResponse } from '../models/getCodeValuesDataResponse'; +// @ts-ignore +import { PostCodeValueDataResponse } from '../models/postCodeValueDataResponse'; +// @ts-ignore +import { PostCodeValuesDataRequest } from '../models/postCodeValuesDataRequest'; +// @ts-ignore +import { PutCodeValueDataResponse } from '../models/putCodeValueDataResponse'; +// @ts-ignore +import { PutCodeValuesDataRequest } from '../models/putCodeValuesDataRequest'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CodeValuesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Code description + * @param codeId codeId + * @param postCodeValuesDataRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCodeValue(codeId: number, postCodeValuesDataRequest: PostCodeValuesDataRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCodeValue(codeId: number, postCodeValuesDataRequest: PostCodeValuesDataRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCodeValue(codeId: number, postCodeValuesDataRequest: PostCodeValuesDataRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCodeValue(codeId: number, postCodeValuesDataRequest: PostCodeValuesDataRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (codeId === null || codeId === undefined) { + throw new Error('Required parameter codeId was null or undefined when calling createCodeValue.'); + } + if (postCodeValuesDataRequest === null || postCodeValuesDataRequest === undefined) { + throw new Error('Required parameter postCodeValuesDataRequest was null or undefined when calling createCodeValue.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/codes/${this.configuration.encodeParam({name: "codeId", value: codeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/codevalues`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postCodeValuesDataRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Code description + * Deletes a code description + * @param codeId codeId + * @param codeValueId codeValueId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteCodeValue(codeId: number, codeValueId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteCodeValue(codeId: number, codeValueId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCodeValue(codeId: number, codeValueId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCodeValue(codeId: number, codeValueId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (codeId === null || codeId === undefined) { + throw new Error('Required parameter codeId was null or undefined when calling deleteCodeValue.'); + } + if (codeValueId === null || codeValueId === undefined) { + throw new Error('Required parameter codeValueId was null or undefined when calling deleteCodeValue.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/codes/${this.configuration.encodeParam({name: "codeId", value: codeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/codevalues/${this.configuration.encodeParam({name: "codeValueId", value: codeValueId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Code Values + * Returns the list of Code Values for a given Code Example Requests: codes/1/codevalues + * @param codeId codeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllCodeValues(codeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllCodeValues(codeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllCodeValues(codeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllCodeValues(codeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (codeId === null || codeId === undefined) { + throw new Error('Required parameter codeId was null or undefined when calling retrieveAllCodeValues.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/codes/${this.configuration.encodeParam({name: "codeId", value: codeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/codevalues`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Code description + * Returns the details of a Code Value Example Requests: codes/1/codevalues/1 + * @param codeValueId codeValueId + * @param codeId codeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCodeValue(codeValueId: number, codeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveCodeValue(codeValueId: number, codeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCodeValue(codeValueId: number, codeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCodeValue(codeValueId: number, codeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (codeValueId === null || codeValueId === undefined) { + throw new Error('Required parameter codeValueId was null or undefined when calling retrieveCodeValue.'); + } + if (codeId === null || codeId === undefined) { + throw new Error('Required parameter codeId was null or undefined when calling retrieveCodeValue.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/codes/${this.configuration.encodeParam({name: "codeId", value: codeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/codevalues/${this.configuration.encodeParam({name: "codeValueId", value: codeValueId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Code description + * Updates the details of a code description. + * @param codeId codeId + * @param codeValueId codeValueId + * @param putCodeValuesDataRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCodeValue(codeId: number, codeValueId: number, putCodeValuesDataRequest: PutCodeValuesDataRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCodeValue(codeId: number, codeValueId: number, putCodeValuesDataRequest: PutCodeValuesDataRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCodeValue(codeId: number, codeValueId: number, putCodeValuesDataRequest: PutCodeValuesDataRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCodeValue(codeId: number, codeValueId: number, putCodeValuesDataRequest: PutCodeValuesDataRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (codeId === null || codeId === undefined) { + throw new Error('Required parameter codeId was null or undefined when calling updateCodeValue.'); + } + if (codeValueId === null || codeValueId === undefined) { + throw new Error('Required parameter codeValueId was null or undefined when calling updateCodeValue.'); + } + if (putCodeValuesDataRequest === null || putCodeValuesDataRequest === undefined) { + throw new Error('Required parameter putCodeValuesDataRequest was null or undefined when calling updateCodeValue.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/codes/${this.configuration.encodeParam({name: "codeId", value: codeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/codevalues/${this.configuration.encodeParam({name: "codeValueId", value: codeValueId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putCodeValuesDataRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/codes.service.ts b/packages/fineract-client/src/services/codes.service.ts new file mode 100644 index 0000000000..b71a5106c5 --- /dev/null +++ b/packages/fineract-client/src/services/codes.service.ts @@ -0,0 +1,484 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteCodesResponse } from '../models/deleteCodesResponse'; +// @ts-ignore +import { GetCodesResponse } from '../models/getCodesResponse'; +// @ts-ignore +import { PostCodesRequest } from '../models/postCodesRequest'; +// @ts-ignore +import { PostCodesResponse } from '../models/postCodesResponse'; +// @ts-ignore +import { PutCodesRequest } from '../models/putCodesRequest'; +// @ts-ignore +import { PutCodesResponse } from '../models/putCodesResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CodesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Code + * Creates a code. Codes created through api are always \'user defined\' and so system defined is marked as false. + * @param postCodesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCode(postCodesRequest: PostCodesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCode(postCodesRequest: PostCodesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCode(postCodesRequest: PostCodesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCode(postCodesRequest: PostCodesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postCodesRequest === null || postCodesRequest === undefined) { + throw new Error('Required parameter postCodesRequest was null or undefined when calling createCode.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/codes`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postCodesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Code + * Deletes a code if it is not system defined. + * @param codeId codeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteCode(codeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteCode(codeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCode(codeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCode(codeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (codeId === null || codeId === undefined) { + throw new Error('Required parameter codeId was null or undefined when calling deleteCode.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/codes/${this.configuration.encodeParam({name: "codeId", value: codeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Code + * Returns the details of a Code. Example Requests: codes/1 + * @param codeId codeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCode(codeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveCode(codeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCode(codeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCode(codeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (codeId === null || codeId === undefined) { + throw new Error('Required parameter codeId was null or undefined when calling retrieveCode.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/codes/${this.configuration.encodeParam({name: "codeId", value: codeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Codes + * Returns the list of codes. Example Requests: codes + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCodes(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCodes(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveCodes(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveCodes(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/codes`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Code + * Updates the details of a code if it is not system defined. + * @param codeId codeId + * @param putCodesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCode(codeId: number, putCodesRequest: PutCodesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCode(codeId: number, putCodesRequest: PutCodesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCode(codeId: number, putCodesRequest: PutCodesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCode(codeId: number, putCodesRequest: PutCodesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (codeId === null || codeId === undefined) { + throw new Error('Required parameter codeId was null or undefined when calling updateCode.'); + } + if (putCodesRequest === null || putCodesRequest === undefined) { + throw new Error('Required parameter putCodesRequest was null or undefined when calling updateCode.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/codes/${this.configuration.encodeParam({name: "codeId", value: codeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putCodesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/collateralManagement.service.ts b/packages/fineract-client/src/services/collateralManagement.service.ts new file mode 100644 index 0000000000..1fa81732d1 --- /dev/null +++ b/packages/fineract-client/src/services/collateralManagement.service.ts @@ -0,0 +1,554 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteCollateralProductResponse } from '../models/deleteCollateralProductResponse'; +// @ts-ignore +import { GetCollateralManagementsResponse } from '../models/getCollateralManagementsResponse'; +// @ts-ignore +import { GetCollateralProductTemplate } from '../models/getCollateralProductTemplate'; +// @ts-ignore +import { PostCollateralManagementProductRequest } from '../models/postCollateralManagementProductRequest'; +// @ts-ignore +import { PostCollateralManagementProductResponse } from '../models/postCollateralManagementProductResponse'; +// @ts-ignore +import { PutCollateralProductRequest } from '../models/putCollateralProductRequest'; +// @ts-ignore +import { PutCollateralProductResponse } from '../models/putCollateralProductResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CollateralManagementService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a new collateral + * Collateral Creation + * @param postCollateralManagementProductRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCollateral1(postCollateralManagementProductRequest: PostCollateralManagementProductRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCollateral1(postCollateralManagementProductRequest: PostCollateralManagementProductRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCollateral1(postCollateralManagementProductRequest: PostCollateralManagementProductRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCollateral1(postCollateralManagementProductRequest: PostCollateralManagementProductRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postCollateralManagementProductRequest === null || postCollateralManagementProductRequest === undefined) { + throw new Error('Required parameter postCollateralManagementProductRequest was null or undefined when calling createCollateral1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/collateral-management`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postCollateralManagementProductRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Collateral + * Delete Collateral + * @param collateralId collateralId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteCollateral2(collateralId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteCollateral2(collateralId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCollateral2(collateralId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCollateral2(collateralId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (collateralId === null || collateralId === undefined) { + throw new Error('Required parameter collateralId was null or undefined when calling deleteCollateral2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/collateral-management/${this.configuration.encodeParam({name: "collateralId", value: collateralId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Get All Collaterals + * Fetch all Collateral Products + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAllCollaterals(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAllCollaterals(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getAllCollaterals(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getAllCollaterals(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/collateral-management`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Get Collateral + * Fetch Collateral + * @param collateralId collateralId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCollateral(collateralId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getCollateral(collateralId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCollateral(collateralId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCollateral(collateralId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (collateralId === null || collateralId === undefined) { + throw new Error('Required parameter collateralId was null or undefined when calling getCollateral.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/collateral-management/${this.configuration.encodeParam({name: "collateralId", value: collateralId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Get Collateral Template + * Get Collateral Template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCollateralTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCollateralTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getCollateralTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getCollateralTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/collateral-management/template`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Collateral + * Update Collateral + * @param collateralId collateralId + * @param putCollateralProductRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCollateral2(collateralId: number, putCollateralProductRequest: PutCollateralProductRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCollateral2(collateralId: number, putCollateralProductRequest: PutCollateralProductRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCollateral2(collateralId: number, putCollateralProductRequest: PutCollateralProductRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCollateral2(collateralId: number, putCollateralProductRequest: PutCollateralProductRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (collateralId === null || collateralId === undefined) { + throw new Error('Required parameter collateralId was null or undefined when calling updateCollateral2.'); + } + if (putCollateralProductRequest === null || putCollateralProductRequest === undefined) { + throw new Error('Required parameter putCollateralProductRequest was null or undefined when calling updateCollateral2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/collateral-management/${this.configuration.encodeParam({name: "collateralId", value: collateralId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putCollateralProductRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/collectionSheet.service.ts b/packages/fineract-client/src/services/collectionSheet.service.ts new file mode 100644 index 0000000000..6826356c3c --- /dev/null +++ b/packages/fineract-client/src/services/collectionSheet.service.ts @@ -0,0 +1,186 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { PostCollectionSheetRequest } from '../models/postCollectionSheetRequest'; +// @ts-ignore +import { PostCollectionSheetResponse } from '../models/postCollectionSheetResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CollectionSheetService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Generate Individual Collection Sheet | Save Collection Sheet + * Generate Individual Collection Sheet: This Api retrieves repayment details of all individual loans under a office as on a specified meeting date. Save Collection Sheet: This Api allows the loan officer to perform bulk repayments of individual loans and deposit of mandatory savings on a given meeting date. + * @param postCollectionSheetRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public generateCollectionSheet(postCollectionSheetRequest: PostCollectionSheetRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public generateCollectionSheet(postCollectionSheetRequest: PostCollectionSheetRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public generateCollectionSheet(postCollectionSheetRequest: PostCollectionSheetRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public generateCollectionSheet(postCollectionSheetRequest: PostCollectionSheetRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postCollectionSheetRequest === null || postCollectionSheetRequest === undefined) { + throw new Error('Required parameter postCollectionSheetRequest was null or undefined when calling generateCollectionSheet.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/collectionsheet`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postCollectionSheetRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/creditBureauConfiguration.service.ts b/packages/fineract-client/src/services/creditBureauConfiguration.service.ts new file mode 100644 index 0000000000..c6516a3f31 --- /dev/null +++ b/packages/fineract-client/src/services/creditBureauConfiguration.service.ts @@ -0,0 +1,974 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CreditBureauConfigurationService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param organisationCreditBureauId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addOrganisationCreditBureau(organisationCreditBureauId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public addOrganisationCreditBureau(organisationCreditBureauId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addOrganisationCreditBureau(organisationCreditBureauId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addOrganisationCreditBureau(organisationCreditBureauId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (organisationCreditBureauId === null || organisationCreditBureauId === undefined) { + throw new Error('Required parameter organisationCreditBureauId was null or undefined when calling addOrganisationCreditBureau.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/organisationCreditBureau/${this.configuration.encodeParam({name: "organisationCreditBureauId", value: organisationCreditBureauId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param creditBureauId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCreditBureauConfiguration(creditBureauId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCreditBureauConfiguration(creditBureauId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCreditBureauConfiguration(creditBureauId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCreditBureauConfiguration(creditBureauId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (creditBureauId === null || creditBureauId === undefined) { + throw new Error('Required parameter creditBureauId was null or undefined when calling createCreditBureauConfiguration.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/configuration/${this.configuration.encodeParam({name: "creditBureauId", value: creditBureauId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param organisationCreditBureauId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCreditBureauLoanProductMapping(organisationCreditBureauId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCreditBureauLoanProductMapping(organisationCreditBureauId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCreditBureauLoanProductMapping(organisationCreditBureauId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCreditBureauLoanProductMapping(organisationCreditBureauId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (organisationCreditBureauId === null || organisationCreditBureauId === undefined) { + throw new Error('Required parameter organisationCreditBureauId was null or undefined when calling createCreditBureauLoanProductMapping.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/mappings/${this.configuration.encodeParam({name: "organisationCreditBureauId", value: organisationCreditBureauId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public fetchLoanProducts(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public fetchLoanProducts(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchLoanProducts(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchLoanProducts(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/loanProduct`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanProductId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public fetchMappingByLoanProductId(loanProductId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public fetchMappingByLoanProductId(loanProductId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchMappingByLoanProductId(loanProductId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchMappingByLoanProductId(loanProductId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanProductId === null || loanProductId === undefined) { + throw new Error('Required parameter loanProductId was null or undefined when calling fetchMappingByLoanProductId.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/loanProduct/${this.configuration.encodeParam({name: "loanProductId", value: loanProductId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param organisationCreditBureauId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getConfiguration(organisationCreditBureauId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getConfiguration(organisationCreditBureauId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getConfiguration(organisationCreditBureauId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getConfiguration(organisationCreditBureauId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (organisationCreditBureauId === null || organisationCreditBureauId === undefined) { + throw new Error('Required parameter organisationCreditBureauId was null or undefined when calling getConfiguration.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/config/${this.configuration.encodeParam({name: "organisationCreditBureauId", value: organisationCreditBureauId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCreditBureau(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getCreditBureau(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCreditBureau(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCreditBureau(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCreditBureauLoanProductMapping(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getCreditBureauLoanProductMapping(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCreditBureauLoanProductMapping(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCreditBureauLoanProductMapping(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/mappings`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getOrganisationCreditBureau(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getOrganisationCreditBureau(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getOrganisationCreditBureau(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getOrganisationCreditBureau(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/organisationCreditBureau`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCreditBureau(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCreditBureau(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCreditBureau(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCreditBureau(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/organisationCreditBureau`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param configurationId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCreditBureauConfiguration(configurationId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCreditBureauConfiguration(configurationId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCreditBureauConfiguration(configurationId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCreditBureauConfiguration(configurationId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (configurationId === null || configurationId === undefined) { + throw new Error('Required parameter configurationId was null or undefined when calling updateCreditBureauConfiguration.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/configuration/${this.configuration.encodeParam({name: "configurationId", value: configurationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCreditBureauLoanProductMapping(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCreditBureauLoanProductMapping(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCreditBureauLoanProductMapping(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCreditBureauLoanProductMapping(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/CreditBureauConfiguration/mappings`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/currency.service.ts b/packages/fineract-client/src/services/currency.service.ts new file mode 100644 index 0000000000..0c4ce060e4 --- /dev/null +++ b/packages/fineract-client/src/services/currency.service.ts @@ -0,0 +1,248 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetCurrenciesResponse } from '../models/getCurrenciesResponse'; +// @ts-ignore +import { PutCurrenciesRequest } from '../models/putCurrenciesRequest'; +// @ts-ignore +import { PutCurrenciesResponse } from '../models/putCurrenciesResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CurrencyService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieve Currency Configuration + * Returns the list of currencies permitted for use AND the list of currencies not selected (but available for selection). Example Requests: currencies currencies?fields=selectedCurrencyOptions + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCurrencies(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveCurrencies(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCurrencies(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCurrencies(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/currencies`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Currency Configuration + * Updates the list of currencies permitted for use. + * @param putCurrenciesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCurrencies(putCurrenciesRequest: PutCurrenciesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCurrencies(putCurrenciesRequest: PutCurrenciesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCurrencies(putCurrenciesRequest: PutCurrenciesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCurrencies(putCurrenciesRequest: PutCurrenciesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (putCurrenciesRequest === null || putCurrenciesRequest === undefined) { + throw new Error('Required parameter putCurrenciesRequest was null or undefined when calling updateCurrencies.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/currencies`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putCurrenciesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/dataTables.service.ts b/packages/fineract-client/src/services/dataTables.service.ts new file mode 100644 index 0000000000..d36f797ff9 --- /dev/null +++ b/packages/fineract-client/src/services/dataTables.service.ts @@ -0,0 +1,1356 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteDataTablesDatatableAppTableIdDatatableIdResponse } from '../models/deleteDataTablesDatatableAppTableIdDatatableIdResponse'; +// @ts-ignore +import { DeleteDataTablesDatatableAppTableIdResponse } from '../models/deleteDataTablesDatatableAppTableIdResponse'; +// @ts-ignore +import { DeleteDataTablesResponse } from '../models/deleteDataTablesResponse'; +// @ts-ignore +import { GetDataTablesResponse } from '../models/getDataTablesResponse'; +// @ts-ignore +import { PostDataTablesAppTableIdResponse } from '../models/postDataTablesAppTableIdResponse'; +// @ts-ignore +import { PostDataTablesRequest } from '../models/postDataTablesRequest'; +// @ts-ignore +import { PostDataTablesResponse } from '../models/postDataTablesResponse'; +// @ts-ignore +import { PutDataTablesAppTableIdDatatableIdResponse } from '../models/putDataTablesAppTableIdDatatableIdResponse'; +// @ts-ignore +import { PutDataTablesAppTableIdResponse } from '../models/putDataTablesAppTableIdResponse'; +// @ts-ignore +import { PutDataTablesRequest } from '../models/putDataTablesRequest'; +// @ts-ignore +import { PutDataTablesResponse } from '../models/putDataTablesResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class DataTablesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create Data Table + * Create a new data table and registers it with the Apache Fineract Core application table. Field Descriptions Mandatory - datatableName : The name of the Data Table. Mandatory - apptableName Application table name. Must be one of the following: m_client m_group m_loan m_office m_saving_account m_product_loan m_savings_product Mandatory - columns An array of columns in the new Data Table. Optional - multiRow Allows to create multiple entries in the Data Table. Optional, defaults to false. If this property is not provided Data Table will allow only one entry. Field Descriptions - columns Mandatory - name Name of the created column. Can contain only alphanumeric characters, underscores and spaces, but cannot start with a number. Cannot start or end with an underscore or space. Mandatory - type Column type. Must be one of the following: Boolean Date DateTime Decimal Dropdown Number String Text Mandatory [type = Dropdown] - code Used in Code description fields. Column name becomes: code_cd_name. Mandatory if using type Dropdown, otherwise an error is returned. Optional - mandatory Determines whether this column must have a value in every entry. Optional, defaults to false. Mandatory [type = String] - length Length of the text field. Mandatory if type String is used, otherwise an error is returned. + * @param postDataTablesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createDatatable(postDataTablesRequest: PostDataTablesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createDatatable(postDataTablesRequest: PostDataTablesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDatatable(postDataTablesRequest: PostDataTablesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDatatable(postDataTablesRequest: PostDataTablesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postDataTablesRequest === null || postDataTablesRequest === undefined) { + throw new Error('Required parameter postDataTablesRequest was null or undefined when calling createDatatable.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postDataTablesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create Entry in Data Table + * Adds a row to the data table. Note that the default datatable UI functionality converts any field name containing spaces to underscores when using the API. This means the field name \"Business Description\" is considered the same as \"Business_Description\". So you shouldn\'t have both \"versions\" in any data table. + * @param datatable datatable + * @param apptableId apptableId + * @param body { \"BusinessDescription\": \"Livestock sales\", \"Comment\": \"First comment made\", \"Education_cv\": \"Primary\", \"Gender_cd\": 6, \"HighestRatePaid\": 8.5, \"NextVisit\": \"01 October 2012\", \"YearsinBusiness\": 5, \"dateFormat\": \"dd MMMM yyyy\", \"locale\": \"en\" } + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createDatatableEntry(datatable: string, apptableId: number, body: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createDatatableEntry(datatable: string, apptableId: number, body: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDatatableEntry(datatable: string, apptableId: number, body: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDatatableEntry(datatable: string, apptableId: number, body: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling createDatatableEntry.'); + } + if (apptableId === null || apptableId === undefined) { + throw new Error('Required parameter apptableId was null or undefined when calling createDatatableEntry.'); + } + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createDatatableEntry.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "apptableId", value: apptableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete Data Table + * Deletes a data table and deregisters it from the Apache Fineract Core application table. + * @param datatableName datatableName + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteDatatable(datatableName: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteDatatable(datatableName: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDatatable(datatableName: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDatatable(datatableName: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatableName === null || datatableName === undefined) { + throw new Error('Required parameter datatableName was null or undefined when calling deleteDatatable.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatableName", value: datatableName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete Entry(s) in Data Table + * Deletes the entry (if it exists) for data tables that are one-to-one with the application table. Deletes the entries (if they exist) for data tables that are one-to-many with the application table. + * @param datatable datatable + * @param apptableId apptableId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteDatatableEntries(datatable: string, apptableId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteDatatableEntries(datatable: string, apptableId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDatatableEntries(datatable: string, apptableId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDatatableEntries(datatable: string, apptableId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling deleteDatatableEntries.'); + } + if (apptableId === null || apptableId === undefined) { + throw new Error('Required parameter apptableId was null or undefined when calling deleteDatatableEntries.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "apptableId", value: apptableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete Entry in Datatable (One to Many) + * Deletes the entry (if it exists) for data tables that are one to many with the application table. + * @param datatable datatable + * @param apptableId apptableId + * @param datatableId datatableId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteDatatableEntries1(datatable: string, apptableId: number, datatableId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteDatatableEntries1(datatable: string, apptableId: number, datatableId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDatatableEntries1(datatable: string, apptableId: number, datatableId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDatatableEntries1(datatable: string, apptableId: number, datatableId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling deleteDatatableEntries1.'); + } + if (apptableId === null || apptableId === undefined) { + throw new Error('Required parameter apptableId was null or undefined when calling deleteDatatableEntries1.'); + } + if (datatableId === null || datatableId === undefined) { + throw new Error('Required parameter datatableId was null or undefined when calling deleteDatatableEntries1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "apptableId", value: apptableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/${this.configuration.encodeParam({name: "datatableId", value: datatableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Deregister Data Table + * Deregisters a data table. It will no longer be available through the API. + * @param datatable datatable + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deregisterDatatable(datatable: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deregisterDatatable(datatable: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deregisterDatatable(datatable: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deregisterDatatable(datatable: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling deregisterDatatable.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/deregister/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Data Table Details + * Lists a registered data table details and the Apache Fineract Core application table they are registered to. + * @param datatable datatable + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDatatable(datatable: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getDatatable(datatable: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDatatable(datatable: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDatatable(datatable: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling getDatatable.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Entry(s) from Data Table + * Gets the entry (if it exists) for data tables that are one to one with the application table. Gets the entries (if they exist) for data tables that are one to many with the application table. Note: The \'fields\' parameter is not available for datatables. ARGUMENTS orderoptional Specifies the order in which data is returned.genericResultSetoptional, defaults to false If \'true\' an optimised JSON format is returned suitable for tabular display of data. This format is used by the default data tables UI functionality. Example Requests: datatables/extra_client_details/1 datatables/extra_family_details/1?order=`Date of Birth` desc datatables/extra_client_details/1?genericResultSet=true + * @param datatable datatable + * @param apptableId apptableId + * @param order order + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDatatable1(datatable: string, apptableId: number, order?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getDatatable1(datatable: string, apptableId: number, order?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDatatable1(datatable: string, apptableId: number, order?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDatatable1(datatable: string, apptableId: number, order?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling getDatatable1.'); + } + if (apptableId === null || apptableId === undefined) { + throw new Error('Required parameter apptableId was null or undefined when calling getDatatable1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (order !== undefined && order !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + order, 'order'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "apptableId", value: apptableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param datatable + * @param apptableId + * @param datatableId + * @param order + * @param genericResultSet Optional flag to format the response + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDatatableManyEntry(datatable: string, apptableId: number, datatableId: number, order?: string, genericResultSet?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getDatatableManyEntry(datatable: string, apptableId: number, datatableId: number, order?: string, genericResultSet?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDatatableManyEntry(datatable: string, apptableId: number, datatableId: number, order?: string, genericResultSet?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDatatableManyEntry(datatable: string, apptableId: number, datatableId: number, order?: string, genericResultSet?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling getDatatableManyEntry.'); + } + if (apptableId === null || apptableId === undefined) { + throw new Error('Required parameter apptableId was null or undefined when calling getDatatableManyEntry.'); + } + if (datatableId === null || datatableId === undefined) { + throw new Error('Required parameter datatableId was null or undefined when calling getDatatableManyEntry.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (order !== undefined && order !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + order, 'order'); + } + if (genericResultSet !== undefined && genericResultSet !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + genericResultSet, 'genericResultSet'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "apptableId", value: apptableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/${this.configuration.encodeParam({name: "datatableId", value: datatableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Data Tables + * Lists registered data tables and the Apache Fineract Core application table they are registered to. ARGUMENTS apptable - optional The Apache Fineract core application table. Example Requests: datatables?apptable=m_client datatables + * @param apptable apptable + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDatatables(apptable?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDatatables(apptable?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getDatatables(apptable?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getDatatables(apptable?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (apptable !== undefined && apptable !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + apptable, 'apptable'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query Data Table values + * Query values from a registered data table. + * @param datatable datatable + * @param columnFilter columnFilter + * @param valueFilter valueFilter + * @param resultColumns resultColumns + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public queryValues(datatable: string, columnFilter?: string, valueFilter?: string, resultColumns?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public queryValues(datatable: string, columnFilter?: string, valueFilter?: string, resultColumns?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public queryValues(datatable: string, columnFilter?: string, valueFilter?: string, resultColumns?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public queryValues(datatable: string, columnFilter?: string, valueFilter?: string, resultColumns?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling queryValues.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (columnFilter !== undefined && columnFilter !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + columnFilter, 'columnFilter'); + } + if (valueFilter !== undefined && valueFilter !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + valueFilter, 'valueFilter'); + } + if (resultColumns !== undefined && resultColumns !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + resultColumns, 'resultColumns'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/query`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Register Data Table + * Registers a data table with the Apache Fineract Core application table. This allows the data table to be maintained through the API. In case the datatable is a PPI (survey table), a parameter category should be pass along with the request. The API currently support one category (200) + * @param datatable datatable + * @param apptable apptable + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registerDatatable(datatable: string, apptable: string, body?: object, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public registerDatatable(datatable: string, apptable: string, body?: object, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public registerDatatable(datatable: string, apptable: string, body?: object, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public registerDatatable(datatable: string, apptable: string, body?: object, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling registerDatatable.'); + } + if (apptable === null || apptable === undefined) { + throw new Error('Required parameter apptable was null or undefined when calling registerDatatable.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/register/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "apptable", value: apptable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Data Table + * Modifies fields of a data table. If the apptableName parameter is passed, data table is deregistered and registered with the new application table. + * @param datatableName datatableName + * @param putDataTablesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateDatatable(datatableName: string, putDataTablesRequest: PutDataTablesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateDatatable(datatableName: string, putDataTablesRequest: PutDataTablesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDatatable(datatableName: string, putDataTablesRequest: PutDataTablesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDatatable(datatableName: string, putDataTablesRequest: PutDataTablesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatableName === null || datatableName === undefined) { + throw new Error('Required parameter datatableName was null or undefined when calling updateDatatable.'); + } + if (putDataTablesRequest === null || putDataTablesRequest === undefined) { + throw new Error('Required parameter putDataTablesRequest was null or undefined when calling updateDatatable.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatableName", value: datatableName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putDataTablesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Entry in Data Table (One to Many) + * Updates the row (if it exists) of the data table. + * @param datatable datatable + * @param apptableId apptableId + * @param datatableId datatableId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateDatatableEntryOneToMany(datatable: string, apptableId: number, datatableId: number, body: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateDatatableEntryOneToMany(datatable: string, apptableId: number, datatableId: number, body: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDatatableEntryOneToMany(datatable: string, apptableId: number, datatableId: number, body: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDatatableEntryOneToMany(datatable: string, apptableId: number, datatableId: number, body: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling updateDatatableEntryOneToMany.'); + } + if (apptableId === null || apptableId === undefined) { + throw new Error('Required parameter apptableId was null or undefined when calling updateDatatableEntryOneToMany.'); + } + if (datatableId === null || datatableId === undefined) { + throw new Error('Required parameter datatableId was null or undefined when calling updateDatatableEntryOneToMany.'); + } + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateDatatableEntryOneToMany.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "apptableId", value: apptableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/${this.configuration.encodeParam({name: "datatableId", value: datatableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Entry in Data Table (One to One) + * Updates the row (if it exists) of the data table. + * @param datatable datatable + * @param apptableId apptableId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateDatatableEntryOnetoOne(datatable: string, apptableId: number, body: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateDatatableEntryOnetoOne(datatable: string, apptableId: number, body: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDatatableEntryOnetoOne(datatable: string, apptableId: number, body: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDatatableEntryOnetoOne(datatable: string, apptableId: number, body: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (datatable === null || datatable === undefined) { + throw new Error('Required parameter datatable was null or undefined when calling updateDatatableEntryOnetoOne.'); + } + if (apptableId === null || apptableId === undefined) { + throw new Error('Required parameter apptableId was null or undefined when calling updateDatatableEntryOnetoOne.'); + } + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateDatatableEntryOnetoOne.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/datatables/${this.configuration.encodeParam({name: "datatable", value: datatable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "apptableId", value: apptableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/default.service.ts b/packages/fineract-client/src/services/default.service.ts new file mode 100644 index 0000000000..bfa9984f5d --- /dev/null +++ b/packages/fineract-client/src/services/default.service.ts @@ -0,0 +1,4173 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { CommandProcessingResult } from '../models/commandProcessingResult'; +// @ts-ignore +import { CommandWrapper } from '../models/commandWrapper'; +// @ts-ignore +import { SmsCampaignData } from '../models/smsCampaignData'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class DefaultService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param resourceId + * @param command + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public activate(resourceId: number, command?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public activate(resourceId: number, command?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public activate(resourceId: number, command?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public activate(resourceId: number, command?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling activate.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/campaign/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param creditBureauId creditBureauId + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addCreditReport(creditBureauId?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public addCreditReport(creditBureauId?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public addCreditReport(creditBureauId?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public addCreditReport(creditBureauId?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (creditBureauId !== undefined && creditBureauId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + creditBureauId, 'creditBureauId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/creditBureauIntegration/addCreditReport`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entity + * @param entityId + * @param contentLength + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addNewClientImage1(entity: string, entityId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public addNewClientImage1(entity: string, entityId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addNewClientImage1(entity: string, entityId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addNewClientImage1(entity: string, entityId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entity === null || entity === undefined) { + throw new Error('Required parameter entity was null or undefined when calling addNewClientImage1.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling addNewClientImage1.'); + } + + let localVarHeaders = this.defaultHeaders; + if (contentLength !== undefined && contentLength !== null) { + localVarHeaders = localVarHeaders.set('Content-Length', String(contentLength)); + } + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entity", value: entity, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create1(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create1(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create1(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create1(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCampaign(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCampaign(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCampaign(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCampaign(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/campaign`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create a SMS Campaign + * Mandatory Fields campaignName, campaignType, triggerType, providerId, runReportId, message Mandatory Fields for Cash based on selected report id paramValue in json format + * @param commandWrapper + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCampaign1(commandWrapper: CommandWrapper, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCampaign1(commandWrapper: CommandWrapper, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCampaign1(commandWrapper: CommandWrapper, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCampaign1(commandWrapper: CommandWrapper, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (commandWrapper === null || commandWrapper === undefined) { + throw new Error('Required parameter commandWrapper was null or undefined when calling createCampaign1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/smscampaigns`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: commandWrapper, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param resourceId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete1(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete1(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete1(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete1(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling delete1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param resourceId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete2(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete2(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete2(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete2(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling delete2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/campaign/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a SMS Campaign + * Note: Only closed SMS Campaigns can be deleted + * @param campaignId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete3(campaignId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public delete3(campaignId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public delete3(campaignId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public delete3(campaignId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + if (campaignId === null || campaignId === undefined) { + throw new Error('Required parameter campaignId was null or undefined when calling delete3.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/smscampaigns/${this.configuration.encodeParam({name: "campaignId", value: campaignId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param transactionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete8(transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete8(transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete8(transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete8(transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling delete8.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/officetransactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entity + * @param entityId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteClientImage(entity: string, entityId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteClientImage(entity: string, entityId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteClientImage(entity: string, entityId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteClientImage(entity: string, entityId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entity === null || entity === undefined) { + throw new Error('Required parameter entity was null or undefined when calling deleteClientImage.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling deleteClientImage.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entity", value: entity, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param creditBureauId creditBureauId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteCreditReport(creditBureauId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteCreditReport(creditBureauId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCreditReport(creditBureauId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCreditReport(creditBureauId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (creditBureauId === null || creditBureauId === undefined) { + throw new Error('Required parameter creditBureauId was null or undefined when calling deleteCreditReport.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/creditBureauIntegration/deleteCreditReport/${this.configuration.encodeParam({name: "creditBureauId", value: creditBureauId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body Fetch credit report + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public fetchCreditReport(body?: object, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public fetchCreditReport(body?: object, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchCreditReport(body?: object, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchCreditReport(body?: object, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/creditBureauIntegration/creditReport`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public get(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain', context?: HttpContext}): Observable; + public get(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain', context?: HttpContext}): Observable>; + public get(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain', context?: HttpContext}): Observable>; + public get(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'text/plain' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/echo`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getClientAuditFields(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getClientAuditFields(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getClientAuditFields(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getClientAuditFields(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling getClientAuditFields.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/internal/client/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/audit`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param partitionSize + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCobPartitions(partitionSize: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getCobPartitions(partitionSize: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCobPartitions(partitionSize: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCobPartitions(partitionSize: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (partitionSize === null || partitionSize === undefined) { + throw new Error('Required parameter partitionSize was null or undefined when calling getCobPartitions.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/internal/cob/partitions/${this.configuration.encodeParam({name: "partitionSize", value: partitionSize, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param path + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getExternalGrammar(path: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext}): Observable; + public getExternalGrammar(path: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext}): Observable>; + public getExternalGrammar(path: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext}): Observable>; + public getExternalGrammar(path: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext}): Observable { + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling getExternalGrammar.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/xml' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/application.wadl/${this.configuration.encodeParam({name: "path", value: path, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getLoanAuditFields(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getLoanAuditFields(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getLoanAuditFields(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getLoanAuditFields(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling getLoanAuditFields.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/internal/loan/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/audit`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param transactionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getLoanTransactionAuditFields(loanId: number, transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getLoanTransactionAuditFields(loanId: number, transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getLoanTransactionAuditFields(loanId: number, transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getLoanTransactionAuditFields(loanId: number, transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling getLoanTransactionAuditFields.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling getLoanTransactionAuditFields.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/internal/loan/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transaction/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/audit`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param statusId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getLoansByStatus(statusId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getLoansByStatus(statusId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getLoansByStatus(statusId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getLoansByStatus(statusId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (statusId === null || statusId === undefined) { + throw new Error('Required parameter statusId was null or undefined when calling getLoansByStatus.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/internal/loan/status/${this.configuration.encodeParam({name: "statusId", value: statusId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param creditBureauId creditBureauId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getSavedCreditReport(creditBureauId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getSavedCreditReport(creditBureauId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getSavedCreditReport(creditBureauId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getSavedCreditReport(creditBureauId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (creditBureauId === null || creditBureauId === undefined) { + throw new Error('Required parameter creditBureauId was null or undefined when calling getSavedCreditReport.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/creditBureauIntegration/creditReport/${this.configuration.encodeParam({name: "creditBureauId", value: creditBureauId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getWadl(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.sun.wadl+xml' | 'application/xml', context?: HttpContext}): Observable; + public getWadl(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.sun.wadl+xml' | 'application/xml', context?: HttpContext}): Observable>; + public getWadl(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.sun.wadl+xml' | 'application/xml', context?: HttpContext}): Observable>; + public getWadl(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.sun.wadl+xml' | 'application/xml', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.sun.wadl+xml', + 'application/xml' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/application.wadl`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * SMS Campaign + * Activates | Deactivates | Reactivates + * @param campaignId + * @param command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleCommands(campaignId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public handleCommands(campaignId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands(campaignId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands(campaignId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (campaignId === null || campaignId === undefined) { + throw new Error('Required parameter campaignId was null or undefined when calling handleCommands.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/smscampaigns/${this.configuration.encodeParam({name: "campaignId", value: campaignId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public newOfficeTransactionDetails(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public newOfficeTransactionDetails(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public newOfficeTransactionDetails(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public newOfficeTransactionDetails(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/officetransactions/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param lockOwner + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public placeLockOnLoanAccount(loanId: number, lockOwner: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public placeLockOnLoanAccount(loanId: number, lockOwner: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public placeLockOnLoanAccount(loanId: number, lockOwner: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public placeLockOnLoanAccount(loanId: number, lockOwner: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling placeLockOnLoanAccount.'); + } + if (lockOwner === null || lockOwner === undefined) { + throw new Error('Required parameter lockOwner was null or undefined when calling placeLockOnLoanAccount.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/internal/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/place-lock/${this.configuration.encodeParam({name: "lockOwner", value: lockOwner, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public preview(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public preview(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public preview(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public preview(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/campaign/preview`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public preview1(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public preview1(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public preview1(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public preview1(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/smscampaigns/preview`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll5(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll5(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll5(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll5(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/configuration`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll9(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll9(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll9(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll9(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/twofactor/configure`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllCampaign(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllCampaign(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllCampaign(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllCampaign(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/campaign`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param sqlSearch + * @param offset + * @param limit + * @param status + * @param orderBy + * @param sortOrder + * @param fromDate + * @param toDate + * @param locale + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllEmailByStatus(sqlSearch?: string, offset?: number, limit?: number, status?: number, orderBy?: string, sortOrder?: string, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllEmailByStatus(sqlSearch?: string, offset?: number, limit?: number, status?: number, orderBy?: string, sortOrder?: string, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllEmailByStatus(sqlSearch?: string, offset?: number, limit?: number, status?: number, orderBy?: string, sortOrder?: string, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllEmailByStatus(sqlSearch?: string, offset?: number, limit?: number, status?: number, orderBy?: string, sortOrder?: string, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (status !== undefined && status !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + status, 'status'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (fromDate !== undefined && fromDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromDate, 'fromDate'); + } + if (toDate !== undefined && toDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toDate, 'toDate'); + } + if (locale !== undefined && locale !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + locale, 'locale'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/messageByStatus`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllEmails(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllEmails(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllEmails(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllEmails(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List SMS Campaigns + * Example Requests: smscampaigns + * @param sqlSearch + * @param offset + * @param limit + * @param orderBy + * @param sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllEmails1(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllEmails1(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllEmails1(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllEmails1(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/smscampaigns`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a SMS Campaign + * Example Requests: smscampaigns/1 + * @param resourceId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCampaign(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveCampaign(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCampaign(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCampaign(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling retrieveCampaign.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/smscampaigns/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param sqlSearch + * @param offset + * @param limit + * @param orderBy + * @param sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveFailedEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveFailedEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveFailedEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveFailedEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/failedEmail`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entity + * @param entityId + * @param maxWidth + * @param maxHeight + * @param output + * @param accept + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveImage(entity: string, entityId: number, maxWidth?: number, maxHeight?: number, output?: string, accept?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public retrieveImage(entity: string, entityId: number, maxWidth?: number, maxHeight?: number, output?: string, accept?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public retrieveImage(entity: string, entityId: number, maxWidth?: number, maxHeight?: number, output?: string, accept?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public retrieveImage(entity: string, entityId: number, maxWidth?: number, maxHeight?: number, output?: string, accept?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + if (entity === null || entity === undefined) { + throw new Error('Required parameter entity was null or undefined when calling retrieveImage.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling retrieveImage.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (maxWidth !== undefined && maxWidth !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + maxWidth, 'maxWidth'); + } + if (maxHeight !== undefined && maxHeight !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + maxHeight, 'maxHeight'); + } + if (output !== undefined && output !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + output, 'output'); + } + + let localVarHeaders = this.defaultHeaders; + if (accept !== undefined && accept !== null) { + localVarHeaders = localVarHeaders.set('Accept', String(accept)); + } + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entity", value: entity, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOfficeTransactions(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOfficeTransactions(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOfficeTransactions(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOfficeTransactions(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/officetransactions`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param resourceId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne1(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne1(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne1(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne1(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling retrieveOne1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param resourceId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOneCampaign(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOneCampaign(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOneCampaign(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOneCampaign(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling retrieveOneCampaign.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/campaign/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param resourceId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOneTemplate(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOneTemplate(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOneTemplate(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOneTemplate(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling retrieveOneTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/campaign/template/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param sqlSearch + * @param offset + * @param limit + * @param orderBy + * @param sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrievePendingEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrievePendingEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrievePendingEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrievePendingEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/pendingEmail`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param sqlSearch + * @param offset + * @param limit + * @param orderBy + * @param sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveSentEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveSentEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSentEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSentEmail(sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/sentEmail`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param creditBureauId creditBureauId + * @param nationalId nationalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public saveCreditReport(creditBureauId?: number, nationalId?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public saveCreditReport(creditBureauId?: number, nationalId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public saveCreditReport(creditBureauId?: number, nationalId?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public saveCreditReport(creditBureauId?: number, nationalId?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (creditBureauId !== undefined && creditBureauId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + creditBureauId, 'creditBureauId'); + } + if (nationalId !== undefined && nationalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + nationalId, 'nationalId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/creditBureauIntegration/saveCreditReport`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template1(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template1(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template1(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template1(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/campaign/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a SMS Campaign + * Example Requests: smscampaigns/1 smscampaigns/1?template=true smscampaigns/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template2(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public template2(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public template2(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public template2(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/smscampaigns/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public transferMoneyFrom(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public transferMoneyFrom(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transferMoneyFrom(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transferMoneyFrom(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/officetransactions`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param resourceId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update2(resourceId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update2(resourceId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update2(resourceId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update2(resourceId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling update2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param resourceId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCampaign(resourceId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCampaign(resourceId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCampaign(resourceId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCampaign(resourceId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling updateCampaign.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/campaign/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Campaign + * @param campaignId + * @param commandWrapper + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCampaign1(campaignId: number, commandWrapper: CommandWrapper, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCampaign1(campaignId: number, commandWrapper: CommandWrapper, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCampaign1(campaignId: number, commandWrapper: CommandWrapper, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCampaign1(campaignId: number, commandWrapper: CommandWrapper, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (campaignId === null || campaignId === undefined) { + throw new Error('Required parameter campaignId was null or undefined when calling updateCampaign1.'); + } + if (commandWrapper === null || commandWrapper === undefined) { + throw new Error('Required parameter commandWrapper was null or undefined when calling updateCampaign1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/smscampaigns/${this.configuration.encodeParam({name: "campaignId", value: campaignId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: commandWrapper, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entity + * @param entityId + * @param contentLength + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateClientImage1(entity: string, entityId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateClientImage1(entity: string, entityId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateClientImage1(entity: string, entityId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateClientImage1(entity: string, entityId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entity === null || entity === undefined) { + throw new Error('Required parameter entity was null or undefined when calling updateClientImage1.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling updateClientImage1.'); + } + + let localVarHeaders = this.defaultHeaders; + if (contentLength !== undefined && contentLength !== null) { + localVarHeaders = localVarHeaders.set('Content-Length', String(contentLength)); + } + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entity", value: entity, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateConfiguration(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateConfiguration(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateConfiguration(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateConfiguration(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/email/configuration`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateConfiguration3(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateConfiguration3(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateConfiguration3(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateConfiguration3(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/twofactor/configure`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/delinquencyRangeAndBucketsManagement.service.ts b/packages/fineract-client/src/services/delinquencyRangeAndBucketsManagement.service.ts new file mode 100644 index 0000000000..a487e4fa0f --- /dev/null +++ b/packages/fineract-client/src/services/delinquencyRangeAndBucketsManagement.service.ts @@ -0,0 +1,890 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteDelinquencyBucketResponse } from '../models/deleteDelinquencyBucketResponse'; +// @ts-ignore +import { DeleteDelinquencyRangeResponse } from '../models/deleteDelinquencyRangeResponse'; +// @ts-ignore +import { GetDelinquencyBucketsResponse } from '../models/getDelinquencyBucketsResponse'; +// @ts-ignore +import { GetDelinquencyRangesResponse } from '../models/getDelinquencyRangesResponse'; +// @ts-ignore +import { PostDelinquencyBucketRequest } from '../models/postDelinquencyBucketRequest'; +// @ts-ignore +import { PostDelinquencyBucketResponse } from '../models/postDelinquencyBucketResponse'; +// @ts-ignore +import { PostDelinquencyRangeRequest } from '../models/postDelinquencyRangeRequest'; +// @ts-ignore +import { PostDelinquencyRangeResponse } from '../models/postDelinquencyRangeResponse'; +// @ts-ignore +import { PutDelinquencyBucketResponse } from '../models/putDelinquencyBucketResponse'; +// @ts-ignore +import { PutDelinquencyRangeResponse } from '../models/putDelinquencyRangeResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class DelinquencyRangeAndBucketsManagementService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create Delinquency Bucket + * @param postDelinquencyBucketRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createDelinquencyBucket(postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createDelinquencyBucket(postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDelinquencyBucket(postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDelinquencyBucket(postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postDelinquencyBucketRequest === null || postDelinquencyBucketRequest === undefined) { + throw new Error('Required parameter postDelinquencyBucketRequest was null or undefined when calling createDelinquencyBucket.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/delinquency/buckets`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postDelinquencyBucketRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create Delinquency Range + * @param postDelinquencyRangeRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createDelinquencyRange(postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createDelinquencyRange(postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDelinquencyRange(postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDelinquencyRange(postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postDelinquencyRangeRequest === null || postDelinquencyRangeRequest === undefined) { + throw new Error('Required parameter postDelinquencyRangeRequest was null or undefined when calling createDelinquencyRange.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/delinquency/ranges`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postDelinquencyRangeRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete Delinquency Bucket based on the Id + * @param delinquencyBucketId delinquencyBucketId + * @param postDelinquencyBucketRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteDelinquencyBucket(delinquencyBucketId: number, postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteDelinquencyBucket(delinquencyBucketId: number, postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDelinquencyBucket(delinquencyBucketId: number, postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDelinquencyBucket(delinquencyBucketId: number, postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (delinquencyBucketId === null || delinquencyBucketId === undefined) { + throw new Error('Required parameter delinquencyBucketId was null or undefined when calling deleteDelinquencyBucket.'); + } + if (postDelinquencyBucketRequest === null || postDelinquencyBucketRequest === undefined) { + throw new Error('Required parameter postDelinquencyBucketRequest was null or undefined when calling deleteDelinquencyBucket.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/delinquency/buckets/${this.configuration.encodeParam({name: "delinquencyBucketId", value: delinquencyBucketId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postDelinquencyBucketRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Delinquency Range based on the Id + * @param delinquencyRangeId delinquencyRangeId + * @param postDelinquencyRangeRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteDelinquencyRange(delinquencyRangeId: number, postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteDelinquencyRange(delinquencyRangeId: number, postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDelinquencyRange(delinquencyRangeId: number, postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDelinquencyRange(delinquencyRangeId: number, postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (delinquencyRangeId === null || delinquencyRangeId === undefined) { + throw new Error('Required parameter delinquencyRangeId was null or undefined when calling deleteDelinquencyRange.'); + } + if (postDelinquencyRangeRequest === null || postDelinquencyRangeRequest === undefined) { + throw new Error('Required parameter postDelinquencyRangeRequest was null or undefined when calling deleteDelinquencyRange.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/delinquency/ranges/${this.configuration.encodeParam({name: "delinquencyRangeId", value: delinquencyRangeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postDelinquencyRangeRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a specific Delinquency Bucket based on the Id + * @param delinquencyBucketId delinquencyBucketId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDelinquencyBucket(delinquencyBucketId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getDelinquencyBucket(delinquencyBucketId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDelinquencyBucket(delinquencyBucketId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDelinquencyBucket(delinquencyBucketId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (delinquencyBucketId === null || delinquencyBucketId === undefined) { + throw new Error('Required parameter delinquencyBucketId was null or undefined when calling getDelinquencyBucket.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/delinquency/buckets/${this.configuration.encodeParam({name: "delinquencyBucketId", value: delinquencyBucketId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List all Delinquency Buckets + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDelinquencyBuckets(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDelinquencyBuckets(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getDelinquencyBuckets(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getDelinquencyBuckets(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/delinquency/buckets`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a specific Delinquency Range based on the Id + * @param delinquencyRangeId delinquencyRangeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDelinquencyRange(delinquencyRangeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getDelinquencyRange(delinquencyRangeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDelinquencyRange(delinquencyRangeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDelinquencyRange(delinquencyRangeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (delinquencyRangeId === null || delinquencyRangeId === undefined) { + throw new Error('Required parameter delinquencyRangeId was null or undefined when calling getDelinquencyRange.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/delinquency/ranges/${this.configuration.encodeParam({name: "delinquencyRangeId", value: delinquencyRangeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List all Delinquency Ranges + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDelinquencyRanges(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDelinquencyRanges(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getDelinquencyRanges(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getDelinquencyRanges(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/delinquency/ranges`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Delinquency Bucket based on the Id + * @param delinquencyBucketId delinquencyBucketId + * @param postDelinquencyBucketRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateDelinquencyBucket(delinquencyBucketId: number, postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateDelinquencyBucket(delinquencyBucketId: number, postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDelinquencyBucket(delinquencyBucketId: number, postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDelinquencyBucket(delinquencyBucketId: number, postDelinquencyBucketRequest: PostDelinquencyBucketRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (delinquencyBucketId === null || delinquencyBucketId === undefined) { + throw new Error('Required parameter delinquencyBucketId was null or undefined when calling updateDelinquencyBucket.'); + } + if (postDelinquencyBucketRequest === null || postDelinquencyBucketRequest === undefined) { + throw new Error('Required parameter postDelinquencyBucketRequest was null or undefined when calling updateDelinquencyBucket.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/delinquency/buckets/${this.configuration.encodeParam({name: "delinquencyBucketId", value: delinquencyBucketId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postDelinquencyBucketRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Delinquency Range based on the Id + * @param delinquencyRangeId delinquencyRangeId + * @param postDelinquencyRangeRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateDelinquencyRange(delinquencyRangeId: number, postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateDelinquencyRange(delinquencyRangeId: number, postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDelinquencyRange(delinquencyRangeId: number, postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDelinquencyRange(delinquencyRangeId: number, postDelinquencyRangeRequest: PostDelinquencyRangeRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (delinquencyRangeId === null || delinquencyRangeId === undefined) { + throw new Error('Required parameter delinquencyRangeId was null or undefined when calling updateDelinquencyRange.'); + } + if (postDelinquencyRangeRequest === null || postDelinquencyRangeRequest === undefined) { + throw new Error('Required parameter postDelinquencyRangeRequest was null or undefined when calling updateDelinquencyRange.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/delinquency/ranges/${this.configuration.encodeParam({name: "delinquencyRangeId", value: delinquencyRangeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postDelinquencyRangeRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/depositAccountOnHoldFundTransactions.service.ts b/packages/fineract-client/src/services/depositAccountOnHoldFundTransactions.service.ts new file mode 100644 index 0000000000..33be132f4e --- /dev/null +++ b/packages/fineract-client/src/services/depositAccountOnHoldFundTransactions.service.ts @@ -0,0 +1,190 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class DepositAccountOnHoldFundTransactionsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param savingsId + * @param guarantorFundingId + * @param offset + * @param limit + * @param orderBy + * @param sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll28(savingsId: number, guarantorFundingId?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll28(savingsId: number, guarantorFundingId?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll28(savingsId: number, guarantorFundingId?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll28(savingsId: number, guarantorFundingId?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsId === null || savingsId === undefined) { + throw new Error('Required parameter savingsId was null or undefined when calling retrieveAll28.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (guarantorFundingId !== undefined && guarantorFundingId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + guarantorFundingId, 'guarantorFundingId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsId", value: savingsId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/onholdtransactions`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/deviceRegistration.service.ts b/packages/fineract-client/src/services/deviceRegistration.service.ts new file mode 100644 index 0000000000..705dd673f1 --- /dev/null +++ b/packages/fineract-client/src/services/deviceRegistration.service.ts @@ -0,0 +1,526 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class DeviceRegistrationService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param id + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete5(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete5(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete5(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete5(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling delete5.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/device/registration/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registerDevice(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public registerDevice(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public registerDevice(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public registerDevice(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/device/registration`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllDeviceRegistrations(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllDeviceRegistrations(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllDeviceRegistrations(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllDeviceRegistrations(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/device/registration`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param id + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveDeviceRegiistration(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveDeviceRegiistration(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveDeviceRegiistration(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveDeviceRegiistration(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling retrieveDeviceRegiistration.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/device/registration/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveDeviceRegistrationByClientId(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveDeviceRegistrationByClientId(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveDeviceRegistrationByClientId(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveDeviceRegistrationByClientId(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveDeviceRegistrationByClientId.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/device/registration/client/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param id + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateDeviceRegistration(id: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateDeviceRegistration(id: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDeviceRegistration(id: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDeviceRegistration(id: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling updateDeviceRegistration.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/device/registration/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/documents.service.ts b/packages/fineract-client/src/services/documents.service.ts new file mode 100644 index 0000000000..08a0746e28 --- /dev/null +++ b/packages/fineract-client/src/services/documents.service.ts @@ -0,0 +1,671 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteEntityTypeEntityIdDocumentsResponse } from '../models/deleteEntityTypeEntityIdDocumentsResponse'; +// @ts-ignore +import { GetEntityTypeEntityIdDocumentsResponse } from '../models/getEntityTypeEntityIdDocumentsResponse'; +// @ts-ignore +import { PostEntityTypeEntityIdDocumentsResponse } from '../models/postEntityTypeEntityIdDocumentsResponse'; +// @ts-ignore +import { PutEntityTypeEntityIdDocumentsResponse } from '../models/putEntityTypeEntityIdDocumentsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class DocumentsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Document + * Note: A document is created using a Multi-part form upload Body Parts name : Name or summary of the document description : Description of the document file : The file to be uploaded Mandatory Fields : file and description + * @param entityType entityType + * @param entityId entityId + * @param contentLength Content-Length + * @param dateFormat + * @param description + * @param locale + * @param name + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createDocument(entityType: string, entityId: number, contentLength?: number, dateFormat?: string, description?: string, locale?: string, name?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createDocument(entityType: string, entityId: number, contentLength?: number, dateFormat?: string, description?: string, locale?: string, name?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDocument(entityType: string, entityId: number, contentLength?: number, dateFormat?: string, description?: string, locale?: string, name?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDocument(entityType: string, entityId: number, contentLength?: number, dateFormat?: string, description?: string, locale?: string, name?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling createDocument.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling createDocument.'); + } + + let localVarHeaders = this.defaultHeaders; + if (contentLength !== undefined && contentLength !== null) { + localVarHeaders = localVarHeaders.set('Content-Length', String(contentLength)); + } + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (description !== undefined) { + localVarFormParams = localVarFormParams.append('description', description) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (name !== undefined) { + localVarFormParams = localVarFormParams.append('name', name) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/documents`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Remove a Document + * @param entityType entityType + * @param entityId entityId + * @param documentId documentId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteDocument(entityType: string, entityId: number, documentId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteDocument(entityType: string, entityId: number, documentId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDocument(entityType: string, entityId: number, documentId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDocument(entityType: string, entityId: number, documentId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling deleteDocument.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling deleteDocument.'); + } + if (documentId === null || documentId === undefined) { + throw new Error('Required parameter documentId was null or undefined when calling deleteDocument.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/documents/${this.configuration.encodeParam({name: "documentId", value: documentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Binary File associated with Document + * Request used to download the file associated with the document Example Requests: clients/1/documents/1/attachment loans/1/documents/1/attachment + * @param entityType entityType + * @param entityId entityId + * @param documentId documentId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public downloadFile(entityType: string, entityId: number, documentId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public downloadFile(entityType: string, entityId: number, documentId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public downloadFile(entityType: string, entityId: number, documentId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public downloadFile(entityType: string, entityId: number, documentId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling downloadFile.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling downloadFile.'); + } + if (documentId === null || documentId === undefined) { + throw new Error('Required parameter documentId was null or undefined when calling downloadFile.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/documents/${this.configuration.encodeParam({name: "documentId", value: documentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/attachment`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Document + * Example Requests: clients/1/documents/1 loans/1/documents/1 client_identifiers/1/documents/1?fields=name,description + * @param entityType entityType + * @param entityId entityId + * @param documentId documentId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDocument(entityType: string, entityId: number, documentId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getDocument(entityType: string, entityId: number, documentId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDocument(entityType: string, entityId: number, documentId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDocument(entityType: string, entityId: number, documentId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling getDocument.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling getDocument.'); + } + if (documentId === null || documentId === undefined) { + throw new Error('Required parameter documentId was null or undefined when calling getDocument.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/documents/${this.configuration.encodeParam({name: "documentId", value: documentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List documents + * Example Requests: clients/1/documents client_identifiers/1/documents loans/1/documents?fields=name,description + * @param entityType entityType + * @param entityId entityId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllDocuments(entityType: string, entityId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllDocuments(entityType: string, entityId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllDocuments(entityType: string, entityId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllDocuments(entityType: string, entityId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling retrieveAllDocuments.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling retrieveAllDocuments.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/documents`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Document + * Note: A document is updated using a Multi-part form upload Body Parts name Name or summary of the document description Description of the document file The file to be uploaded + * @param entityType entityType + * @param entityId entityId + * @param documentId documentId + * @param contentLength Content-Length + * @param dateFormat + * @param description + * @param locale + * @param name + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateDocument(entityType: string, entityId: number, documentId: number, contentLength?: number, dateFormat?: string, description?: string, locale?: string, name?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateDocument(entityType: string, entityId: number, documentId: number, contentLength?: number, dateFormat?: string, description?: string, locale?: string, name?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDocument(entityType: string, entityId: number, documentId: number, contentLength?: number, dateFormat?: string, description?: string, locale?: string, name?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDocument(entityType: string, entityId: number, documentId: number, contentLength?: number, dateFormat?: string, description?: string, locale?: string, name?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling updateDocument.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling updateDocument.'); + } + if (documentId === null || documentId === undefined) { + throw new Error('Required parameter documentId was null or undefined when calling updateDocument.'); + } + + let localVarHeaders = this.defaultHeaders; + if (contentLength !== undefined && contentLength !== null) { + localVarHeaders = localVarHeaders.set('Content-Length', String(contentLength)); + } + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (description !== undefined) { + localVarFormParams = localVarFormParams.append('description', description) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (name !== undefined) { + localVarFormParams = localVarFormParams.append('name', name) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/documents/${this.configuration.encodeParam({name: "documentId", value: documentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/entityDataTable.service.ts b/packages/fineract-client/src/services/entityDataTable.service.ts new file mode 100644 index 0000000000..24d3079e6b --- /dev/null +++ b/packages/fineract-client/src/services/entityDataTable.service.ts @@ -0,0 +1,431 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteEntityDatatableChecksTemplateResponse } from '../models/deleteEntityDatatableChecksTemplateResponse'; +// @ts-ignore +import { GetEntityDatatableChecksResponse } from '../models/getEntityDatatableChecksResponse'; +// @ts-ignore +import { GetEntityDatatableChecksTemplateResponse } from '../models/getEntityDatatableChecksTemplateResponse'; +// @ts-ignore +import { PostEntityDatatableChecksTemplateRequest } from '../models/postEntityDatatableChecksTemplateRequest'; +// @ts-ignore +import { PostEntityDatatableChecksTemplateResponse } from '../models/postEntityDatatableChecksTemplateResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class EntityDataTableService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create Entity-Datatable Checks + * Mandatory Fields : entity, status, datatableName Non-Mandatory Fields : productId + * @param postEntityDatatableChecksTemplateRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createEntityDatatableCheck(postEntityDatatableChecksTemplateRequest: PostEntityDatatableChecksTemplateRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createEntityDatatableCheck(postEntityDatatableChecksTemplateRequest: PostEntityDatatableChecksTemplateRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createEntityDatatableCheck(postEntityDatatableChecksTemplateRequest: PostEntityDatatableChecksTemplateRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createEntityDatatableCheck(postEntityDatatableChecksTemplateRequest: PostEntityDatatableChecksTemplateRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postEntityDatatableChecksTemplateRequest === null || postEntityDatatableChecksTemplateRequest === undefined) { + throw new Error('Required parameter postEntityDatatableChecksTemplateRequest was null or undefined when calling createEntityDatatableCheck.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/entityDatatableChecks`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postEntityDatatableChecksTemplateRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete Entity-Datatable Checks + * Deletes an existing Entity-Datatable Check + * @param entityDatatableCheckId entityDatatableCheckId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteDatatable1(entityDatatableCheckId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteDatatable1(entityDatatableCheckId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDatatable1(entityDatatableCheckId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDatatable1(entityDatatableCheckId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityDatatableCheckId === null || entityDatatableCheckId === undefined) { + throw new Error('Required parameter entityDatatableCheckId was null or undefined when calling deleteDatatable1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/entityDatatableChecks/${this.configuration.encodeParam({name: "entityDatatableCheckId", value: entityDatatableCheckId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Entity-Datatable Checks Template + * This is a convenience resource useful for building maintenance user interface screens for Entity-Datatable Checks applications. The template data returned consists of: Allowed description Lists Example Request: entityDatatableChecks/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/entityDatatableChecks/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Entity-Datatable Checks + * The list capability of Entity-Datatable Checks can support pagination. OPTIONAL ARGUMENTS offset Integer optional, defaults to 0 Indicates the result from which pagination startslimit Integer optional, defaults to 200 Restricts the size of results returned. To override the default and return all entries you must explicitly pass a non-positive integer value for limit e.g. limit=0, or limit=-1 Example Request: entityDatatableChecks?offset=0&limit=15 + * @param status status + * @param entity entity + * @param productId productId + * @param offset offset + * @param limit limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll6(status?: number, entity?: string, productId?: number, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll6(status?: number, entity?: string, productId?: number, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll6(status?: number, entity?: string, productId?: number, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll6(status?: number, entity?: string, productId?: number, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (status !== undefined && status !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + status, 'status'); + } + if (entity !== undefined && entity !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + entity, 'entity'); + } + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/entityDatatableChecks`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/entityFieldConfiguration.service.ts b/packages/fineract-client/src/services/entityFieldConfiguration.service.ts new file mode 100644 index 0000000000..932a5070bf --- /dev/null +++ b/packages/fineract-client/src/services/entityFieldConfiguration.service.ts @@ -0,0 +1,166 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetFieldConfigurationEntityResponse } from '../models/getFieldConfigurationEntityResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class EntityFieldConfigurationService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the Entity Field Configuration + * It retrieves all the Entity Field Configuration + * @param entity entity + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAddresses(entity: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAddresses(entity: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getAddresses(entity: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getAddresses(entity: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entity === null || entity === undefined) { + throw new Error('Required parameter entity was null or undefined when calling getAddresses.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fieldconfiguration/${this.configuration.encodeParam({name: "entity", value: entity, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/externalAssetOwners.service.ts b/packages/fineract-client/src/services/externalAssetOwners.service.ts new file mode 100644 index 0000000000..3afbc9fd15 --- /dev/null +++ b/packages/fineract-client/src/services/externalAssetOwners.service.ts @@ -0,0 +1,796 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ExternalOwnerJournalEntryData } from '../models/externalOwnerJournalEntryData'; +// @ts-ignore +import { ExternalOwnerTransferJournalEntryData } from '../models/externalOwnerTransferJournalEntryData'; +// @ts-ignore +import { ExternalTransferData } from '../models/externalTransferData'; +// @ts-ignore +import { PageExternalTransferData } from '../models/pageExternalTransferData'; +// @ts-ignore +import { PostInitiateTransferRequest } from '../models/postInitiateTransferRequest'; +// @ts-ignore +import { PostInitiateTransferResponse } from '../models/postInitiateTransferResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ExternalAssetOwnersService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieve Active Asset Owner Transfer + * Retrieve Active External Asset Owner Transfer by transferExternalId, loanId or loanExternalId + * @param transferExternalId transferExternalId + * @param loanId loanId + * @param loanExternalId loanExternalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getActiveTransfer(transferExternalId?: string, loanId?: number, loanExternalId?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getActiveTransfer(transferExternalId?: string, loanId?: number, loanExternalId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getActiveTransfer(transferExternalId?: string, loanId?: number, loanExternalId?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getActiveTransfer(transferExternalId?: string, loanId?: number, loanExternalId?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (transferExternalId !== undefined && transferExternalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + transferExternalId, 'transferExternalId'); + } + if (loanId !== undefined && loanId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + loanId, 'loanId'); + } + if (loanExternalId !== undefined && loanExternalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + loanExternalId, 'loanExternalId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/external-asset-owners/transfers/active-transfer`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Journal Entries of Owner + * Retrieve Journal entries of owner by owner externalId + * @param ownerExternalId ownerExternalId + * @param offset offset + * @param limit limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getJournalEntriesOfOwner(ownerExternalId: string, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getJournalEntriesOfOwner(ownerExternalId: string, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getJournalEntriesOfOwner(ownerExternalId: string, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getJournalEntriesOfOwner(ownerExternalId: string, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (ownerExternalId === null || ownerExternalId === undefined) { + throw new Error('Required parameter ownerExternalId was null or undefined when calling getJournalEntriesOfOwner.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/external-asset-owners/owners/external-id/${this.configuration.encodeParam({name: "ownerExternalId", value: ownerExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/journal-entries`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Journal Entries of Transfer + * Retrieve Journal entries of transfer by transferId + * @param transferId transferId + * @param offset offset + * @param limit limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getJournalEntriesOfTransfer(transferId: number, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getJournalEntriesOfTransfer(transferId: number, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getJournalEntriesOfTransfer(transferId: number, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getJournalEntriesOfTransfer(transferId: number, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (transferId === null || transferId === undefined) { + throw new Error('Required parameter transferId was null or undefined when calling getJournalEntriesOfTransfer.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/external-asset-owners/transfers/${this.configuration.encodeParam({name: "transferId", value: transferId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/journal-entries`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve External Asset Owner Transfers + * Retrieve External Asset Owner Transfer items by transferExternalId, loanId or loanExternalId + * @param transferExternalId transferExternalId + * @param loanId loanId + * @param loanExternalId loanExternalId + * @param offset offset + * @param limit limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTransfers(transferExternalId?: string, loanId?: number, loanExternalId?: string, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getTransfers(transferExternalId?: string, loanId?: number, loanExternalId?: string, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransfers(transferExternalId?: string, loanId?: number, loanExternalId?: string, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransfers(transferExternalId?: string, loanId?: number, loanExternalId?: string, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (transferExternalId !== undefined && transferExternalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + transferExternalId, 'transferExternalId'); + } + if (loanId !== undefined && loanId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + loanId, 'loanId'); + } + if (loanExternalId !== undefined && loanExternalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + loanExternalId, 'loanExternalId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/external-asset-owners/transfers`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param id + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public transferRequestWithId(id: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public transferRequestWithId(id: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transferRequestWithId(id: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transferRequestWithId(id: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling transferRequestWithId.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/external-asset-owners/transfers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param externalId + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public transferRequestWithId1(externalId: string, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public transferRequestWithId1(externalId: string, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transferRequestWithId1(externalId: string, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transferRequestWithId1(externalId: string, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (externalId === null || externalId === undefined) { + throw new Error('Required parameter externalId was null or undefined when calling transferRequestWithId1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/external-asset-owners/transfers/external-id/${this.configuration.encodeParam({name: "externalId", value: externalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanExternalId + * @param postInitiateTransferRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public transferRequestWithLoanExternalId(loanExternalId: string, postInitiateTransferRequest: PostInitiateTransferRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public transferRequestWithLoanExternalId(loanExternalId: string, postInitiateTransferRequest: PostInitiateTransferRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transferRequestWithLoanExternalId(loanExternalId: string, postInitiateTransferRequest: PostInitiateTransferRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transferRequestWithLoanExternalId(loanExternalId: string, postInitiateTransferRequest: PostInitiateTransferRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling transferRequestWithLoanExternalId.'); + } + if (postInitiateTransferRequest === null || postInitiateTransferRequest === undefined) { + throw new Error('Required parameter postInitiateTransferRequest was null or undefined when calling transferRequestWithLoanExternalId.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/external-asset-owners/transfers/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postInitiateTransferRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param postInitiateTransferRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public transferRequestWithLoanId(loanId: number, postInitiateTransferRequest: PostInitiateTransferRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public transferRequestWithLoanId(loanId: number, postInitiateTransferRequest: PostInitiateTransferRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transferRequestWithLoanId(loanId: number, postInitiateTransferRequest: PostInitiateTransferRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transferRequestWithLoanId(loanId: number, postInitiateTransferRequest: PostInitiateTransferRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling transferRequestWithLoanId.'); + } + if (postInitiateTransferRequest === null || postInitiateTransferRequest === undefined) { + throw new Error('Required parameter postInitiateTransferRequest was null or undefined when calling transferRequestWithLoanId.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/external-asset-owners/transfers/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postInitiateTransferRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/externalEventConfiguration.service.ts b/packages/fineract-client/src/services/externalEventConfiguration.service.ts new file mode 100644 index 0000000000..5feba54115 --- /dev/null +++ b/packages/fineract-client/src/services/externalEventConfiguration.service.ts @@ -0,0 +1,246 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { CommandProcessingResult } from '../models/commandProcessingResult'; +// @ts-ignore +import { GetExternalEventConfigurationsResponse } from '../models/getExternalEventConfigurationsResponse'; +// @ts-ignore +import { PutExternalEventConfigurationsRequest } from '../models/putExternalEventConfigurationsRequest'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ExternalEventConfigurationService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * List all external event configurations + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveExternalEventConfiguration(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveExternalEventConfiguration(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveExternalEventConfiguration(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveExternalEventConfiguration(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/externalevents/configuration`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Enable/Disable external events posting + * @param putExternalEventConfigurationsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateExternalEventConfigurationsDetails(putExternalEventConfigurationsRequest: PutExternalEventConfigurationsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateExternalEventConfigurationsDetails(putExternalEventConfigurationsRequest: PutExternalEventConfigurationsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateExternalEventConfigurationsDetails(putExternalEventConfigurationsRequest: PutExternalEventConfigurationsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateExternalEventConfigurationsDetails(putExternalEventConfigurationsRequest: PutExternalEventConfigurationsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (putExternalEventConfigurationsRequest === null || putExternalEventConfigurationsRequest === undefined) { + throw new Error('Required parameter putExternalEventConfigurationsRequest was null or undefined when calling updateExternalEventConfigurationsDetails.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/externalevents/configuration`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putExternalEventConfigurationsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/externalServices.service.ts b/packages/fineract-client/src/services/externalServices.service.ts new file mode 100644 index 0000000000..1afc363576 --- /dev/null +++ b/packages/fineract-client/src/services/externalServices.service.ts @@ -0,0 +1,253 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ExternalServicesPropertiesData } from '../models/externalServicesPropertiesData'; +// @ts-ignore +import { PutExternalServiceRequest } from '../models/putExternalServiceRequest'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ExternalServicesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieve External Services Configuration + * Returns a external Service configurations based on the Service Name. Service Names supported are S3 and SMTP. Example Requests: externalservice/SMTP + * @param servicename servicename + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne2(servicename: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne2(servicename: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne2(servicename: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne2(servicename: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (servicename === null || servicename === undefined) { + throw new Error('Required parameter servicename was null or undefined when calling retrieveOne2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/externalservice/${this.configuration.encodeParam({name: "servicename", value: servicename, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update External Service + * Updates the external Service Configuration for a Service Name. Example: externalservice/S3 + * @param servicename servicename + * @param putExternalServiceRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateExternalServiceProperties(servicename: string, putExternalServiceRequest: PutExternalServiceRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public updateExternalServiceProperties(servicename: string, putExternalServiceRequest: PutExternalServiceRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public updateExternalServiceProperties(servicename: string, putExternalServiceRequest: PutExternalServiceRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public updateExternalServiceProperties(servicename: string, putExternalServiceRequest: PutExternalServiceRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (servicename === null || servicename === undefined) { + throw new Error('Required parameter servicename was null or undefined when calling updateExternalServiceProperties.'); + } + if (putExternalServiceRequest === null || putExternalServiceRequest === undefined) { + throw new Error('Required parameter putExternalServiceRequest was null or undefined when calling updateExternalServiceProperties.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/externalservice/${this.configuration.encodeParam({name: "servicename", value: servicename, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putExternalServiceRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/fetchAuthenticatedUserDetails.service.ts b/packages/fineract-client/src/services/fetchAuthenticatedUserDetails.service.ts new file mode 100644 index 0000000000..f408e3a0ea --- /dev/null +++ b/packages/fineract-client/src/services/fetchAuthenticatedUserDetails.service.ts @@ -0,0 +1,162 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetUserDetailsResponse } from '../models/getUserDetailsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class FetchAuthenticatedUserDetailsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Fetch authenticated user details + * checks the Authentication and returns the set roles and permissions allowed. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public fetchAuthenticatedUserData(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public fetchAuthenticatedUserData(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchAuthenticatedUserData(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchAuthenticatedUserData(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/userdetails`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/fineractEntity.service.ts b/packages/fineract-client/src/services/fineractEntity.service.ts new file mode 100644 index 0000000000..feb789d0ff --- /dev/null +++ b/packages/fineract-client/src/services/fineractEntity.service.ts @@ -0,0 +1,538 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class FineractEntityService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param relId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createMap(relId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createMap(relId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createMap(relId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createMap(relId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (relId === null || relId === undefined) { + throw new Error('Required parameter relId was null or undefined when calling createMap.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/entitytoentitymapping/${this.configuration.encodeParam({name: "relId", value: relId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param mapId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete4(mapId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete4(mapId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete4(mapId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete4(mapId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (mapId === null || mapId === undefined) { + throw new Error('Required parameter mapId was null or undefined when calling delete4.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/entitytoentitymapping/${this.configuration.encodeParam({name: "mapId", value: mapId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param mapId + * @param fromId + * @param toId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getEntityToEntityMappings(mapId: number, fromId: number, toId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getEntityToEntityMappings(mapId: number, fromId: number, toId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getEntityToEntityMappings(mapId: number, fromId: number, toId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getEntityToEntityMappings(mapId: number, fromId: number, toId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (mapId === null || mapId === undefined) { + throw new Error('Required parameter mapId was null or undefined when calling getEntityToEntityMappings.'); + } + if (fromId === null || fromId === undefined) { + throw new Error('Required parameter fromId was null or undefined when calling getEntityToEntityMappings.'); + } + if (toId === null || toId === undefined) { + throw new Error('Required parameter toId was null or undefined when calling getEntityToEntityMappings.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/entitytoentitymapping/${this.configuration.encodeParam({name: "mapId", value: mapId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/${this.configuration.encodeParam({name: "fromId", value: fromId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/${this.configuration.encodeParam({name: "toId", value: toId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll7(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll7(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll7(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll7(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/entitytoentitymapping`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param mapId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne4(mapId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne4(mapId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne4(mapId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne4(mapId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (mapId === null || mapId === undefined) { + throw new Error('Required parameter mapId was null or undefined when calling retrieveOne4.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/entitytoentitymapping/${this.configuration.encodeParam({name: "mapId", value: mapId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param mapId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateMap(mapId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateMap(mapId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateMap(mapId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateMap(mapId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (mapId === null || mapId === undefined) { + throw new Error('Required parameter mapId was null or undefined when calling updateMap.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/entitytoentitymapping/${this.configuration.encodeParam({name: "mapId", value: mapId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/fixedDepositAccount.service.ts b/packages/fineract-client/src/services/fixedDepositAccount.service.ts new file mode 100644 index 0000000000..92caa8c323 --- /dev/null +++ b/packages/fineract-client/src/services/fixedDepositAccount.service.ts @@ -0,0 +1,1166 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteFixedDepositAccountsAccountIdResponse } from '../models/deleteFixedDepositAccountsAccountIdResponse'; +// @ts-ignore +import { GetFixedDepositAccountsAccountIdResponse } from '../models/getFixedDepositAccountsAccountIdResponse'; +// @ts-ignore +import { GetFixedDepositAccountsResponse } from '../models/getFixedDepositAccountsResponse'; +// @ts-ignore +import { GetFixedDepositAccountsTemplateResponse } from '../models/getFixedDepositAccountsTemplateResponse'; +// @ts-ignore +import { PostFixedDepositAccountsAccountIdResponse } from '../models/postFixedDepositAccountsAccountIdResponse'; +// @ts-ignore +import { PostFixedDepositAccountsRequest } from '../models/postFixedDepositAccountsRequest'; +// @ts-ignore +import { PostFixedDepositAccountsResponse } from '../models/postFixedDepositAccountsResponse'; +// @ts-ignore +import { PutFixedDepositAccountsAccountIdRequest } from '../models/putFixedDepositAccountsAccountIdRequest'; +// @ts-ignore +import { PutFixedDepositAccountsAccountIdResponse } from '../models/putFixedDepositAccountsAccountIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class FixedDepositAccountService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param accountId accountId + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public accountClosureTemplate(accountId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public accountClosureTemplate(accountId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public accountClosureTemplate(accountId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public accountClosureTemplate(accountId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling accountClosureTemplate.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a fixed deposit application + * At present we support hard delete of fixed deposit application so long as its in \'Submitted and pending approval\' state. One the application is moves past this state, it is not possible to do a \'hard\' delete of the application or the account. An API endpoint will be added to close/de-activate the fixed deposit account. + * @param accountId accountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete15(accountId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete15(accountId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete15(accountId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete15(accountId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling delete15.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param staffId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getFixedDepositTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getFixedDepositTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getFixedDepositTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getFixedDepositTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getFixedDepositTransactionTemplate(officeId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getFixedDepositTransactionTemplate(officeId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getFixedDepositTransactionTemplate(officeId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getFixedDepositTransactionTemplate(officeId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/transaction/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Approve fixed deposit application | Undo approval fixed deposit application | Reject fixed deposit application | Withdraw fixed deposit application | Activate a fixed deposit account | Close a fixed deposit account | Premature Close a fixed deposit account | Calculate Premature amount on Fixed deposit account | Calculate Interest on Fixed Deposit Account | Post Interest on Fixed Deposit Account + * Approve fixed deposit application: Approves fixed deposit application so long as its in \'Submitted and pending approval\' state. Undo approval fixed deposit application: Will move \'approved\' fixed deposit application back to \'Submitted and pending approval\' state. Reject fixed deposit application: Rejects fixed deposit application so long as its in \'Submitted and pending approval\' state. Withdraw fixed deposit application: Used when an applicant withdraws from the fixed deposit application. It must be in \'Submitted and pending approval\' state. Close a fixed deposit account: Results in a Matured fixed deposit account being converted into a \'closed\' fixed deposit account. Premature Close a fixed deposit account: Results in an Active fixed deposit account being converted into a \'Premature Closed\' fixed deposit account with options to withdraw prematured amount. (premature amount is calculated using interest rate chart applicable along with penal interest if any.) Calculate Premature amount on Fixed deposit account: Calculate premature amount on fixed deposit account till premature close date. Premature amount is calculated based on interest chart and penal interest applicable. Calculate Interest on Fixed Deposit Account: Calculates interest earned on a fixed deposit account based on todays date. It does not attempt to post or credit the interest on the account. That is responsibility of the Post Interest API that will likely be called by overnight process. Post Interest on Fixed Deposit Account: Calculates and Posts interest earned on a fixed deposit account based on today\'s date and whether an interest posting or crediting event is due. Showing request/response for Calculate Interest on Fixed Deposit Account + * @param accountId accountId + * @param body + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleCommands4(accountId: number, body: object, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public handleCommands4(accountId: number, body: object, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands4(accountId: number, body: object, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands4(accountId: number, body: object, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling handleCommands4.'); + } + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling handleCommands4.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postFixedDepositTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postFixedDepositTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postFixedDepositTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postFixedDepositTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postFixedDepositTransactionTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postFixedDepositTransactionTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postFixedDepositTransactionTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postFixedDepositTransactionTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/transaction/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Fixed deposit applications/accounts + * Lists Fixed Deposit Accounts Example Requests: fixeddepositaccounts fixeddepositaccounts?fields=name + * @param paged paged + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll29(paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll29(paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll29(paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll29(paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (paged !== undefined && paged !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + paged, 'paged'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a fixed deposit application/account + * Retrieves a fixed deposit application/account Example Requests : fixeddepositaccounts/1 fixeddepositaccounts/1?associations=all + * @param accountId accountId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param chargeStatus chargeStatus + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne19(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne19(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne19(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne19(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling retrieveOne19.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + if (chargeStatus !== undefined && chargeStatus !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + chargeStatus, 'chargeStatus'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Submit new fixed deposit application + * Submits a new fixed deposit applicationMandatory Fields: clientId or groupId, productId, submittedOnDate, depositAmount, depositPeriod, depositPeriodFrequencyId Optional Fields: accountNo, externalId, fieldOfficerId,linkAccountId(if provided initial deposit amount will be collected from this account),transferInterestToSavings(By enabling this flag all interest postings will be transferred to linked saving account ) + * @param postFixedDepositAccountsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public submitApplication(postFixedDepositAccountsRequest: PostFixedDepositAccountsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public submitApplication(postFixedDepositAccountsRequest: PostFixedDepositAccountsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public submitApplication(postFixedDepositAccountsRequest: PostFixedDepositAccountsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public submitApplication(postFixedDepositAccountsRequest: PostFixedDepositAccountsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postFixedDepositAccountsRequest === null || postFixedDepositAccountsRequest === undefined) { + throw new Error('Required parameter postFixedDepositAccountsRequest was null or undefined when calling submitApplication.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postFixedDepositAccountsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Fixed Deposit Account Template + * This is a convenience resource. It can be useful when building maintenance user interface screens for fixed deposit applications. The template data returned consists of any or all of: Field Defaults Allowed Value ListsExample Requests: fixeddepositaccounts/template?clientId=1 + * @param clientId clientId + * @param groupId groupId + * @param productId productId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template12(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template12(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template12(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template12(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (groupId !== undefined && groupId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + groupId, 'groupId'); + } + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Modify a fixed deposit application + * Fixed deposit 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. Specific api endpoints will be created to allow change of interest detail such as rate, compounding period, posting period etc + * @param accountId accountId + * @param putFixedDepositAccountsAccountIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update16(accountId: number, putFixedDepositAccountsAccountIdRequest: PutFixedDepositAccountsAccountIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update16(accountId: number, putFixedDepositAccountsAccountIdRequest: PutFixedDepositAccountsAccountIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update16(accountId: number, putFixedDepositAccountsAccountIdRequest: PutFixedDepositAccountsAccountIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update16(accountId: number, putFixedDepositAccountsAccountIdRequest: PutFixedDepositAccountsAccountIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling update16.'); + } + if (putFixedDepositAccountsAccountIdRequest === null || putFixedDepositAccountsAccountIdRequest === undefined) { + throw new Error('Required parameter putFixedDepositAccountsAccountIdRequest was null or undefined when calling update16.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putFixedDepositAccountsAccountIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/fixedDepositAccountTransactions.service.ts b/packages/fineract-client/src/services/fixedDepositAccountTransactions.service.ts new file mode 100644 index 0000000000..fbd205496e --- /dev/null +++ b/packages/fineract-client/src/services/fixedDepositAccountTransactions.service.ts @@ -0,0 +1,418 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class FixedDepositAccountTransactionsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param fixedDepositAccountId + * @param transactionId + * @param command + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adjustTransaction(fixedDepositAccountId: number, transactionId: number, command?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public adjustTransaction(fixedDepositAccountId: number, transactionId: number, command?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustTransaction(fixedDepositAccountId: number, transactionId: number, command?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustTransaction(fixedDepositAccountId: number, transactionId: number, command?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (fixedDepositAccountId === null || fixedDepositAccountId === undefined) { + throw new Error('Required parameter fixedDepositAccountId was null or undefined when calling adjustTransaction.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling adjustTransaction.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/${this.configuration.encodeParam({name: "fixedDepositAccountId", value: fixedDepositAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param fixedDepositAccountId + * @param transactionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne18(fixedDepositAccountId: number, transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne18(fixedDepositAccountId: number, transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne18(fixedDepositAccountId: number, transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne18(fixedDepositAccountId: number, transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (fixedDepositAccountId === null || fixedDepositAccountId === undefined) { + throw new Error('Required parameter fixedDepositAccountId was null or undefined when calling retrieveOne18.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling retrieveOne18.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/${this.configuration.encodeParam({name: "fixedDepositAccountId", value: fixedDepositAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param fixedDepositAccountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate14(fixedDepositAccountId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate14(fixedDepositAccountId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate14(fixedDepositAccountId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate14(fixedDepositAccountId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (fixedDepositAccountId === null || fixedDepositAccountId === undefined) { + throw new Error('Required parameter fixedDepositAccountId was null or undefined when calling retrieveTemplate14.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/${this.configuration.encodeParam({name: "fixedDepositAccountId", value: fixedDepositAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param fixedDepositAccountId + * @param command + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public transaction(fixedDepositAccountId: number, command?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public transaction(fixedDepositAccountId: number, command?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transaction(fixedDepositAccountId: number, command?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transaction(fixedDepositAccountId: number, command?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (fixedDepositAccountId === null || fixedDepositAccountId === undefined) { + throw new Error('Required parameter fixedDepositAccountId was null or undefined when calling transaction.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositaccounts/${this.configuration.encodeParam({name: "fixedDepositAccountId", value: fixedDepositAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/fixedDepositProduct.service.ts b/packages/fineract-client/src/services/fixedDepositProduct.service.ts new file mode 100644 index 0000000000..8b1413ad53 --- /dev/null +++ b/packages/fineract-client/src/services/fixedDepositProduct.service.ts @@ -0,0 +1,552 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteFixedDepositProductsProductIdResponse } from '../models/deleteFixedDepositProductsProductIdResponse'; +// @ts-ignore +import { GetFixedDepositProductsProductIdResponse } from '../models/getFixedDepositProductsProductIdResponse'; +// @ts-ignore +import { GetFixedDepositProductsResponse } from '../models/getFixedDepositProductsResponse'; +// @ts-ignore +import { PostFixedDepositProductsRequest } from '../models/postFixedDepositProductsRequest'; +// @ts-ignore +import { PostFixedDepositProductsResponse } from '../models/postFixedDepositProductsResponse'; +// @ts-ignore +import { PutFixedDepositProductsProductIdRequest } from '../models/putFixedDepositProductsProductIdRequest'; +// @ts-ignore +import { PutFixedDepositProductsProductIdResponse } from '../models/putFixedDepositProductsProductIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class FixedDepositProductService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Fixed Deposit Product + * Creates a Fixed Deposit Product Mandatory Fields: name, shortName, description, currencyCode, digitsAfterDecimal,inMultiplesOf, interestCompoundingPeriodType, interestCalculationType, interestCalculationDaysInYearType, minDepositTerm, minDepositTermTypeId, accountingRule Optional Fields: lockinPeriodFrequency, lockinPeriodFrequencyType, maxDepositTerm, maxDepositTermTypeId, inMultiplesOfDepositTerm, inMultiplesOfDepositTermTypeId, preClosurePenalApplicable, preClosurePenalInterest, preClosurePenalInterestOnTypeId, feeToIncomeAccountMappings, penaltyToIncomeAccountMappings, charges, charts, , withHoldTax, taxGroupId Mandatory Fields for Cash based accounting (accountingRule = 2): savingsReferenceAccountId, savingsControlAccountId, interestOnSavingsAccountId, incomeFromFeeAccountId, transfersInSuspenseAccountId, incomeFromPenaltyAccountId + * @param postFixedDepositProductsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create11(postFixedDepositProductsRequest: PostFixedDepositProductsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create11(postFixedDepositProductsRequest: PostFixedDepositProductsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create11(postFixedDepositProductsRequest: PostFixedDepositProductsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create11(postFixedDepositProductsRequest: PostFixedDepositProductsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postFixedDepositProductsRequest === null || postFixedDepositProductsRequest === undefined) { + throw new Error('Required parameter postFixedDepositProductsRequest was null or undefined when calling create11.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositproducts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postFixedDepositProductsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Fixed Deposit Product + * Deletes a Fixed Deposit Product + * @param productId productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete16(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete16(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete16(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete16(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling delete16.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Fixed Deposit Products + * Lists Fixed Deposit Products Example Requests: fixeddepositproducts fixeddepositproducts?fields=name + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll30(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll30(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll30(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll30(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositproducts`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Fixed Deposit Product + * Retrieves a Fixed Deposit Product Example Requests: fixeddepositproducts/1 fixeddepositproducts/1?template=true fixeddepositproducts/1?fields=name,description + * @param productId productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne20(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne20(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne20(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne20(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveOne20.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate15(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate15(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate15(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate15(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositproducts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Fixed Deposit Product + * Updates a Fixed Deposit Product + * @param productId productId + * @param putFixedDepositProductsProductIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update17(productId: number, putFixedDepositProductsProductIdRequest: PutFixedDepositProductsProductIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update17(productId: number, putFixedDepositProductsProductIdRequest: PutFixedDepositProductsProductIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update17(productId: number, putFixedDepositProductsProductIdRequest: PutFixedDepositProductsProductIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update17(productId: number, putFixedDepositProductsProductIdRequest: PutFixedDepositProductsProductIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling update17.'); + } + if (putFixedDepositProductsProductIdRequest === null || putFixedDepositProductsProductIdRequest === undefined) { + throw new Error('Required parameter putFixedDepositProductsProductIdRequest was null or undefined when calling update17.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/fixeddepositproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putFixedDepositProductsProductIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/floatingRates.service.ts b/packages/fineract-client/src/services/floatingRates.service.ts new file mode 100644 index 0000000000..2210fbc10e --- /dev/null +++ b/packages/fineract-client/src/services/floatingRates.service.ts @@ -0,0 +1,412 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetFloatingRatesFloatingRateIdResponse } from '../models/getFloatingRatesFloatingRateIdResponse'; +// @ts-ignore +import { GetFloatingRatesResponse } from '../models/getFloatingRatesResponse'; +// @ts-ignore +import { PostFloatingRatesRequest } from '../models/postFloatingRatesRequest'; +// @ts-ignore +import { PostFloatingRatesResponse } from '../models/postFloatingRatesResponse'; +// @ts-ignore +import { PutFloatingRatesFloatingRateIdRequest } from '../models/putFloatingRatesFloatingRateIdRequest'; +// @ts-ignore +import { PutFloatingRatesFloatingRateIdResponse } from '../models/putFloatingRatesFloatingRateIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class FloatingRatesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a new Floating Rate + * Creates a new Floating Rate Mandatory Fields: name Optional Fields: isBaseLendingRate, isActive, ratePeriods + * @param postFloatingRatesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createFloatingRate(postFloatingRatesRequest: PostFloatingRatesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createFloatingRate(postFloatingRatesRequest: PostFloatingRatesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createFloatingRate(postFloatingRatesRequest: PostFloatingRatesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createFloatingRate(postFloatingRatesRequest: PostFloatingRatesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postFloatingRatesRequest === null || postFloatingRatesRequest === undefined) { + throw new Error('Required parameter postFloatingRatesRequest was null or undefined when calling createFloatingRate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/floatingrates`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postFloatingRatesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Floating Rates + * Lists Floating Rates + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll22(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll22(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll22(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll22(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/floatingrates`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Floating Rate + * Retrieves Floating Rate + * @param floatingRateId floatingRateId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne13(floatingRateId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne13(floatingRateId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne13(floatingRateId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne13(floatingRateId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (floatingRateId === null || floatingRateId === undefined) { + throw new Error('Required parameter floatingRateId was null or undefined when calling retrieveOne13.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/floatingrates/${this.configuration.encodeParam({name: "floatingRateId", value: floatingRateId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Floating Rate + * Updates new Floating Rate. Rate Periods in the past cannot be modified. All the future rateperiods would be replaced with the new ratePeriods data sent. + * @param floatingRateId floatingRateId + * @param putFloatingRatesFloatingRateIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateFloatingRate(floatingRateId: number, putFloatingRatesFloatingRateIdRequest: PutFloatingRatesFloatingRateIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateFloatingRate(floatingRateId: number, putFloatingRatesFloatingRateIdRequest: PutFloatingRatesFloatingRateIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateFloatingRate(floatingRateId: number, putFloatingRatesFloatingRateIdRequest: PutFloatingRatesFloatingRateIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateFloatingRate(floatingRateId: number, putFloatingRatesFloatingRateIdRequest: PutFloatingRatesFloatingRateIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (floatingRateId === null || floatingRateId === undefined) { + throw new Error('Required parameter floatingRateId was null or undefined when calling updateFloatingRate.'); + } + if (putFloatingRatesFloatingRateIdRequest === null || putFloatingRatesFloatingRateIdRequest === undefined) { + throw new Error('Required parameter putFloatingRatesFloatingRateIdRequest was null or undefined when calling updateFloatingRate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/floatingrates/${this.configuration.encodeParam({name: "floatingRateId", value: floatingRateId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putFloatingRatesFloatingRateIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/funds.service.ts b/packages/fineract-client/src/services/funds.service.ts new file mode 100644 index 0000000000..e3703c0cf9 --- /dev/null +++ b/packages/fineract-client/src/services/funds.service.ts @@ -0,0 +1,410 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetFundsResponse } from '../models/getFundsResponse'; +// @ts-ignore +import { PostFundsRequest } from '../models/postFundsRequest'; +// @ts-ignore +import { PostFundsResponse } from '../models/postFundsResponse'; +// @ts-ignore +import { PutFundsFundIdRequest } from '../models/putFundsFundIdRequest'; +// @ts-ignore +import { PutFundsFundIdResponse } from '../models/putFundsFundIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class FundsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Fund + * Creates a Fund + * @param postFundsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createFund(postFundsRequest: PostFundsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createFund(postFundsRequest: PostFundsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createFund(postFundsRequest: PostFundsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createFund(postFundsRequest: PostFundsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postFundsRequest === null || postFundsRequest === undefined) { + throw new Error('Required parameter postFundsRequest was null or undefined when calling createFund.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/funds`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postFundsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Fund + * Returns the details of a Fund. Example Requests: funds/1 + * @param fundId fundId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveFund(fundId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveFund(fundId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveFund(fundId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveFund(fundId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (fundId === null || fundId === undefined) { + throw new Error('Required parameter fundId was null or undefined when calling retrieveFund.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/funds/${this.configuration.encodeParam({name: "fundId", value: fundId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Funds + * Returns the list of funds. Example Requests: funds + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveFunds(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveFunds(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveFunds(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveFunds(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/funds`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Fund + * Updates the details of a fund. + * @param fundId fundId + * @param putFundsFundIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateFund(fundId: number, putFundsFundIdRequest: PutFundsFundIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateFund(fundId: number, putFundsFundIdRequest: PutFundsFundIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateFund(fundId: number, putFundsFundIdRequest: PutFundsFundIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateFund(fundId: number, putFundsFundIdRequest: PutFundsFundIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (fundId === null || fundId === undefined) { + throw new Error('Required parameter fundId was null or undefined when calling updateFund.'); + } + if (putFundsFundIdRequest === null || putFundsFundIdRequest === undefined) { + throw new Error('Required parameter putFundsFundIdRequest was null or undefined when calling updateFund.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/funds/${this.configuration.encodeParam({name: "fundId", value: fundId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putFundsFundIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/generalLedgerAccount.service.ts b/packages/fineract-client/src/services/generalLedgerAccount.service.ts new file mode 100644 index 0000000000..982d68e532 --- /dev/null +++ b/packages/fineract-client/src/services/generalLedgerAccount.service.ts @@ -0,0 +1,782 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteGLAccountsRequest } from '../models/deleteGLAccountsRequest'; +// @ts-ignore +import { GetGLAccountsResponse } from '../models/getGLAccountsResponse'; +// @ts-ignore +import { GetGLAccountsTemplateResponse } from '../models/getGLAccountsTemplateResponse'; +// @ts-ignore +import { PostGLAccountsRequest } from '../models/postGLAccountsRequest'; +// @ts-ignore +import { PostGLAccountsResponse } from '../models/postGLAccountsResponse'; +// @ts-ignore +import { PutGLAccountsRequest } from '../models/putGLAccountsRequest'; +// @ts-ignore +import { PutGLAccountsResponse } from '../models/putGLAccountsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class GeneralLedgerAccountService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a General Ledger Account + * Note: You may optionally create Hierarchical Chart of Accounts by using the \"parentId\" property of an Account Mandatory Fields: name, glCode, type, usage and manualEntriesAllowed + * @param postGLAccountsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createGLAccount1(postGLAccountsRequest?: PostGLAccountsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createGLAccount1(postGLAccountsRequest?: PostGLAccountsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createGLAccount1(postGLAccountsRequest?: PostGLAccountsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createGLAccount1(postGLAccountsRequest?: PostGLAccountsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glaccounts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postGLAccountsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a GL Account + * Deletes a GL Account + * @param glAccountId glAccountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteGLAccount1(glAccountId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteGLAccount1(glAccountId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteGLAccount1(glAccountId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteGLAccount1(glAccountId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (glAccountId === null || glAccountId === undefined) { + throw new Error('Required parameter glAccountId was null or undefined when calling deleteGLAccount1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glaccounts/${this.configuration.encodeParam({name: "glAccountId", value: glAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getGlAccountsTemplate(dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getGlAccountsTemplate(dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getGlAccountsTemplate(dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getGlAccountsTemplate(dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glaccounts/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postGlAccountsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postGlAccountsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postGlAccountsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postGlAccountsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glaccounts/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a General Ledger Account + * Example Requests: glaccounts/1 glaccounts/1?template=true glaccounts/1?fields=name,glCode glaccounts/1?fetchRunningBalance=true + * @param glAccountId glAccountId + * @param fetchRunningBalance fetchRunningBalance + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retreiveAccount(glAccountId: number, fetchRunningBalance?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retreiveAccount(glAccountId: number, fetchRunningBalance?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retreiveAccount(glAccountId: number, fetchRunningBalance?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retreiveAccount(glAccountId: number, fetchRunningBalance?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (glAccountId === null || glAccountId === undefined) { + throw new Error('Required parameter glAccountId was null or undefined when calling retreiveAccount.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (fetchRunningBalance !== undefined && fetchRunningBalance !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fetchRunningBalance, 'fetchRunningBalance'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glaccounts/${this.configuration.encodeParam({name: "glAccountId", value: glAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List General Ledger Accounts + * ARGUMENTS type Integer optional manualEntriesAllowed boolean optional usage Integer optional disabled boolean optional parentId Long optional tagId Long optional Example Requests: glaccounts glaccounts?type=1&manualEntriesAllowed=true&usage=1&disabled=false glaccounts?fetchRunningBalance=true + * @param type type + * @param searchParam searchParam + * @param usage usage + * @param manualEntriesAllowed manualEntriesAllowed + * @param disabled disabled + * @param fetchRunningBalance fetchRunningBalance + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllAccounts(type?: number, searchParam?: string, usage?: number, manualEntriesAllowed?: boolean, disabled?: boolean, fetchRunningBalance?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllAccounts(type?: number, searchParam?: string, usage?: number, manualEntriesAllowed?: boolean, disabled?: boolean, fetchRunningBalance?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllAccounts(type?: number, searchParam?: string, usage?: number, manualEntriesAllowed?: boolean, disabled?: boolean, fetchRunningBalance?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllAccounts(type?: number, searchParam?: string, usage?: number, manualEntriesAllowed?: boolean, disabled?: boolean, fetchRunningBalance?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (type !== undefined && type !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + type, 'type'); + } + if (searchParam !== undefined && searchParam !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + searchParam, 'searchParam'); + } + if (usage !== undefined && usage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + usage, 'usage'); + } + if (manualEntriesAllowed !== undefined && manualEntriesAllowed !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + manualEntriesAllowed, 'manualEntriesAllowed'); + } + if (disabled !== undefined && disabled !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + disabled, 'disabled'); + } + if (fetchRunningBalance !== undefined && fetchRunningBalance !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fetchRunningBalance, 'fetchRunningBalance'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glaccounts`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve GL Accounts Template + * 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: glaccounts/template glaccounts/template?type=1 type is optional and integer value from 1 to 5. 1.Assets 2.Liabilities 3.Equity 4.Income 5.Expenses + * @param type type + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveNewAccountDetails(type?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveNewAccountDetails(type?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveNewAccountDetails(type?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveNewAccountDetails(type?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (type !== undefined && type !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + type, 'type'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glaccounts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a GL Account + * Updates a GL Account + * @param glAccountId glAccountId + * @param putGLAccountsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateGLAccount1(glAccountId: number, putGLAccountsRequest?: PutGLAccountsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateGLAccount1(glAccountId: number, putGLAccountsRequest?: PutGLAccountsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateGLAccount1(glAccountId: number, putGLAccountsRequest?: PutGLAccountsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateGLAccount1(glAccountId: number, putGLAccountsRequest?: PutGLAccountsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (glAccountId === null || glAccountId === undefined) { + throw new Error('Required parameter glAccountId was null or undefined when calling updateGLAccount1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/glaccounts/${this.configuration.encodeParam({name: "glAccountId", value: glAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putGLAccountsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/globalConfiguration.service.ts b/packages/fineract-client/src/services/globalConfiguration.service.ts new file mode 100644 index 0000000000..367324b1eb --- /dev/null +++ b/packages/fineract-client/src/services/globalConfiguration.service.ts @@ -0,0 +1,406 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetGlobalConfigurationsResponse } from '../models/getGlobalConfigurationsResponse'; +// @ts-ignore +import { GlobalConfigurationPropertyData } from '../models/globalConfigurationPropertyData'; +// @ts-ignore +import { PutGlobalConfigurationsRequest } from '../models/putGlobalConfigurationsRequest'; +// @ts-ignore +import { PutGlobalConfigurationsResponse } from '../models/putGlobalConfigurationsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class GlobalConfigurationService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieve Global Configuration | Retrieve Global Configuration for surveys + * Returns the list global enable/disable configurations. Example Requests: configurations Returns the list global enable/disable survey configurations. Example Requests: configurations/survey + * @param survey survey + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveConfiguration(survey?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveConfiguration(survey?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveConfiguration(survey?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveConfiguration(survey?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (survey !== undefined && survey !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + survey, 'survey'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/configurations`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Global Configuration + * Returns a global enable/disable configurations. Example Requests: configurations/1 + * @param configId configId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne3(configId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne3(configId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne3(configId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne3(configId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (configId === null || configId === undefined) { + throw new Error('Required parameter configId was null or undefined when calling retrieveOne3.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/configurations/${this.configuration.encodeParam({name: "configId", value: configId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Global Configuration + * Returns a global enable/disable configuration. Example Requests: configurations/name/Enable-Address + * @param name name + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOneByName(name: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOneByName(name: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOneByName(name: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOneByName(name: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling retrieveOneByName.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/configurations/name/${this.configuration.encodeParam({name: "name", value: name, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Global Configuration + * Updates an enable/disable global configuration item. + * @param configId configId + * @param putGlobalConfigurationsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateConfiguration1(configId: number, putGlobalConfigurationsRequest: PutGlobalConfigurationsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateConfiguration1(configId: number, putGlobalConfigurationsRequest: PutGlobalConfigurationsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateConfiguration1(configId: number, putGlobalConfigurationsRequest: PutGlobalConfigurationsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateConfiguration1(configId: number, putGlobalConfigurationsRequest: PutGlobalConfigurationsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (configId === null || configId === undefined) { + throw new Error('Required parameter configId was null or undefined when calling updateConfiguration1.'); + } + if (putGlobalConfigurationsRequest === null || putGlobalConfigurationsRequest === undefined) { + throw new Error('Required parameter putGlobalConfigurationsRequest was null or undefined when calling updateConfiguration1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/configurations/${this.configuration.encodeParam({name: "configId", value: configId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putGlobalConfigurationsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/groups.service.ts b/packages/fineract-client/src/services/groups.service.ts new file mode 100644 index 0000000000..e699a0a31d --- /dev/null +++ b/packages/fineract-client/src/services/groups.service.ts @@ -0,0 +1,1278 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteGroupsGroupIdResponse } from '../models/deleteGroupsGroupIdResponse'; +// @ts-ignore +import { GetGroupsGroupIdAccountsResponse } from '../models/getGroupsGroupIdAccountsResponse'; +// @ts-ignore +import { GetGroupsGroupIdResponse } from '../models/getGroupsGroupIdResponse'; +// @ts-ignore +import { GetGroupsResponse } from '../models/getGroupsResponse'; +// @ts-ignore +import { GetGroupsTemplateResponse } from '../models/getGroupsTemplateResponse'; +// @ts-ignore +import { PostGroupsGroupIdCommandUnassignStaffRequest } from '../models/postGroupsGroupIdCommandUnassignStaffRequest'; +// @ts-ignore +import { PostGroupsGroupIdCommandUnassignStaffResponse } from '../models/postGroupsGroupIdCommandUnassignStaffResponse'; +// @ts-ignore +import { PostGroupsGroupIdRequest } from '../models/postGroupsGroupIdRequest'; +// @ts-ignore +import { PostGroupsGroupIdResponse } from '../models/postGroupsGroupIdResponse'; +// @ts-ignore +import { PostGroupsRequest } from '../models/postGroupsRequest'; +// @ts-ignore +import { PostGroupsResponse } from '../models/postGroupsResponse'; +// @ts-ignore +import { PutGroupsGroupIdRequest } from '../models/putGroupsGroupIdRequest'; +// @ts-ignore +import { PutGroupsGroupIdResponse } from '../models/putGroupsGroupIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class GroupsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Activate a Group | Associate Clients | Disassociate Clients | Transfer Clients across groups | Generate Collection Sheet | Save Collection Sheet | Unassign a Staff | Assign a Staff | Close a Group | Unassign a Role | Update a Role + * Activate a Group: Groups can be created in a Pending state. This API exists to enable group activation. If the group happens to be already active this API will result in an error. Mandatory Fields: activationDate Associate Clients: This API allows to associate existing clients to a group. The clients are listed from the office to which the group is associated. If client(s) is already associated with group then API will result in an error. Mandatory Fields: clientMembers Disassociate Clients: This API allows to disassociate clients from a group. Disassociating a client with active joint liability group loans results in an error. Mandatory Fields: clientMembers Transfer Clients across groups: This API allows to transfer clients from one group to another Mandatory Fields: destinationGroupId and clients Optional Fields: inheritDestinationGroupLoanOfficer (defaults to true) and transferActiveLoans (defaults to true) Generate Collection Sheet: This API retrieves repayment details of all jlg loans of all members of a group on a specified meeting date. Mandatory Fields: calendarId and transactionDate Save Collection Sheet: This api allows the loan officer to perform bulk repayments of JLG loans for a group on its meeting date. Mandatory Fields: calendarId, transactionDate, actualDisbursementDate Optional Fields: clientsAttendance, bulkRepaymentTransaction, bulkDisbursementTransactions Unassign a Staff: Allows you to unassign the Staff. Mandatory Fields: staffId Assign a Staff: Allows you to assign Staff to an existing Group. The selected Staff should be belong to the same office (or an office higher up in the hierarchy) as this groupMandatory Fields: staffId Optional Fields: inheritStaffForClientAccounts (Optional: Boolean if true all members of the group (i.e all clients with active loans and savings ) will inherit the staffId) Close a Group: This API exists to close a group. Groups can be closed if they don\'t have any non-closed clients/loans/savingsAccounts. If the group has any active clients/loans/savingsAccount, this API will result in an error.Assign a Role: Allows you to assign a Role to an existing member of a group. We can define the different roles applicable to group members by adding code values to the pre-defined system code GROUPROLE. Example:Group leader etc. Mandatory Fields: clientId, role Unassign a Role: Allows you to unassign Roles associated tp Group members. Update a Role: Allows you to update the member Role. Mandatory Fields: role Showing request/response for Transfer Clients across groups + * @param groupId groupId + * @param postGroupsGroupIdRequest + * @param command command + * @param roleId roleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public activateOrGenerateCollectionSheet(groupId: number, postGroupsGroupIdRequest: PostGroupsGroupIdRequest, command?: string, roleId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public activateOrGenerateCollectionSheet(groupId: number, postGroupsGroupIdRequest: PostGroupsGroupIdRequest, command?: string, roleId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public activateOrGenerateCollectionSheet(groupId: number, postGroupsGroupIdRequest: PostGroupsGroupIdRequest, command?: string, roleId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public activateOrGenerateCollectionSheet(groupId: number, postGroupsGroupIdRequest: PostGroupsGroupIdRequest, command?: string, roleId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (groupId === null || groupId === undefined) { + throw new Error('Required parameter groupId was null or undefined when calling activateOrGenerateCollectionSheet.'); + } + if (postGroupsGroupIdRequest === null || postGroupsGroupIdRequest === undefined) { + throw new Error('Required parameter postGroupsGroupIdRequest was null or undefined when calling activateOrGenerateCollectionSheet.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + if (roleId !== undefined && roleId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + roleId, 'roleId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postGroupsGroupIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create a Group + * Creates a Group Mandatory Fields: name, officeId, active, activationDate (if active=true) Optional Fields: externalId, staffId, clientMembers + * @param postGroupsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create8(postGroupsRequest: PostGroupsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create8(postGroupsRequest: PostGroupsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create8(postGroupsRequest: PostGroupsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create8(postGroupsRequest: PostGroupsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postGroupsRequest === null || postGroupsRequest === undefined) { + throw new Error('Required parameter postGroupsRequest was null or undefined when calling create8.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postGroupsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Group + * A group can be deleted if it is in pending state and has no associations - clients, loans or savings + * @param groupId groupId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete12(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete12(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete12(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete12(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (groupId === null || groupId === undefined) { + throw new Error('Required parameter groupId was null or undefined when calling delete12.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param staffId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getGroupsTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getGroupsTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getGroupsTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getGroupsTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postGroupTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postGroupTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postGroupTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postGroupTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Group accounts overview + * Retrieves details of all Loan and Savings accounts associated with this group. Example Requests: groups/1/accounts groups/1/accounts?fields=loanAccounts,savingsAccounts,memberLoanAccounts, memberSavingsAccounts + * @param groupId groupId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAccounts(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAccounts(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAccounts(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAccounts(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (groupId === null || groupId === undefined) { + throw new Error('Required parameter groupId was null or undefined when calling retrieveAccounts.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/accounts`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Groups + * The default implementation of listing Groups returns 200 entries with support for pagination and sorting. Using the parameter limit with description -1 returns all entries. Example Requests: groups groups?fields=name,officeName,joinedDate groups?offset=10&limit=50 groups?orderBy=name&sortOrder=DESC + * @param officeId officeId + * @param staffId staffId + * @param externalId externalId + * @param name name + * @param underHierarchy underHierarchy + * @param paged paged + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param orphansOnly orphansOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll24(officeId?: number, staffId?: number, externalId?: string, name?: string, underHierarchy?: string, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, orphansOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll24(officeId?: number, staffId?: number, externalId?: string, name?: string, underHierarchy?: string, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, orphansOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll24(officeId?: number, staffId?: number, externalId?: string, name?: string, underHierarchy?: string, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, orphansOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll24(officeId?: number, staffId?: number, externalId?: string, name?: string, underHierarchy?: string, paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, orphansOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (externalId !== undefined && externalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalId, 'externalId'); + } + if (name !== undefined && name !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + name, 'name'); + } + if (underHierarchy !== undefined && underHierarchy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + underHierarchy, 'underHierarchy'); + } + if (paged !== undefined && paged !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + paged, 'paged'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (orphansOnly !== undefined && orphansOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orphansOnly, 'orphansOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param groupId + * @param parentGSIMAccountNo + * @param parentGSIMId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveGsimAccounts(groupId: number, parentGSIMAccountNo?: string, parentGSIMId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveGsimAccounts(groupId: number, parentGSIMAccountNo?: string, parentGSIMId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveGsimAccounts(groupId: number, parentGSIMAccountNo?: string, parentGSIMId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveGsimAccounts(groupId: number, parentGSIMAccountNo?: string, parentGSIMId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (groupId === null || groupId === undefined) { + throw new Error('Required parameter groupId was null or undefined when calling retrieveGsimAccounts.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (parentGSIMAccountNo !== undefined && parentGSIMAccountNo !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + parentGSIMAccountNo, 'parentGSIMAccountNo'); + } + if (parentGSIMId !== undefined && parentGSIMId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + parentGSIMId, 'parentGSIMId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/gsimaccounts`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Group + * Retrieve group information. Example Requests: groups/1 groups/1?associations=clientMembers + * @param groupId groupId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param roleId roleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne15(groupId: number, staffInSelectedOfficeOnly?: boolean, roleId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne15(groupId: number, staffInSelectedOfficeOnly?: boolean, roleId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne15(groupId: number, staffInSelectedOfficeOnly?: boolean, roleId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne15(groupId: number, staffInSelectedOfficeOnly?: boolean, roleId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (groupId === null || groupId === undefined) { + throw new Error('Required parameter groupId was null or undefined when calling retrieveOne15.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + if (roleId !== undefined && roleId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + roleId, 'roleId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Group Template + * 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 Requests: groups/template groups/template?officeId=2 groups/template?centerId=1 groups/template?centerId=1&staffInSelectedOfficeOnly=true + * @param officeId officeId + * @param center center + * @param centerId centerId + * @param command command + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate7(officeId?: number, center?: boolean, centerId?: number, command?: string, staffInSelectedOfficeOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate7(officeId?: number, center?: boolean, centerId?: number, command?: string, staffInSelectedOfficeOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate7(officeId?: number, center?: boolean, centerId?: number, command?: string, staffInSelectedOfficeOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate7(officeId?: number, center?: boolean, centerId?: number, command?: string, staffInSelectedOfficeOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (center !== undefined && center !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + center, 'center'); + } + if (centerId !== undefined && centerId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + centerId, 'centerId'); + } + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param groupId + * @param parentLoanAccountNo + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveglimAccounts(groupId: number, parentLoanAccountNo?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveglimAccounts(groupId: number, parentLoanAccountNo?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveglimAccounts(groupId: number, parentLoanAccountNo?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveglimAccounts(groupId: number, parentLoanAccountNo?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (groupId === null || groupId === undefined) { + throw new Error('Required parameter groupId was null or undefined when calling retrieveglimAccounts.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (parentLoanAccountNo !== undefined && parentLoanAccountNo !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + parentLoanAccountNo, 'parentLoanAccountNo'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/glimaccounts`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Unassign a Staff + * Allows you to unassign the Staff. Mandatory Fields: staffId + * @param groupId groupId + * @param postGroupsGroupIdCommandUnassignStaffRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public unassignLoanOfficer(groupId: number, postGroupsGroupIdCommandUnassignStaffRequest: PostGroupsGroupIdCommandUnassignStaffRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public unassignLoanOfficer(groupId: number, postGroupsGroupIdCommandUnassignStaffRequest: PostGroupsGroupIdCommandUnassignStaffRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public unassignLoanOfficer(groupId: number, postGroupsGroupIdCommandUnassignStaffRequest: PostGroupsGroupIdCommandUnassignStaffRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public unassignLoanOfficer(groupId: number, postGroupsGroupIdCommandUnassignStaffRequest: PostGroupsGroupIdCommandUnassignStaffRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (groupId === null || groupId === undefined) { + throw new Error('Required parameter groupId was null or undefined when calling unassignLoanOfficer.'); + } + if (postGroupsGroupIdCommandUnassignStaffRequest === null || postGroupsGroupIdCommandUnassignStaffRequest === undefined) { + throw new Error('Required parameter postGroupsGroupIdCommandUnassignStaffRequest was null or undefined when calling unassignLoanOfficer.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/command/unassign_staff`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postGroupsGroupIdCommandUnassignStaffRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Group + * Updates a Group + * @param groupId groupId + * @param putGroupsGroupIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update13(groupId: number, putGroupsGroupIdRequest: PutGroupsGroupIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update13(groupId: number, putGroupsGroupIdRequest: PutGroupsGroupIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update13(groupId: number, putGroupsGroupIdRequest: PutGroupsGroupIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update13(groupId: number, putGroupsGroupIdRequest: PutGroupsGroupIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (groupId === null || groupId === undefined) { + throw new Error('Required parameter groupId was null or undefined when calling update13.'); + } + if (putGroupsGroupIdRequest === null || putGroupsGroupIdRequest === undefined) { + throw new Error('Required parameter putGroupsGroupIdRequest was null or undefined when calling update13.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putGroupsGroupIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/groupsLevel.service.ts b/packages/fineract-client/src/services/groupsLevel.service.ts new file mode 100644 index 0000000000..346f3f2f98 --- /dev/null +++ b/packages/fineract-client/src/services/groupsLevel.service.ts @@ -0,0 +1,158 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class GroupsLevelService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllGroups(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllGroups(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllGroups(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllGroups(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/grouplevels`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/guarantors.service.ts b/packages/fineract-client/src/services/guarantors.service.ts new file mode 100644 index 0000000000..359c323a6f --- /dev/null +++ b/packages/fineract-client/src/services/guarantors.service.ts @@ -0,0 +1,830 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class GuarantorsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param loanId + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public accountsTemplate(loanId: number, clientId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public accountsTemplate(loanId: number, clientId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public accountsTemplate(loanId: number, clientId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public accountsTemplate(loanId: number, clientId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling accountsTemplate.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/guarantors/accounts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createGuarantor(loanId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createGuarantor(loanId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createGuarantor(loanId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createGuarantor(loanId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling createGuarantor.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/guarantors`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param guarantorId + * @param guarantorFundingId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteGuarantor(loanId: number, guarantorId: number, guarantorFundingId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteGuarantor(loanId: number, guarantorId: number, guarantorFundingId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteGuarantor(loanId: number, guarantorId: number, guarantorFundingId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteGuarantor(loanId: number, guarantorId: number, guarantorFundingId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling deleteGuarantor.'); + } + if (guarantorId === null || guarantorId === undefined) { + throw new Error('Required parameter guarantorId was null or undefined when calling deleteGuarantor.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (guarantorFundingId !== undefined && guarantorFundingId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + guarantorFundingId, 'guarantorFundingId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/guarantors/${this.configuration.encodeParam({name: "guarantorId", value: guarantorId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param officeId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getGuarantorTemplate(loanId: number, officeId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getGuarantorTemplate(loanId: number, officeId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getGuarantorTemplate(loanId: number, officeId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getGuarantorTemplate(loanId: number, officeId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling getGuarantorTemplate.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/guarantors/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public newGuarantorTemplate(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public newGuarantorTemplate(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public newGuarantorTemplate(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public newGuarantorTemplate(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling newGuarantorTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/guarantors/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postGuarantorTemplate(loanId: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postGuarantorTemplate(loanId: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postGuarantorTemplate(loanId: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postGuarantorTemplate(loanId: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling postGuarantorTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/guarantors/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveGuarantorDetails(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveGuarantorDetails(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveGuarantorDetails(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveGuarantorDetails(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveGuarantorDetails.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/guarantors`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param guarantorId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveGuarantorDetails1(loanId: number, guarantorId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveGuarantorDetails1(loanId: number, guarantorId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveGuarantorDetails1(loanId: number, guarantorId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveGuarantorDetails1(loanId: number, guarantorId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveGuarantorDetails1.'); + } + if (guarantorId === null || guarantorId === undefined) { + throw new Error('Required parameter guarantorId was null or undefined when calling retrieveGuarantorDetails1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/guarantors/${this.configuration.encodeParam({name: "guarantorId", value: guarantorId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param guarantorId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateGuarantor(loanId: number, guarantorId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateGuarantor(loanId: number, guarantorId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateGuarantor(loanId: number, guarantorId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateGuarantor(loanId: number, guarantorId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling updateGuarantor.'); + } + if (guarantorId === null || guarantorId === undefined) { + throw new Error('Required parameter guarantorId was null or undefined when calling updateGuarantor.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/guarantors/${this.configuration.encodeParam({name: "guarantorId", value: guarantorId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/holidays.service.ts b/packages/fineract-client/src/services/holidays.service.ts new file mode 100644 index 0000000000..595dcf8b1e --- /dev/null +++ b/packages/fineract-client/src/services/holidays.service.ts @@ -0,0 +1,674 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteHolidaysHolidayIdResponse } from '../models/deleteHolidaysHolidayIdResponse'; +// @ts-ignore +import { GetHolidaysResponse } from '../models/getHolidaysResponse'; +// @ts-ignore +import { PostHolidaysHolidayIdResponse } from '../models/postHolidaysHolidayIdResponse'; +// @ts-ignore +import { PostHolidaysRequest } from '../models/postHolidaysRequest'; +// @ts-ignore +import { PostHolidaysResponse } from '../models/postHolidaysResponse'; +// @ts-ignore +import { PutHolidaysHolidayIdRequest } from '../models/putHolidaysHolidayIdRequest'; +// @ts-ignore +import { PutHolidaysHolidayIdResponse } from '../models/putHolidaysHolidayIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class HolidaysService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Holiday + * Mandatory Fields: name, description, fromDate, toDate, repaymentsRescheduledTo, offices + * @param postHolidaysRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createNewHoliday(postHolidaysRequest: PostHolidaysRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createNewHoliday(postHolidaysRequest: PostHolidaysRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createNewHoliday(postHolidaysRequest: PostHolidaysRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createNewHoliday(postHolidaysRequest: PostHolidaysRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postHolidaysRequest === null || postHolidaysRequest === undefined) { + throw new Error('Required parameter postHolidaysRequest was null or undefined when calling createNewHoliday.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/holidays`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postHolidaysRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Holiday + * This API allows to delete a holiday. This is a soft delete the deleted holiday status is marked as deleted. + * @param holidayId holidayId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete7(holidayId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete7(holidayId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete7(holidayId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete7(holidayId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (holidayId === null || holidayId === undefined) { + throw new Error('Required parameter holidayId was null or undefined when calling delete7.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/holidays/${this.configuration.encodeParam({name: "holidayId", value: holidayId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Activate a Holiday + * Always Holidays are created in pending state. This API allows to activate a holiday. Only the active holidays are considered for rescheduling the loan repayment. + * @param holidayId holidayId + * @param body + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleCommands1(holidayId: number, body: object, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public handleCommands1(holidayId: number, body: object, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands1(holidayId: number, body: object, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands1(holidayId: number, body: object, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (holidayId === null || holidayId === undefined) { + throw new Error('Required parameter holidayId was null or undefined when calling handleCommands1.'); + } + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling handleCommands1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/holidays/${this.configuration.encodeParam({name: "holidayId", value: holidayId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Holidays + * Example Requests: holidays?officeId=1 + * @param officeId officeId + * @param fromDate fromDate + * @param toDate toDate + * @param locale locale + * @param dateFormat dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllHolidays(officeId?: number, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllHolidays(officeId?: number, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllHolidays(officeId?: number, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllHolidays(officeId?: number, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (fromDate !== undefined && fromDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromDate, 'fromDate'); + } + if (toDate !== undefined && toDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toDate, 'toDate'); + } + if (locale !== undefined && locale !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + locale, 'locale'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/holidays`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Holiday + * Example Requests: holidays/1 + * @param holidayId holidayId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne7(holidayId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne7(holidayId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne7(holidayId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne7(holidayId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (holidayId === null || holidayId === undefined) { + throw new Error('Required parameter holidayId was null or undefined when calling retrieveOne7.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/holidays/${this.configuration.encodeParam({name: "holidayId", value: holidayId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveRepaymentScheduleUpdationTyeOptions(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveRepaymentScheduleUpdationTyeOptions(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveRepaymentScheduleUpdationTyeOptions(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveRepaymentScheduleUpdationTyeOptions(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/holidays/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Holiday + * If a holiday is in pending state (created and not activated) then all fields are allowed to modify. Once holidays become active only name and descriptions are allowed to modify. + * @param holidayId holidayId + * @param putHolidaysHolidayIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update6(holidayId: number, putHolidaysHolidayIdRequest: PutHolidaysHolidayIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update6(holidayId: number, putHolidaysHolidayIdRequest: PutHolidaysHolidayIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update6(holidayId: number, putHolidaysHolidayIdRequest: PutHolidaysHolidayIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update6(holidayId: number, putHolidaysHolidayIdRequest: PutHolidaysHolidayIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (holidayId === null || holidayId === undefined) { + throw new Error('Required parameter holidayId was null or undefined when calling update6.'); + } + if (putHolidaysHolidayIdRequest === null || putHolidaysHolidayIdRequest === undefined) { + throw new Error('Required parameter putHolidaysHolidayIdRequest was null or undefined when calling update6.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/holidays/${this.configuration.encodeParam({name: "holidayId", value: holidayId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putHolidaysHolidayIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/hooks.service.ts b/packages/fineract-client/src/services/hooks.service.ts new file mode 100644 index 0000000000..ed9abe6ab3 --- /dev/null +++ b/packages/fineract-client/src/services/hooks.service.ts @@ -0,0 +1,554 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteHookResponse } from '../models/deleteHookResponse'; +// @ts-ignore +import { GetHookResponse } from '../models/getHookResponse'; +// @ts-ignore +import { GetHookTemplateResponse } from '../models/getHookTemplateResponse'; +// @ts-ignore +import { PostHookRequest } from '../models/postHookRequest'; +// @ts-ignore +import { PostHookResponse } from '../models/postHookResponse'; +// @ts-ignore +import { PutHookRequest } from '../models/putHookRequest'; +// @ts-ignore +import { PutHookResponse } from '../models/putHookResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class HooksService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Hook + * The following parameters can be passed for the creation of a hook :- name - string - Required. The name of the template that is being called. (See /hooks/template for the list of valid hook names.) isActive - boolean - Determines whether the hook is actually triggered. events - array - Determines what events the hook is triggered for. config - hash - Required. Key/value pairs to provide settings for this hook. These settings vary between the templates. templateId - Optional. The UGD template ID associated with the same entity (client or loan). + * @param postHookRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createHook(postHookRequest: PostHookRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createHook(postHookRequest: PostHookRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createHook(postHookRequest: PostHookRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createHook(postHookRequest: PostHookRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postHookRequest === null || postHookRequest === undefined) { + throw new Error('Required parameter postHookRequest was null or undefined when calling createHook.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/hooks`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postHookRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Hook + * Deletes a hook. + * @param hookId hookId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteHook(hookId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteHook(hookId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteHook(hookId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteHook(hookId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (hookId === null || hookId === undefined) { + throw new Error('Required parameter hookId was null or undefined when calling deleteHook.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/hooks/${this.configuration.encodeParam({name: "hookId", value: hookId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Hook + * Returns the details of a Hook. Example Requests: hooks/1 + * @param hookId hookId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveHook(hookId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveHook(hookId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveHook(hookId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveHook(hookId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (hookId === null || hookId === undefined) { + throw new Error('Required parameter hookId was null or undefined when calling retrieveHook.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/hooks/${this.configuration.encodeParam({name: "hookId", value: hookId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Hooks + * Returns the list of hooks. Example Requests: hooks + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveHooks(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveHooks(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveHooks(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveHooks(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/hooks`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Hooks Template + * 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 Request: hooks/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template3(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template3(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template3(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template3(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/hooks/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Hook + * Updates the details of a hook. + * @param hookId hookId + * @param putHookRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateHook(hookId: number, putHookRequest: PutHookRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateHook(hookId: number, putHookRequest: PutHookRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateHook(hookId: number, putHookRequest: PutHookRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateHook(hookId: number, putHookRequest: PutHookRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (hookId === null || hookId === undefined) { + throw new Error('Required parameter hookId was null or undefined when calling updateHook.'); + } + if (putHookRequest === null || putHookRequest === undefined) { + throw new Error('Required parameter putHookRequest was null or undefined when calling updateHook.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/hooks/${this.configuration.encodeParam({name: "hookId", value: hookId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putHookRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/inlineJob.service.ts b/packages/fineract-client/src/services/inlineJob.service.ts new file mode 100644 index 0000000000..c36e69f753 --- /dev/null +++ b/packages/fineract-client/src/services/inlineJob.service.ts @@ -0,0 +1,179 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { InlineJobRequest } from '../models/inlineJobRequest'; +// @ts-ignore +import { InlineJobResponse } from '../models/inlineJobResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class InlineJobService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Starts an inline Job + * Starts an inline Job + * @param jobName jobName + * @param inlineJobRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeInlineJob(jobName: string, inlineJobRequest?: InlineJobRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public executeInlineJob(jobName: string, inlineJobRequest?: InlineJobRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeInlineJob(jobName: string, inlineJobRequest?: InlineJobRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeInlineJob(jobName: string, inlineJobRequest?: InlineJobRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (jobName === null || jobName === undefined) { + throw new Error('Required parameter jobName was null or undefined when calling executeInlineJob.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/jobs/${this.configuration.encodeParam({name: "jobName", value: jobName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/inline`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: inlineJobRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/instanceMode.service.ts b/packages/fineract-client/src/services/instanceMode.service.ts new file mode 100644 index 0000000000..f85822d2bc --- /dev/null +++ b/packages/fineract-client/src/services/instanceMode.service.ts @@ -0,0 +1,174 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ChangeInstanceModeRequest } from '../models/changeInstanceModeRequest'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class InstanceModeService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Changes the Fineract instance mode + * @param changeInstanceModeRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public changeMode(changeInstanceModeRequest: ChangeInstanceModeRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public changeMode(changeInstanceModeRequest: ChangeInstanceModeRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public changeMode(changeInstanceModeRequest: ChangeInstanceModeRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public changeMode(changeInstanceModeRequest: ChangeInstanceModeRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (changeInstanceModeRequest === null || changeInstanceModeRequest === undefined) { + throw new Error('Required parameter changeInstanceModeRequest was null or undefined when calling changeMode.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/instance-mode`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: changeInstanceModeRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/interOperation.service.ts b/packages/fineract-client/src/services/interOperation.service.ts new file mode 100644 index 0000000000..5a5f341243 --- /dev/null +++ b/packages/fineract-client/src/services/interOperation.service.ts @@ -0,0 +1,1625 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { InteropAccountData } from '../models/interopAccountData'; +// @ts-ignore +import { InteropIdentifierAccountResponseData } from '../models/interopIdentifierAccountResponseData'; +// @ts-ignore +import { InteropIdentifierRequestData } from '../models/interopIdentifierRequestData'; +// @ts-ignore +import { InteropIdentifiersResponseData } from '../models/interopIdentifiersResponseData'; +// @ts-ignore +import { InteropKycResponseData } from '../models/interopKycResponseData'; +// @ts-ignore +import { InteropQuoteRequestData } from '../models/interopQuoteRequestData'; +// @ts-ignore +import { InteropQuoteResponseData } from '../models/interopQuoteResponseData'; +// @ts-ignore +import { InteropTransactionRequestData } from '../models/interopTransactionRequestData'; +// @ts-ignore +import { InteropTransactionRequestResponseData } from '../models/interopTransactionRequestResponseData'; +// @ts-ignore +import { InteropTransactionsData } from '../models/interopTransactionsData'; +// @ts-ignore +import { InteropTransferRequestData } from '../models/interopTransferRequestData'; +// @ts-ignore +import { InteropTransferResponseData } from '../models/interopTransferResponseData'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class InterOperationService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Calculate Interoperation Quote + * @param interopQuoteRequestData + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createQuote(interopQuoteRequestData: InteropQuoteRequestData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createQuote(interopQuoteRequestData: InteropQuoteRequestData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createQuote(interopQuoteRequestData: InteropQuoteRequestData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createQuote(interopQuoteRequestData: InteropQuoteRequestData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (interopQuoteRequestData === null || interopQuoteRequestData === undefined) { + throw new Error('Required parameter interopQuoteRequestData was null or undefined when calling createQuote.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/quotes`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: interopQuoteRequestData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Allow Interoperation Transaction Request + * @param interopTransactionRequestData + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createTransactionRequest(interopTransactionRequestData: InteropTransactionRequestData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createTransactionRequest(interopTransactionRequestData: InteropTransactionRequestData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createTransactionRequest(interopTransactionRequestData: InteropTransactionRequestData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createTransactionRequest(interopTransactionRequestData: InteropTransactionRequestData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (interopTransactionRequestData === null || interopTransactionRequestData === undefined) { + throw new Error('Required parameter interopTransactionRequestData was null or undefined when calling createTransactionRequest.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/requests`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: interopTransactionRequestData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Allow Interoperation Identifier registration + * @param idType idType + * @param idValue idValue + * @param interopIdentifierRequestData + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteAccountIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteAccountIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteAccountIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteAccountIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (idType === null || idType === undefined) { + throw new Error('Required parameter idType was null or undefined when calling deleteAccountIdentifier.'); + } + if (idValue === null || idValue === undefined) { + throw new Error('Required parameter idValue was null or undefined when calling deleteAccountIdentifier.'); + } + if (interopIdentifierRequestData === null || interopIdentifierRequestData === undefined) { + throw new Error('Required parameter interopIdentifierRequestData was null or undefined when calling deleteAccountIdentifier.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/parties/${this.configuration.encodeParam({name: "idType", value: idType, in: "path", style: "simple", explode: false, dataType: "'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS'", dataFormat: undefined})}/${this.configuration.encodeParam({name: "idValue", value: idValue, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: interopIdentifierRequestData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Allow Interoperation Identifier registration + * @param idType idType + * @param idValue idValue + * @param subIdOrType subIdOrType + * @param interopIdentifierRequestData + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteAccountIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteAccountIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteAccountIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteAccountIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (idType === null || idType === undefined) { + throw new Error('Required parameter idType was null or undefined when calling deleteAccountIdentifier1.'); + } + if (idValue === null || idValue === undefined) { + throw new Error('Required parameter idValue was null or undefined when calling deleteAccountIdentifier1.'); + } + if (subIdOrType === null || subIdOrType === undefined) { + throw new Error('Required parameter subIdOrType was null or undefined when calling deleteAccountIdentifier1.'); + } + if (interopIdentifierRequestData === null || interopIdentifierRequestData === undefined) { + throw new Error('Required parameter interopIdentifierRequestData was null or undefined when calling deleteAccountIdentifier1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/parties/${this.configuration.encodeParam({name: "idType", value: idType, in: "path", style: "simple", explode: false, dataType: "'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS'", dataFormat: undefined})}/${this.configuration.encodeParam({name: "idValue", value: idValue, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "subIdOrType", value: subIdOrType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: interopIdentifierRequestData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Disburse Loan by Account Id + * @param accountId accountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public disburseLoan(accountId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public disburseLoan(accountId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public disburseLoan(accountId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public disburseLoan(accountId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling disburseLoan.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/transactions/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/disburse`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query Interoperation Account by secondary identifier + * @param idType idType + * @param idValue idValue + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAccountByIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getAccountByIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAccountByIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAccountByIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (idType === null || idType === undefined) { + throw new Error('Required parameter idType was null or undefined when calling getAccountByIdentifier.'); + } + if (idValue === null || idValue === undefined) { + throw new Error('Required parameter idValue was null or undefined when calling getAccountByIdentifier.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/parties/${this.configuration.encodeParam({name: "idType", value: idType, in: "path", style: "simple", explode: false, dataType: "'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS'", dataFormat: undefined})}/${this.configuration.encodeParam({name: "idValue", value: idValue, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query Interoperation Account by secondary identifier + * @param idType idType + * @param idValue idValue + * @param subIdOrType subIdOrType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAccountByIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getAccountByIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAccountByIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAccountByIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (idType === null || idType === undefined) { + throw new Error('Required parameter idType was null or undefined when calling getAccountByIdentifier1.'); + } + if (idValue === null || idValue === undefined) { + throw new Error('Required parameter idValue was null or undefined when calling getAccountByIdentifier1.'); + } + if (subIdOrType === null || subIdOrType === undefined) { + throw new Error('Required parameter subIdOrType was null or undefined when calling getAccountByIdentifier1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/parties/${this.configuration.encodeParam({name: "idType", value: idType, in: "path", style: "simple", explode: false, dataType: "'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS'", dataFormat: undefined})}/${this.configuration.encodeParam({name: "idValue", value: idValue, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "subIdOrType", value: subIdOrType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query Interoperation Account details + * @param accountId accountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAccountDetails(accountId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getAccountDetails(accountId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAccountDetails(accountId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAccountDetails(accountId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling getAccountDetails.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/accounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query Interoperation secondary identifiers by Account Id + * @param accountId accountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAccountIdentifiers(accountId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getAccountIdentifiers(accountId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAccountIdentifiers(accountId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAccountIdentifiers(accountId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling getAccountIdentifiers.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/accounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/identifiers`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query transactions by Account Id + * @param accountId accountId + * @param debit debit + * @param credit credit + * @param fromBookingDateTime fromBookingDateTime + * @param toBookingDateTime toBookingDateTime + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAccountTransactions(accountId: string, debit?: boolean, credit?: boolean, fromBookingDateTime?: string, toBookingDateTime?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getAccountTransactions(accountId: string, debit?: boolean, credit?: boolean, fromBookingDateTime?: string, toBookingDateTime?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAccountTransactions(accountId: string, debit?: boolean, credit?: boolean, fromBookingDateTime?: string, toBookingDateTime?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAccountTransactions(accountId: string, debit?: boolean, credit?: boolean, fromBookingDateTime?: string, toBookingDateTime?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling getAccountTransactions.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (debit !== undefined && debit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + debit, 'debit'); + } + if (credit !== undefined && credit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + credit, 'credit'); + } + if (fromBookingDateTime !== undefined && fromBookingDateTime !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromBookingDateTime, 'fromBookingDateTime'); + } + if (toBookingDateTime !== undefined && toBookingDateTime !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toBookingDateTime, 'toBookingDateTime'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/accounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query KYC by Account Id + * @param accountId accountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getClientKyc(accountId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getClientKyc(accountId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getClientKyc(accountId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getClientKyc(accountId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling getClientKyc.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/accounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/kyc`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query Interoperation Quote + * @param transactionCode transactionCode + * @param quoteCode quoteCode + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getQuote(transactionCode: string, quoteCode: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getQuote(transactionCode: string, quoteCode: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getQuote(transactionCode: string, quoteCode: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getQuote(transactionCode: string, quoteCode: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (transactionCode === null || transactionCode === undefined) { + throw new Error('Required parameter transactionCode was null or undefined when calling getQuote.'); + } + if (quoteCode === null || quoteCode === undefined) { + throw new Error('Required parameter quoteCode was null or undefined when calling getQuote.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/transactions/${this.configuration.encodeParam({name: "transactionCode", value: transactionCode, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/quotes/${this.configuration.encodeParam({name: "quoteCode", value: quoteCode, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query Interoperation Transaction Request + * @param transactionCode transactionCode + * @param requestCode requestCode + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTransactionRequest(transactionCode: string, requestCode: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getTransactionRequest(transactionCode: string, requestCode: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransactionRequest(transactionCode: string, requestCode: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransactionRequest(transactionCode: string, requestCode: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (transactionCode === null || transactionCode === undefined) { + throw new Error('Required parameter transactionCode was null or undefined when calling getTransactionRequest.'); + } + if (requestCode === null || requestCode === undefined) { + throw new Error('Required parameter requestCode was null or undefined when calling getTransactionRequest.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/transactions/${this.configuration.encodeParam({name: "transactionCode", value: transactionCode, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/requests/${this.configuration.encodeParam({name: "requestCode", value: requestCode, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query Interoperation Transfer + * @param transactionCode transactionCode + * @param transferCode transferCode + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTransfer(transactionCode: string, transferCode: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getTransfer(transactionCode: string, transferCode: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransfer(transactionCode: string, transferCode: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransfer(transactionCode: string, transferCode: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (transactionCode === null || transactionCode === undefined) { + throw new Error('Required parameter transactionCode was null or undefined when calling getTransfer.'); + } + if (transferCode === null || transferCode === undefined) { + throw new Error('Required parameter transferCode was null or undefined when calling getTransfer.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/transactions/${this.configuration.encodeParam({name: "transactionCode", value: transactionCode, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transfers/${this.configuration.encodeParam({name: "transferCode", value: transferCode, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Query Interoperation Health Request + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public health(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public health(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public health(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public health(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/health`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Disburse Loan by Account Id + * @param accountId accountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public loanRepayment(accountId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public loanRepayment(accountId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public loanRepayment(accountId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public loanRepayment(accountId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling loanRepayment.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/transactions/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/loanrepayment`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Prepare Interoperation Transfer + * @param interopTransferRequestData + * @param action action + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public performTransfer(interopTransferRequestData: InteropTransferRequestData, action?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public performTransfer(interopTransferRequestData: InteropTransferRequestData, action?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public performTransfer(interopTransferRequestData: InteropTransferRequestData, action?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public performTransfer(interopTransferRequestData: InteropTransferRequestData, action?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (interopTransferRequestData === null || interopTransferRequestData === undefined) { + throw new Error('Required parameter interopTransferRequestData was null or undefined when calling performTransfer.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (action !== undefined && action !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + action, 'action'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/transfers`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: interopTransferRequestData, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Interoperation Identifier registration + * @param idType idType + * @param idValue idValue + * @param interopIdentifierRequestData + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registerAccountIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public registerAccountIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public registerAccountIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public registerAccountIdentifier(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (idType === null || idType === undefined) { + throw new Error('Required parameter idType was null or undefined when calling registerAccountIdentifier.'); + } + if (idValue === null || idValue === undefined) { + throw new Error('Required parameter idValue was null or undefined when calling registerAccountIdentifier.'); + } + if (interopIdentifierRequestData === null || interopIdentifierRequestData === undefined) { + throw new Error('Required parameter interopIdentifierRequestData was null or undefined when calling registerAccountIdentifier.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/parties/${this.configuration.encodeParam({name: "idType", value: idType, in: "path", style: "simple", explode: false, dataType: "'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS'", dataFormat: undefined})}/${this.configuration.encodeParam({name: "idValue", value: idValue, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: interopIdentifierRequestData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Interoperation Identifier registration + * @param idType idType + * @param idValue idValue + * @param subIdOrType subIdOrType + * @param interopIdentifierRequestData + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registerAccountIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public registerAccountIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public registerAccountIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public registerAccountIdentifier1(idType: 'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS', idValue: string, subIdOrType: string, interopIdentifierRequestData: InteropIdentifierRequestData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (idType === null || idType === undefined) { + throw new Error('Required parameter idType was null or undefined when calling registerAccountIdentifier1.'); + } + if (idValue === null || idValue === undefined) { + throw new Error('Required parameter idValue was null or undefined when calling registerAccountIdentifier1.'); + } + if (subIdOrType === null || subIdOrType === undefined) { + throw new Error('Required parameter subIdOrType was null or undefined when calling registerAccountIdentifier1.'); + } + if (interopIdentifierRequestData === null || interopIdentifierRequestData === undefined) { + throw new Error('Required parameter interopIdentifierRequestData was null or undefined when calling registerAccountIdentifier1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interoperation/parties/${this.configuration.encodeParam({name: "idType", value: idType, in: "path", style: "simple", explode: false, dataType: "'MSISDN' | 'EMAIL' | 'PERSONAL_ID' | 'BUSINESS' | 'DEVICE' | 'ACCOUNT_ID' | 'IBAN' | 'ALIAS'", dataFormat: undefined})}/${this.configuration.encodeParam({name: "idValue", value: idValue, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "subIdOrType", value: subIdOrType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: interopIdentifierRequestData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/interestRateChart.service.ts b/packages/fineract-client/src/services/interestRateChart.service.ts new file mode 100644 index 0000000000..93726f98ca --- /dev/null +++ b/packages/fineract-client/src/services/interestRateChart.service.ts @@ -0,0 +1,562 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteInterestRateChartsChartIdResponse } from '../models/deleteInterestRateChartsChartIdResponse'; +// @ts-ignore +import { GetInterestRateChartsResponse } from '../models/getInterestRateChartsResponse'; +// @ts-ignore +import { GetInterestRateChartsTemplateResponse } from '../models/getInterestRateChartsTemplateResponse'; +// @ts-ignore +import { PostInterestRateChartsRequest } from '../models/postInterestRateChartsRequest'; +// @ts-ignore +import { PostInterestRateChartsResponse } from '../models/postInterestRateChartsResponse'; +// @ts-ignore +import { PutInterestRateChartsChartIdRequest } from '../models/putInterestRateChartsChartIdRequest'; +// @ts-ignore +import { PutInterestRateChartsChartIdResponse } from '../models/putInterestRateChartsChartIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class InterestRateChartService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Chart + * Creates a new chart which can be attached to a term deposit products (FD or RD). + * @param postInterestRateChartsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create10(postInterestRateChartsRequest: PostInterestRateChartsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create10(postInterestRateChartsRequest: PostInterestRateChartsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create10(postInterestRateChartsRequest: PostInterestRateChartsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create10(postInterestRateChartsRequest: PostInterestRateChartsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postInterestRateChartsRequest === null || postInterestRateChartsRequest === undefined) { + throw new Error('Required parameter postInterestRateChartsRequest was null or undefined when calling create10.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postInterestRateChartsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Chart + * It deletes the chart + * @param chartId chartId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete14(chartId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete14(chartId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete14(chartId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete14(chartId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chartId === null || chartId === undefined) { + throw new Error('Required parameter chartId was null or undefined when calling delete14.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts/${this.configuration.encodeParam({name: "chartId", value: chartId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve all Charts + * Retrieve list of charts associated with a term deposit product(FD or RD). Example Requests: interestratecharts?productId=1 + * @param productId productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll26(productId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll26(productId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll26(productId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll26(productId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Chart + * It retrieves the Interest Rate Chart Example Requests: interestratecharts/1 + * @param chartId chartId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne17(chartId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne17(chartId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne17(chartId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne17(chartId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chartId === null || chartId === undefined) { + throw new Error('Required parameter chartId was null or undefined when calling retrieveOne17.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts/${this.configuration.encodeParam({name: "chartId", value: chartId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Chart Details Template + * This is a convenience resource. It can be useful when building maintenance user interface screens for creating a chart. The template data returned consists of any or all of: Field Defaults Allowed Value Lists Example Request: interestratecharts/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template9(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template9(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template9(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template9(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Chart + * It updates the chart + * @param chartId chartId + * @param putInterestRateChartsChartIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update15(chartId: number, putInterestRateChartsChartIdRequest: PutInterestRateChartsChartIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update15(chartId: number, putInterestRateChartsChartIdRequest: PutInterestRateChartsChartIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update15(chartId: number, putInterestRateChartsChartIdRequest: PutInterestRateChartsChartIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update15(chartId: number, putInterestRateChartsChartIdRequest: PutInterestRateChartsChartIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chartId === null || chartId === undefined) { + throw new Error('Required parameter chartId was null or undefined when calling update15.'); + } + if (putInterestRateChartsChartIdRequest === null || putInterestRateChartsChartIdRequest === undefined) { + throw new Error('Required parameter putInterestRateChartsChartIdRequest was null or undefined when calling update15.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts/${this.configuration.encodeParam({name: "chartId", value: chartId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putInterestRateChartsChartIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/interestRateSlabAKAInterestBands.service.ts b/packages/fineract-client/src/services/interestRateSlabAKAInterestBands.service.ts new file mode 100644 index 0000000000..d374635080 --- /dev/null +++ b/packages/fineract-client/src/services/interestRateSlabAKAInterestBands.service.ts @@ -0,0 +1,574 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteInterestRateChartsChartIdChartSlabsResponse } from '../models/deleteInterestRateChartsChartIdChartSlabsResponse'; +// @ts-ignore +import { GetInterestRateChartsChartIdChartSlabsResponse } from '../models/getInterestRateChartsChartIdChartSlabsResponse'; +// @ts-ignore +import { PostInterestRateChartsChartIdChartSlabsRequest } from '../models/postInterestRateChartsChartIdChartSlabsRequest'; +// @ts-ignore +import { PostInterestRateChartsChartIdChartSlabsResponse } from '../models/postInterestRateChartsChartIdChartSlabsResponse'; +// @ts-ignore +import { PutInterestRateChartsChartIdChartSlabsChartSlabIdRequest } from '../models/putInterestRateChartsChartIdChartSlabsChartSlabIdRequest'; +// @ts-ignore +import { PutInterestRateChartsChartIdChartSlabsChartSlabIdResponse } from '../models/putInterestRateChartsChartIdChartSlabsChartSlabIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class InterestRateSlabAKAInterestBandsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Slab + * Creates a new interest rate slab for an interest rate chart. Mandatory Fields periodType, fromPeriod, annualInterestRate Optional Fields toPeriod and description Example Requests: interestratecharts/1/chartslabs + * @param chartId chartId + * @param postInterestRateChartsChartIdChartSlabsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create9(chartId: number, postInterestRateChartsChartIdChartSlabsRequest: PostInterestRateChartsChartIdChartSlabsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create9(chartId: number, postInterestRateChartsChartIdChartSlabsRequest: PostInterestRateChartsChartIdChartSlabsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create9(chartId: number, postInterestRateChartsChartIdChartSlabsRequest: PostInterestRateChartsChartIdChartSlabsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create9(chartId: number, postInterestRateChartsChartIdChartSlabsRequest: PostInterestRateChartsChartIdChartSlabsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chartId === null || chartId === undefined) { + throw new Error('Required parameter chartId was null or undefined when calling create9.'); + } + if (postInterestRateChartsChartIdChartSlabsRequest === null || postInterestRateChartsChartIdChartSlabsRequest === undefined) { + throw new Error('Required parameter postInterestRateChartsChartIdChartSlabsRequest was null or undefined when calling create9.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts/${this.configuration.encodeParam({name: "chartId", value: chartId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/chartslabs`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postInterestRateChartsChartIdChartSlabsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Slab + * Delete a Slab from a chart + * @param chartId chartId + * @param chartSlabId chartSlabId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete13(chartId: number, chartSlabId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete13(chartId: number, chartSlabId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete13(chartId: number, chartSlabId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete13(chartId: number, chartSlabId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chartId === null || chartId === undefined) { + throw new Error('Required parameter chartId was null or undefined when calling delete13.'); + } + if (chartSlabId === null || chartSlabId === undefined) { + throw new Error('Required parameter chartSlabId was null or undefined when calling delete13.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts/${this.configuration.encodeParam({name: "chartId", value: chartId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/chartslabs/${this.configuration.encodeParam({name: "chartSlabId", value: chartSlabId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve all Slabs + * Retrieve list of slabs associated with a chart Example Requests: interestratecharts/1/chartslabs + * @param chartId chartId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll25(chartId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll25(chartId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll25(chartId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll25(chartId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chartId === null || chartId === undefined) { + throw new Error('Required parameter chartId was null or undefined when calling retrieveAll25.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts/${this.configuration.encodeParam({name: "chartId", value: chartId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/chartslabs`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Slab + * Retrieve a slab associated with an Interest rate chart Example Requests: interestratecharts/1/chartslabs/1 + * @param chartId chartId + * @param chartSlabId chartSlabId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne16(chartId: number, chartSlabId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne16(chartId: number, chartSlabId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne16(chartId: number, chartSlabId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne16(chartId: number, chartSlabId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chartId === null || chartId === undefined) { + throw new Error('Required parameter chartId was null or undefined when calling retrieveOne16.'); + } + if (chartSlabId === null || chartSlabId === undefined) { + throw new Error('Required parameter chartSlabId was null or undefined when calling retrieveOne16.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts/${this.configuration.encodeParam({name: "chartId", value: chartId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/chartslabs/${this.configuration.encodeParam({name: "chartSlabId", value: chartSlabId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param chartId chartId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template8(chartId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template8(chartId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template8(chartId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template8(chartId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chartId === null || chartId === undefined) { + throw new Error('Required parameter chartId was null or undefined when calling template8.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts/${this.configuration.encodeParam({name: "chartId", value: chartId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/chartslabs/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Slab + * It updates the Slab from chart + * @param chartId chartId + * @param chartSlabId chartSlabId + * @param putInterestRateChartsChartIdChartSlabsChartSlabIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update14(chartId: number, chartSlabId: number, putInterestRateChartsChartIdChartSlabsChartSlabIdRequest: PutInterestRateChartsChartIdChartSlabsChartSlabIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update14(chartId: number, chartSlabId: number, putInterestRateChartsChartIdChartSlabsChartSlabIdRequest: PutInterestRateChartsChartIdChartSlabsChartSlabIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update14(chartId: number, chartSlabId: number, putInterestRateChartsChartIdChartSlabsChartSlabIdRequest: PutInterestRateChartsChartIdChartSlabsChartSlabIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update14(chartId: number, chartSlabId: number, putInterestRateChartsChartIdChartSlabsChartSlabIdRequest: PutInterestRateChartsChartIdChartSlabsChartSlabIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (chartId === null || chartId === undefined) { + throw new Error('Required parameter chartId was null or undefined when calling update14.'); + } + if (chartSlabId === null || chartSlabId === undefined) { + throw new Error('Required parameter chartSlabId was null or undefined when calling update14.'); + } + if (putInterestRateChartsChartIdChartSlabsChartSlabIdRequest === null || putInterestRateChartsChartIdChartSlabsChartSlabIdRequest === undefined) { + throw new Error('Required parameter putInterestRateChartsChartIdChartSlabsChartSlabIdRequest was null or undefined when calling update14.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/interestratecharts/${this.configuration.encodeParam({name: "chartId", value: chartId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/chartslabs/${this.configuration.encodeParam({name: "chartSlabId", value: chartSlabId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putInterestRateChartsChartIdChartSlabsChartSlabIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/journalEntries.service.ts b/packages/fineract-client/src/services/journalEntries.service.ts new file mode 100644 index 0000000000..82eaaaebf7 --- /dev/null +++ b/packages/fineract-client/src/services/journalEntries.service.ts @@ -0,0 +1,886 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetJournalEntriesTransactionIdResponse } from '../models/getJournalEntriesTransactionIdResponse'; +// @ts-ignore +import { JournalEntryCommand } from '../models/journalEntryCommand'; +// @ts-ignore +import { JournalEntryTransactionItem } from '../models/journalEntryTransactionItem'; +// @ts-ignore +import { PostJournalEntriesResponse } from '../models/postJournalEntriesResponse'; +// @ts-ignore +import { PostJournalEntriesTransactionIdRequest } from '../models/postJournalEntriesTransactionIdRequest'; +// @ts-ignore +import { PostJournalEntriesTransactionIdResponse } from '../models/postJournalEntriesTransactionIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class JournalEntriesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create \"Balanced\" Journal Entries + * Note: A Balanced (simple) Journal entry would have atleast one \"Debit\" and one \"Credit\" entry whose amounts are equal Compound Journal entries may have \"n\" debits and \"m\" credits where both \"m\" and \"n\" are greater than 0 and the net sum or all debits and credits are equal Mandatory Fields officeId, transactionDate credits- glAccountId, amount, comments debits- glAccountId, amount, comments Optional Fields paymentTypeId, accountNumber, checkNumber, routingCode, receiptNumber, bankNumber + * @param command command + * @param journalEntryCommand + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createGLJournalEntry(command?: string, journalEntryCommand?: JournalEntryCommand, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createGLJournalEntry(command?: string, journalEntryCommand?: JournalEntryCommand, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createGLJournalEntry(command?: string, journalEntryCommand?: JournalEntryCommand, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createGLJournalEntry(command?: string, journalEntryCommand?: JournalEntryCommand, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/journalentries`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: journalEntryCommand, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Running balances for Journal Entries + * This API calculates the running balances for office. If office ID not provided this API calculates running balances for all offices. Mandatory Fields officeId + * @param transactionId transactionId + * @param command command + * @param postJournalEntriesTransactionIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createReversalJournalEntry(transactionId: string, command?: string, postJournalEntriesTransactionIdRequest?: PostJournalEntriesTransactionIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createReversalJournalEntry(transactionId: string, command?: string, postJournalEntriesTransactionIdRequest?: PostJournalEntriesTransactionIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createReversalJournalEntry(transactionId: string, command?: string, postJournalEntriesTransactionIdRequest?: PostJournalEntriesTransactionIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createReversalJournalEntry(transactionId: string, command?: string, postJournalEntriesTransactionIdRequest?: PostJournalEntriesTransactionIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling createReversalJournalEntry.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/journalentries/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postJournalEntriesTransactionIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getJournalEntriesTemplate(officeId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getJournalEntriesTemplate(officeId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getJournalEntriesTemplate(officeId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getJournalEntriesTemplate(officeId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/journalentries/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postJournalEntriesTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postJournalEntriesTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postJournalEntriesTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postJournalEntriesTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/journalentries/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Journal Entries + * The list capability of journal entries can support pagination and sorting. Example Requests: journalentries journalentries?transactionId=PB37X8Y21EQUY4S journalentries?officeId=1&manualEntriesOnly=true&fromDate=1 July 2013&toDate=15 July 2013&dateFormat=dd MMMM yyyy&locale=en journalentries?fields=officeName,glAccountName,transactionDate journalentries?offset=10&limit=50 journalentries?orderBy=transactionId&sortOrder=DESC journalentries?runningBalance=true journalentries?transactionDetails=true journalentries?loanId=12 journalentries?savingsId=24 + * @param officeId officeId + * @param glAccountId glAccountId + * @param manualEntriesOnly manualEntriesOnly + * @param fromDate fromDate + * @param toDate toDate + * @param submittedOnDateFrom submittedOnDateFrom + * @param submittedOnDateTo submittedOnDateTo + * @param transactionId transactionId + * @param entityType entityType + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param locale locale + * @param dateFormat dateFormat + * @param loanId loanId + * @param savingsId savingsId + * @param runningBalance runningBalance + * @param transactionDetails transactionDetails + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll1(officeId?: number, glAccountId?: number, manualEntriesOnly?: boolean, fromDate?: object, toDate?: object, submittedOnDateFrom?: object, submittedOnDateTo?: object, transactionId?: string, entityType?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, locale?: string, dateFormat?: string, loanId?: number, savingsId?: number, runningBalance?: boolean, transactionDetails?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll1(officeId?: number, glAccountId?: number, manualEntriesOnly?: boolean, fromDate?: object, toDate?: object, submittedOnDateFrom?: object, submittedOnDateTo?: object, transactionId?: string, entityType?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, locale?: string, dateFormat?: string, loanId?: number, savingsId?: number, runningBalance?: boolean, transactionDetails?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll1(officeId?: number, glAccountId?: number, manualEntriesOnly?: boolean, fromDate?: object, toDate?: object, submittedOnDateFrom?: object, submittedOnDateTo?: object, transactionId?: string, entityType?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, locale?: string, dateFormat?: string, loanId?: number, savingsId?: number, runningBalance?: boolean, transactionDetails?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll1(officeId?: number, glAccountId?: number, manualEntriesOnly?: boolean, fromDate?: object, toDate?: object, submittedOnDateFrom?: object, submittedOnDateTo?: object, transactionId?: string, entityType?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, locale?: string, dateFormat?: string, loanId?: number, savingsId?: number, runningBalance?: boolean, transactionDetails?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (glAccountId !== undefined && glAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + glAccountId, 'glAccountId'); + } + if (manualEntriesOnly !== undefined && manualEntriesOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + manualEntriesOnly, 'manualEntriesOnly'); + } + if (fromDate !== undefined && fromDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromDate, 'fromDate'); + } + if (toDate !== undefined && toDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toDate, 'toDate'); + } + if (submittedOnDateFrom !== undefined && submittedOnDateFrom !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + submittedOnDateFrom, 'submittedOnDateFrom'); + } + if (submittedOnDateTo !== undefined && submittedOnDateTo !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + submittedOnDateTo, 'submittedOnDateTo'); + } + if (transactionId !== undefined && transactionId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + transactionId, 'transactionId'); + } + if (entityType !== undefined && entityType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + entityType, 'entityType'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (locale !== undefined && locale !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + locale, 'locale'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + if (loanId !== undefined && loanId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + loanId, 'loanId'); + } + if (savingsId !== undefined && savingsId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + savingsId, 'savingsId'); + } + if (runningBalance !== undefined && runningBalance !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + runningBalance, 'runningBalance'); + } + if (transactionDetails !== undefined && transactionDetails !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + transactionDetails, 'transactionDetails'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/journalentries`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param offset + * @param limit + * @param entryId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveJournalEntries(offset?: number, limit?: number, entryId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveJournalEntries(offset?: number, limit?: number, entryId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveJournalEntries(offset?: number, limit?: number, entryId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveJournalEntries(offset?: number, limit?: number, entryId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (entryId !== undefined && entryId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + entryId, 'entryId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/journalentries/provisioning`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a single Entry + * Example Requests: journalentries/1 journalentries/1?fields=officeName,glAccountId,entryType,amount journalentries/1?runningBalance=true journalentries/1?transactionDetails=true + * @param journalEntryId journalEntryId + * @param runningBalance runningBalance + * @param transactionDetails transactionDetails + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveJournalEntryById(journalEntryId: number, runningBalance?: boolean, transactionDetails?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveJournalEntryById(journalEntryId: number, runningBalance?: boolean, transactionDetails?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveJournalEntryById(journalEntryId: number, runningBalance?: boolean, transactionDetails?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveJournalEntryById(journalEntryId: number, runningBalance?: boolean, transactionDetails?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (journalEntryId === null || journalEntryId === undefined) { + throw new Error('Required parameter journalEntryId was null or undefined when calling retrieveJournalEntryById.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (runningBalance !== undefined && runningBalance !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + runningBalance, 'runningBalance'); + } + if (transactionDetails !== undefined && transactionDetails !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + transactionDetails, 'transactionDetails'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/journalentries/${this.configuration.encodeParam({name: "journalEntryId", value: journalEntryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param currencyCode + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOpeningBalance(officeId?: number, currencyCode?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOpeningBalance(officeId?: number, currencyCode?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOpeningBalance(officeId?: number, currencyCode?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOpeningBalance(officeId?: number, currencyCode?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (currencyCode !== undefined && currencyCode !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + currencyCode, 'currencyCode'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/journalentries/openingbalance`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/likelihood.service.ts b/packages/fineract-client/src/services/likelihood.service.ts new file mode 100644 index 0000000000..cf611f9afa --- /dev/null +++ b/packages/fineract-client/src/services/likelihood.service.ts @@ -0,0 +1,321 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LikelihoodService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param likelihoodId + * @param ppiName + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieve(likelihoodId: number, ppiName: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieve(likelihoodId: number, ppiName: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieve(likelihoodId: number, ppiName: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieve(likelihoodId: number, ppiName: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (likelihoodId === null || likelihoodId === undefined) { + throw new Error('Required parameter likelihoodId was null or undefined when calling retrieve.'); + } + if (ppiName === null || ppiName === undefined) { + throw new Error('Required parameter ppiName was null or undefined when calling retrieve.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/likelihood/${this.configuration.encodeParam({name: "ppiName", value: ppiName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "likelihoodId", value: likelihoodId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param ppiName + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll11(ppiName: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll11(ppiName: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll11(ppiName: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll11(ppiName: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (ppiName === null || ppiName === undefined) { + throw new Error('Required parameter ppiName was null or undefined when calling retrieveAll11.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/likelihood/${this.configuration.encodeParam({name: "ppiName", value: ppiName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param likelihoodId + * @param ppiName + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update4(likelihoodId: number, ppiName: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update4(likelihoodId: number, ppiName: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update4(likelihoodId: number, ppiName: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update4(likelihoodId: number, ppiName: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (likelihoodId === null || likelihoodId === undefined) { + throw new Error('Required parameter likelihoodId was null or undefined when calling update4.'); + } + if (ppiName === null || ppiName === undefined) { + throw new Error('Required parameter ppiName was null or undefined when calling update4.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/likelihood/${this.configuration.encodeParam({name: "ppiName", value: ppiName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "likelihoodId", value: likelihoodId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/listReportMailingJobHistory.service.ts b/packages/fineract-client/src/services/listReportMailingJobHistory.service.ts new file mode 100644 index 0000000000..4372e8aa57 --- /dev/null +++ b/packages/fineract-client/src/services/listReportMailingJobHistory.service.ts @@ -0,0 +1,190 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ReportMailingJobRunHistoryData } from '../models/reportMailingJobRunHistoryData'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ListReportMailingJobHistoryService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * List Report Mailing Job History + * The list capability of report mailing job history can support pagination and sorting. Example Requests: reportmailingjobrunhistory/1 + * @param reportMailingJobId reportMailingJobId + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllByReportMailingJobId(reportMailingJobId?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllByReportMailingJobId(reportMailingJobId?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllByReportMailingJobId(reportMailingJobId?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllByReportMailingJobId(reportMailingJobId?: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (reportMailingJobId !== undefined && reportMailingJobId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + reportMailingJobId, 'reportMailingJobId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reportmailingjobrunhistory`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/loanAccountLock.service.ts b/packages/fineract-client/src/services/loanAccountLock.service.ts new file mode 100644 index 0000000000..4d2698a426 --- /dev/null +++ b/packages/fineract-client/src/services/loanAccountLock.service.ts @@ -0,0 +1,175 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetLoanAccountLockResponse } from '../models/getLoanAccountLockResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LoanAccountLockService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * List locked loan accounts + * Returns the locked loan IDs + * @param page + * @param limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLockedAccounts(page?: string, limit?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLockedAccounts(page?: string, limit?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveLockedAccounts(page?: string, limit?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveLockedAccounts(page?: string, limit?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/locked`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/loanCOBCatchUp.service.ts b/packages/fineract-client/src/services/loanCOBCatchUp.service.ts new file mode 100644 index 0000000000..f85e8fbd79 --- /dev/null +++ b/packages/fineract-client/src/services/loanCOBCatchUp.service.ts @@ -0,0 +1,299 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetOldestCOBProcessedLoanResponse } from '../models/getOldestCOBProcessedLoanResponse'; +// @ts-ignore +import { IsCatchUpRunningResponse } from '../models/isCatchUpRunningResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LoanCOBCatchUpService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Executes Loan COB Catch Up + * Executes the Loan COB job on every day from the oldest Loan to the current COB business date + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeLoanCOBCatchUp(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public executeLoanCOBCatchUp(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public executeLoanCOBCatchUp(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public executeLoanCOBCatchUp(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/catch-up`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves the oldest COB processed loan + * Retrieves the COB business date and the oldest COB processed loan + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getOldestCOBProcessedLoan(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getOldestCOBProcessedLoan(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getOldestCOBProcessedLoan(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getOldestCOBProcessedLoan(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/oldest-cob-closed`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves whether Loan COB catch up is running + * Retrieves whether Loan COB catch up is running, and the current execution date if it is running. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public isCatchUpRunning(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public isCatchUpRunning(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public isCatchUpRunning(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public isCatchUpRunning(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/is-catch-up-running`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/loanCharges.service.ts b/packages/fineract-client/src/services/loanCharges.service.ts new file mode 100644 index 0000000000..412932cd87 --- /dev/null +++ b/packages/fineract-client/src/services/loanCharges.service.ts @@ -0,0 +1,1946 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteLoansLoanIdChargesChargeIdResponse } from '../models/deleteLoansLoanIdChargesChargeIdResponse'; +// @ts-ignore +import { GetLoansLoanIdChargesChargeIdResponse } from '../models/getLoansLoanIdChargesChargeIdResponse'; +// @ts-ignore +import { GetLoansLoanIdChargesTemplateResponse } from '../models/getLoansLoanIdChargesTemplateResponse'; +// @ts-ignore +import { PostLoansLoanIdChargesChargeIdRequest } from '../models/postLoansLoanIdChargesChargeIdRequest'; +// @ts-ignore +import { PostLoansLoanIdChargesChargeIdResponse } from '../models/postLoansLoanIdChargesChargeIdResponse'; +// @ts-ignore +import { PostLoansLoanIdChargesRequest } from '../models/postLoansLoanIdChargesRequest'; +// @ts-ignore +import { PostLoansLoanIdChargesResponse } from '../models/postLoansLoanIdChargesResponse'; +// @ts-ignore +import { PutLoansLoanIdChargesChargeIdRequest } from '../models/putLoansLoanIdChargesChargeIdRequest'; +// @ts-ignore +import { PutLoansLoanIdChargesChargeIdResponse } from '../models/putLoansLoanIdChargesChargeIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LoanChargesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Delete a Loan Charge + * Note: Currently, A Loan Charge may only be removed from Loans that are not yet approved. + * @param loanId loanId + * @param loanChargeId loanChargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteLoanCharge(loanId: number, loanChargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteLoanCharge(loanId: number, loanChargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanCharge(loanId: number, loanChargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanCharge(loanId: number, loanChargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling deleteLoanCharge.'); + } + if (loanChargeId === null || loanChargeId === undefined) { + throw new Error('Required parameter loanChargeId was null or undefined when calling deleteLoanCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "loanChargeId", value: loanChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Loan Charge + * Note: Currently, A Loan Charge may only be removed from Loans that are not yet approved. + * @param loanId loanId + * @param loanChargeExternalId loanChargeExternalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteLoanCharge1(loanId: number, loanChargeExternalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteLoanCharge1(loanId: number, loanChargeExternalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanCharge1(loanId: number, loanChargeExternalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanCharge1(loanId: number, loanChargeExternalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling deleteLoanCharge1.'); + } + if (loanChargeExternalId === null || loanChargeExternalId === undefined) { + throw new Error('Required parameter loanChargeExternalId was null or undefined when calling deleteLoanCharge1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/external-id/${this.configuration.encodeParam({name: "loanChargeExternalId", value: loanChargeExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Loan Charge + * Note: Currently, A Loan Charge may only be removed from Loans that are not yet approved. + * @param loanExternalId loanExternalId + * @param loanChargeId loanChargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteLoanCharge2(loanExternalId: string, loanChargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteLoanCharge2(loanExternalId: string, loanChargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanCharge2(loanExternalId: string, loanChargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanCharge2(loanExternalId: string, loanChargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling deleteLoanCharge2.'); + } + if (loanChargeId === null || loanChargeId === undefined) { + throw new Error('Required parameter loanChargeId was null or undefined when calling deleteLoanCharge2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges/${this.configuration.encodeParam({name: "loanChargeId", value: loanChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Loan Charge + * Note: Currently, A Loan Charge may only be removed from Loans that are not yet approved. + * @param loanExternalId loanExternalId + * @param loanChargeExternalId loanChargeExternalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteLoanCharge3(loanExternalId: string, loanChargeExternalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteLoanCharge3(loanExternalId: string, loanChargeExternalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanCharge3(loanExternalId: string, loanChargeExternalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanCharge3(loanExternalId: string, loanChargeExternalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling deleteLoanCharge3.'); + } + if (loanChargeExternalId === null || loanChargeExternalId === undefined) { + throw new Error('Required parameter loanChargeExternalId was null or undefined when calling deleteLoanCharge3.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges/external-id/${this.configuration.encodeParam({name: "loanChargeExternalId", value: loanChargeExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create a Loan Charge (no command provided) or Pay a charge (command=pay) + * Creates a Loan Charge | Pay a Loan Charge + * @param loanId loanId + * @param postLoansLoanIdChargesRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeLoanCharge(loanId: number, postLoansLoanIdChargesRequest: PostLoansLoanIdChargesRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public executeLoanCharge(loanId: number, postLoansLoanIdChargesRequest: PostLoansLoanIdChargesRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge(loanId: number, postLoansLoanIdChargesRequest: PostLoansLoanIdChargesRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge(loanId: number, postLoansLoanIdChargesRequest: PostLoansLoanIdChargesRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling executeLoanCharge.'); + } + if (postLoansLoanIdChargesRequest === null || postLoansLoanIdChargesRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdChargesRequest was null or undefined when calling executeLoanCharge.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdChargesRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create a Loan Charge (no command provided) or Pay a charge (command=pay) + * Creates a Loan Charge | Pay a Loan Charge + * @param loanExternalId loanExternalId + * @param postLoansLoanIdChargesRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeLoanCharge1(loanExternalId: string, postLoansLoanIdChargesRequest: PostLoansLoanIdChargesRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public executeLoanCharge1(loanExternalId: string, postLoansLoanIdChargesRequest: PostLoansLoanIdChargesRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge1(loanExternalId: string, postLoansLoanIdChargesRequest: PostLoansLoanIdChargesRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge1(loanExternalId: string, postLoansLoanIdChargesRequest: PostLoansLoanIdChargesRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling executeLoanCharge1.'); + } + if (postLoansLoanIdChargesRequest === null || postLoansLoanIdChargesRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdChargesRequest was null or undefined when calling executeLoanCharge1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdChargesRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Pay / Waive / Adjustment for Loan Charge + * Loan Charge will be paid if the loan is linked with a savings account | Waive Loan Charge | Add Charge Adjustment + * @param loanId loanId + * @param loanChargeId loanChargeId + * @param postLoansLoanIdChargesChargeIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeLoanCharge2(loanId: number, loanChargeId: number, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public executeLoanCharge2(loanId: number, loanChargeId: number, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge2(loanId: number, loanChargeId: number, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge2(loanId: number, loanChargeId: number, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling executeLoanCharge2.'); + } + if (loanChargeId === null || loanChargeId === undefined) { + throw new Error('Required parameter loanChargeId was null or undefined when calling executeLoanCharge2.'); + } + if (postLoansLoanIdChargesChargeIdRequest === null || postLoansLoanIdChargesChargeIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdChargesChargeIdRequest was null or undefined when calling executeLoanCharge2.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "loanChargeId", value: loanChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdChargesChargeIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Pay / Waive / Adjustment for Loan Charge + * Loan Charge will be paid if the loan is linked with a savings account | Waive Loan Charge | Add Charge Adjustment + * @param loanId loanId + * @param loanChargeExternalId loanChargeExternalId + * @param postLoansLoanIdChargesChargeIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeLoanCharge3(loanId: number, loanChargeExternalId: string, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public executeLoanCharge3(loanId: number, loanChargeExternalId: string, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge3(loanId: number, loanChargeExternalId: string, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge3(loanId: number, loanChargeExternalId: string, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling executeLoanCharge3.'); + } + if (loanChargeExternalId === null || loanChargeExternalId === undefined) { + throw new Error('Required parameter loanChargeExternalId was null or undefined when calling executeLoanCharge3.'); + } + if (postLoansLoanIdChargesChargeIdRequest === null || postLoansLoanIdChargesChargeIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdChargesChargeIdRequest was null or undefined when calling executeLoanCharge3.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/external-id/${this.configuration.encodeParam({name: "loanChargeExternalId", value: loanChargeExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdChargesChargeIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Pay / Waive / Adjustment for Loan Charge + * Loan Charge will be paid if the loan is linked with a savings account | Waive Loan Charge | Add Charge Adjustment + * @param loanExternalId loanExternalId + * @param loanChargeId loanChargeId + * @param postLoansLoanIdChargesChargeIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeLoanCharge4(loanExternalId: string, loanChargeId: number, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public executeLoanCharge4(loanExternalId: string, loanChargeId: number, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge4(loanExternalId: string, loanChargeId: number, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge4(loanExternalId: string, loanChargeId: number, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling executeLoanCharge4.'); + } + if (loanChargeId === null || loanChargeId === undefined) { + throw new Error('Required parameter loanChargeId was null or undefined when calling executeLoanCharge4.'); + } + if (postLoansLoanIdChargesChargeIdRequest === null || postLoansLoanIdChargesChargeIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdChargesChargeIdRequest was null or undefined when calling executeLoanCharge4.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges/${this.configuration.encodeParam({name: "loanChargeId", value: loanChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdChargesChargeIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Pay / Waive / Adjustment for Loan Charge + * Loan Charge will be paid if the loan is linked with a savings account | Waive Loan Charge | Add Charge Adjustment + * @param loanExternalId loanExternalId + * @param loanChargeExternalId loanChargeExternalId + * @param postLoansLoanIdChargesChargeIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeLoanCharge5(loanExternalId: string, loanChargeExternalId: string, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public executeLoanCharge5(loanExternalId: string, loanChargeExternalId: string, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge5(loanExternalId: string, loanChargeExternalId: string, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanCharge5(loanExternalId: string, loanChargeExternalId: string, postLoansLoanIdChargesChargeIdRequest: PostLoansLoanIdChargesChargeIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling executeLoanCharge5.'); + } + if (loanChargeExternalId === null || loanChargeExternalId === undefined) { + throw new Error('Required parameter loanChargeExternalId was null or undefined when calling executeLoanCharge5.'); + } + if (postLoansLoanIdChargesChargeIdRequest === null || postLoansLoanIdChargesChargeIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdChargesChargeIdRequest was null or undefined when calling executeLoanCharge5.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges/external-id/${this.configuration.encodeParam({name: "loanChargeExternalId", value: loanChargeExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdChargesChargeIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Loan Charges + * It lists all the Loan Charges specific to a Loan Example Requests: loans/1/charges loans/1/charges?fields=name,amountOrPercentage + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllLoanCharges(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllLoanCharges(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllLoanCharges(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllLoanCharges(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveAllLoanCharges.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Loan Charges + * It lists all the Loan Charges specific to a Loan Example Requests: loans/1/charges loans/1/charges?fields=name,amountOrPercentage + * @param loanExternalId loanExternalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllLoanCharges1(loanExternalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllLoanCharges1(loanExternalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllLoanCharges1(loanExternalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllLoanCharges1(loanExternalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling retrieveAllLoanCharges1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan Charge + * Retrieves Loan Charge according to the Loan ID and Loan Charge IDExample Requests: /loans/1/charges/1 /loans/1/charges/1?fields=name,amountOrPercentage + * @param loanId loanId + * @param loanChargeId loanChargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoanCharge(loanId: number, loanChargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoanCharge(loanId: number, loanChargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanCharge(loanId: number, loanChargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanCharge(loanId: number, loanChargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveLoanCharge.'); + } + if (loanChargeId === null || loanChargeId === undefined) { + throw new Error('Required parameter loanChargeId was null or undefined when calling retrieveLoanCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "loanChargeId", value: loanChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan Charge + * Retrieves Loan Charge according to the Loan ID and Loan Charge External IDExample Requests: /loans/1/charges/1 /loans/1/charges/external-id/1?fields=name,amountOrPercentage + * @param loanId loanId + * @param loanChargeExternalId loanChargeExternalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoanCharge1(loanId: number, loanChargeExternalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoanCharge1(loanId: number, loanChargeExternalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanCharge1(loanId: number, loanChargeExternalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanCharge1(loanId: number, loanChargeExternalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveLoanCharge1.'); + } + if (loanChargeExternalId === null || loanChargeExternalId === undefined) { + throw new Error('Required parameter loanChargeExternalId was null or undefined when calling retrieveLoanCharge1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/external-id/${this.configuration.encodeParam({name: "loanChargeExternalId", value: loanChargeExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan Charge + * Retrieves Loan Charge according to the Loan external ID and Loan Charge IDExample Requests: /loans/1/charges/1 /loans/1/charges/1?fields=name,amountOrPercentage + * @param loanExternalId loanExternalId + * @param loanChargeId loanChargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoanCharge2(loanExternalId: string, loanChargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoanCharge2(loanExternalId: string, loanChargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanCharge2(loanExternalId: string, loanChargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanCharge2(loanExternalId: string, loanChargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling retrieveLoanCharge2.'); + } + if (loanChargeId === null || loanChargeId === undefined) { + throw new Error('Required parameter loanChargeId was null or undefined when calling retrieveLoanCharge2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges/${this.configuration.encodeParam({name: "loanChargeId", value: loanChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan Charge + * Retrieves Loan Charge according to the Loan External ID and Loan Charge External IDExample Requests: /loans/1/charges/1 /loans/1/charges/1?fields=name,amountOrPercentage + * @param loanExternalId loanExternalId + * @param loanChargeExternalId loanChargeExternalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoanCharge3(loanExternalId: string, loanChargeExternalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoanCharge3(loanExternalId: string, loanChargeExternalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanCharge3(loanExternalId: string, loanChargeExternalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanCharge3(loanExternalId: string, loanChargeExternalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling retrieveLoanCharge3.'); + } + if (loanChargeExternalId === null || loanChargeExternalId === undefined) { + throw new Error('Required parameter loanChargeExternalId was null or undefined when calling retrieveLoanCharge3.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges/external-id/${this.configuration.encodeParam({name: "loanChargeExternalId", value: loanChargeExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Loan Charges Template + * 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 Request: loans/1/charges/template + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate8(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate8(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate8(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate8(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveTemplate8.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Loan Charges Template + * 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 Request: loans/1/charges/template + * @param loanExternalId loanExternalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate9(loanExternalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate9(loanExternalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate9(loanExternalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate9(loanExternalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling retrieveTemplate9.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Loan Charge + * Currently Loan Charges may be updated only if the Loan is not yet approved + * @param loanId loanId + * @param loanChargeId loanChargeId + * @param putLoansLoanIdChargesChargeIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateLoanCharge(loanId: number, loanChargeId: number, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateLoanCharge(loanId: number, loanChargeId: number, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanCharge(loanId: number, loanChargeId: number, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanCharge(loanId: number, loanChargeId: number, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling updateLoanCharge.'); + } + if (loanChargeId === null || loanChargeId === undefined) { + throw new Error('Required parameter loanChargeId was null or undefined when calling updateLoanCharge.'); + } + if (putLoansLoanIdChargesChargeIdRequest === null || putLoansLoanIdChargesChargeIdRequest === undefined) { + throw new Error('Required parameter putLoansLoanIdChargesChargeIdRequest was null or undefined when calling updateLoanCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "loanChargeId", value: loanChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putLoansLoanIdChargesChargeIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Loan Charge + * Currently Loan Charges may be updated only if the Loan is not yet approved + * @param loanId loanId + * @param loanChargeExternalId loanChargeExternalId + * @param putLoansLoanIdChargesChargeIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateLoanCharge1(loanId: number, loanChargeExternalId: string, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateLoanCharge1(loanId: number, loanChargeExternalId: string, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanCharge1(loanId: number, loanChargeExternalId: string, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanCharge1(loanId: number, loanChargeExternalId: string, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling updateLoanCharge1.'); + } + if (loanChargeExternalId === null || loanChargeExternalId === undefined) { + throw new Error('Required parameter loanChargeExternalId was null or undefined when calling updateLoanCharge1.'); + } + if (putLoansLoanIdChargesChargeIdRequest === null || putLoansLoanIdChargesChargeIdRequest === undefined) { + throw new Error('Required parameter putLoansLoanIdChargesChargeIdRequest was null or undefined when calling updateLoanCharge1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/external-id/${this.configuration.encodeParam({name: "loanChargeExternalId", value: loanChargeExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putLoansLoanIdChargesChargeIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Loan Charge + * Currently Loan Charges may be updated only if the Loan is not yet approved + * @param loanExternalId loanExternalId + * @param loanChargeId loanChargeId + * @param putLoansLoanIdChargesChargeIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateLoanCharge2(loanExternalId: string, loanChargeId: number, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateLoanCharge2(loanExternalId: string, loanChargeId: number, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanCharge2(loanExternalId: string, loanChargeId: number, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanCharge2(loanExternalId: string, loanChargeId: number, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling updateLoanCharge2.'); + } + if (loanChargeId === null || loanChargeId === undefined) { + throw new Error('Required parameter loanChargeId was null or undefined when calling updateLoanCharge2.'); + } + if (putLoansLoanIdChargesChargeIdRequest === null || putLoansLoanIdChargesChargeIdRequest === undefined) { + throw new Error('Required parameter putLoansLoanIdChargesChargeIdRequest was null or undefined when calling updateLoanCharge2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges/${this.configuration.encodeParam({name: "loanChargeId", value: loanChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putLoansLoanIdChargesChargeIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Loan Charge + * Currently Loan Charges may be updated only if the Loan is not yet approved + * @param loanExternalId loanExternalId + * @param loanChargeExternalId loanChargeExternalId + * @param putLoansLoanIdChargesChargeIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateLoanCharge3(loanExternalId: string, loanChargeExternalId: string, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateLoanCharge3(loanExternalId: string, loanChargeExternalId: string, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanCharge3(loanExternalId: string, loanChargeExternalId: string, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanCharge3(loanExternalId: string, loanChargeExternalId: string, putLoansLoanIdChargesChargeIdRequest: PutLoansLoanIdChargesChargeIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling updateLoanCharge3.'); + } + if (loanChargeExternalId === null || loanChargeExternalId === undefined) { + throw new Error('Required parameter loanChargeExternalId was null or undefined when calling updateLoanCharge3.'); + } + if (putLoansLoanIdChargesChargeIdRequest === null || putLoansLoanIdChargesChargeIdRequest === undefined) { + throw new Error('Required parameter putLoansLoanIdChargesChargeIdRequest was null or undefined when calling updateLoanCharge3.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/charges/external-id/${this.configuration.encodeParam({name: "loanChargeExternalId", value: loanChargeExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putLoansLoanIdChargesChargeIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/loanCollateral.service.ts b/packages/fineract-client/src/services/loanCollateral.service.ts new file mode 100644 index 0000000000..c6a179efa7 --- /dev/null +++ b/packages/fineract-client/src/services/loanCollateral.service.ts @@ -0,0 +1,577 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteLoansLoanIdCollateralsCollateralIdResponse } from '../models/deleteLoansLoanIdCollateralsCollateralIdResponse'; +// @ts-ignore +import { GetLoansLoanIdCollateralsResponse } from '../models/getLoansLoanIdCollateralsResponse'; +// @ts-ignore +import { GetLoansLoanIdCollateralsTemplateResponse } from '../models/getLoansLoanIdCollateralsTemplateResponse'; +// @ts-ignore +import { PostLoansLoanIdCollateralsRequest } from '../models/postLoansLoanIdCollateralsRequest'; +// @ts-ignore +import { PostLoansLoanIdCollateralsResponse } from '../models/postLoansLoanIdCollateralsResponse'; +// @ts-ignore +import { PutLoansLoanIdCollateralsCollateralIdResponse } from '../models/putLoansLoanIdCollateralsCollateralIdResponse'; +// @ts-ignore +import { PutLoansLoandIdCollateralsCollateralIdRequest } from '../models/putLoansLoandIdCollateralsCollateralIdRequest'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LoanCollateralService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Collateral + * Note: Currently, Collaterals may be added only before a Loan is approved + * @param loanId loanId + * @param postLoansLoanIdCollateralsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCollateral(loanId: number, postLoansLoanIdCollateralsRequest: PostLoansLoanIdCollateralsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCollateral(loanId: number, postLoansLoanIdCollateralsRequest: PostLoansLoanIdCollateralsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCollateral(loanId: number, postLoansLoanIdCollateralsRequest: PostLoansLoanIdCollateralsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCollateral(loanId: number, postLoansLoanIdCollateralsRequest: PostLoansLoanIdCollateralsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling createCollateral.'); + } + if (postLoansLoanIdCollateralsRequest === null || postLoansLoanIdCollateralsRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdCollateralsRequest was null or undefined when calling createCollateral.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdCollateralsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Remove a Collateral + * Note: A collateral can only be removed from Loans that are not yet approved. + * @param loanId loanId + * @param collateralId collateralId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteCollateral(loanId: number, collateralId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteCollateral(loanId: number, collateralId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCollateral(loanId: number, collateralId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCollateral(loanId: number, collateralId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling deleteCollateral.'); + } + if (collateralId === null || collateralId === undefined) { + throw new Error('Required parameter collateralId was null or undefined when calling deleteCollateral.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals/${this.configuration.encodeParam({name: "collateralId", value: collateralId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Collateral Details Template + * 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: loans/1/collaterals/template + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public newCollateralTemplate(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public newCollateralTemplate(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public newCollateralTemplate(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public newCollateralTemplate(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling newCollateralTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Loan Collaterals + * Example Requests: loans/1/collaterals loans/1/collaterals?fields=value,description + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCollateralDetails(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCollateralDetails(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveCollateralDetails(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveCollateralDetails(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveCollateralDetails.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Collateral + * Example Requests: /loans/1/collaterals/1 /loans/1/collaterals/1?fields=description,description + * @param loanId loanId + * @param collateralId collateralId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCollateralDetails1(loanId: number, collateralId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveCollateralDetails1(loanId: number, collateralId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCollateralDetails1(loanId: number, collateralId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCollateralDetails1(loanId: number, collateralId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveCollateralDetails1.'); + } + if (collateralId === null || collateralId === undefined) { + throw new Error('Required parameter collateralId was null or undefined when calling retrieveCollateralDetails1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals/${this.configuration.encodeParam({name: "collateralId", value: collateralId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Collateral + * @param loanId loanId + * @param collateralId collateralId + * @param putLoansLoandIdCollateralsCollateralIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCollateral(loanId: number, collateralId: number, putLoansLoandIdCollateralsCollateralIdRequest: PutLoansLoandIdCollateralsCollateralIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCollateral(loanId: number, collateralId: number, putLoansLoandIdCollateralsCollateralIdRequest: PutLoansLoandIdCollateralsCollateralIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCollateral(loanId: number, collateralId: number, putLoansLoandIdCollateralsCollateralIdRequest: PutLoansLoandIdCollateralsCollateralIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCollateral(loanId: number, collateralId: number, putLoansLoandIdCollateralsCollateralIdRequest: PutLoansLoandIdCollateralsCollateralIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling updateCollateral.'); + } + if (collateralId === null || collateralId === undefined) { + throw new Error('Required parameter collateralId was null or undefined when calling updateCollateral.'); + } + if (putLoansLoandIdCollateralsCollateralIdRequest === null || putLoansLoandIdCollateralsCollateralIdRequest === undefined) { + throw new Error('Required parameter putLoansLoandIdCollateralsCollateralIdRequest was null or undefined when calling updateCollateral.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/collaterals/${this.configuration.encodeParam({name: "collateralId", value: collateralId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putLoansLoandIdCollateralsCollateralIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/loanCollateralManagement.service.ts b/packages/fineract-client/src/services/loanCollateralManagement.service.ts new file mode 100644 index 0000000000..0f35e72730 --- /dev/null +++ b/packages/fineract-client/src/services/loanCollateralManagement.service.ts @@ -0,0 +1,240 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LoanCollateralManagementService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Delete Loan Collateral + * Delete Loan Collateral + * @param loanId loanId + * @param id loan collateral id + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteLoanCollateral(loanId: number, id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteLoanCollateral(loanId: number, id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanCollateral(loanId: number, id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanCollateral(loanId: number, id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling deleteLoanCollateral.'); + } + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling deleteLoanCollateral.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loan-collateral-management/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Get Loan Collateral Details + * Get Loan Collateral Details + * @param collateralId collateralId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getLoanCollateral(collateralId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getLoanCollateral(collateralId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getLoanCollateral(collateralId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getLoanCollateral(collateralId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (collateralId === null || collateralId === undefined) { + throw new Error('Required parameter collateralId was null or undefined when calling getLoanCollateral.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loan-collateral-management/${this.configuration.encodeParam({name: "collateralId", value: collateralId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/loanDisbursementDetails.service.ts b/packages/fineract-client/src/services/loanDisbursementDetails.service.ts new file mode 100644 index 0000000000..1ebe03c9c3 --- /dev/null +++ b/packages/fineract-client/src/services/loanDisbursementDetails.service.ts @@ -0,0 +1,332 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LoanDisbursementDetailsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param loanId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addAndDeleteDisbursementDetail(loanId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public addAndDeleteDisbursementDetail(loanId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addAndDeleteDisbursementDetail(loanId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addAndDeleteDisbursementDetail(loanId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling addAndDeleteDisbursementDetail.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/disbursements/editDisbursements`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param disbursementId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retriveDetail(loanId: number, disbursementId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retriveDetail(loanId: number, disbursementId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retriveDetail(loanId: number, disbursementId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retriveDetail(loanId: number, disbursementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retriveDetail.'); + } + if (disbursementId === null || disbursementId === undefined) { + throw new Error('Required parameter disbursementId was null or undefined when calling retriveDetail.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/disbursements/${this.configuration.encodeParam({name: "disbursementId", value: disbursementId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param disbursementId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateDisbursementDate(loanId: number, disbursementId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateDisbursementDate(loanId: number, disbursementId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDisbursementDate(loanId: number, disbursementId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDisbursementDate(loanId: number, disbursementId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling updateDisbursementDate.'); + } + if (disbursementId === null || disbursementId === undefined) { + throw new Error('Required parameter disbursementId was null or undefined when calling updateDisbursementDate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/disbursements/${this.configuration.encodeParam({name: "disbursementId", value: disbursementId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/loanProducts.service.ts b/packages/fineract-client/src/services/loanProducts.service.ts new file mode 100644 index 0000000000..efd8bee7d7 --- /dev/null +++ b/packages/fineract-client/src/services/loanProducts.service.ts @@ -0,0 +1,648 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetLoanProductsProductIdResponse } from '../models/getLoanProductsProductIdResponse'; +// @ts-ignore +import { GetLoanProductsResponse } from '../models/getLoanProductsResponse'; +// @ts-ignore +import { GetLoanProductsTemplateResponse } from '../models/getLoanProductsTemplateResponse'; +// @ts-ignore +import { PostLoanProductsRequest } from '../models/postLoanProductsRequest'; +// @ts-ignore +import { PostLoanProductsResponse } from '../models/postLoanProductsResponse'; +// @ts-ignore +import { PutLoanProductsProductIdRequest } from '../models/putLoanProductsProductIdRequest'; +// @ts-ignore +import { PutLoanProductsProductIdResponse } from '../models/putLoanProductsProductIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LoanProductsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Loan Product + * Depending of the Accounting Rule (accountingRule) selected, additional fields with details of the appropriate Ledger Account identifiers would need to be passed in. Refer MifosX Accounting Specs Draft for more details regarding the significance of the selected accounting rule Mandatory Fields: name, shortName, currencyCode, digitsAfterDecimal, inMultiplesOf, principal, numberOfRepayments, repaymentEvery, repaymentFrequencyType, interestRatePerPeriod, interestRateFrequencyType, amortizationType, interestType, interestCalculationPeriodType, transactionProcessingStrategyCode, accountingRule, isInterestRecalculationEnabled, daysInYearType, daysInMonthType Optional Fields: inArrearsTolerance, graceOnPrincipalPayment, graceOnInterestPayment, graceOnInterestCharged, graceOnArrearsAgeing, charges, paymentChannelToFundSourceMappings, feeToIncomeAccountMappings, penaltyToIncomeAccountMappings, includeInBorrowerCycle, useBorrowerCycle,principalVariationsForBorrowerCycle, numberOfRepaymentVariationsForBorrowerCycle, interestRateVariationsForBorrowerCycle, multiDisburseLoan,maxTrancheCount, outstandingLoanBalance,overdueDaysForNPA,holdGuaranteeFunds, principalThresholdForLastInstalment, accountMovesOutOfNPAOnlyOnArrearsCompletion, canDefineInstallmentAmount, installmentAmountInMultiplesOf, allowAttributeOverrides, allowPartialPeriodInterestCalcualtion,dueDaysForRepaymentEvent,overDueDaysForRepaymentEvent Additional Mandatory Fields for Cash(2) based accounting: fundSourceAccountId, loanPortfolioAccountId, interestOnLoanAccountId, incomeFromFeeAccountId, incomeFromPenaltyAccountId, writeOffAccountId, transfersInSuspenseAccountId, overpaymentLiabilityAccountId Additional Mandatory Fields for periodic (3) and upfront (4)accrual accounting: fundSourceAccountId, loanPortfolioAccountId, interestOnLoanAccountId, incomeFromFeeAccountId, incomeFromPenaltyAccountId, writeOffAccountId, receivableInterestAccountId, receivableFeeAccountId, receivablePenaltyAccountId, transfersInSuspenseAccountId, overpaymentLiabilityAccountId Additional Mandatory Fields if interest recalculation is enabled(true): interestRecalculationCompoundingMethod, rescheduleStrategyMethod, recalculationRestFrequencyType Additional Optional Fields if interest recalculation is enabled(true): isArrearsBasedOnOriginalSchedule, preClosureInterestCalculationStrategy Additional Optional Fields if interest recalculation is enabled(true) and recalculationRestFrequencyType is not same as repayment period: recalculationRestFrequencyInterval, recalculationRestFrequencyDate Additional Optional Fields if interest recalculation is enabled(true) and interestRecalculationCompoundingMethod is enabled: recalculationCompoundingFrequencyType Additional Optional Fields if interest recalculation is enabled(true) and interestRecalculationCompoundingMethod is enabled and recalculationCompoundingFrequencyType is not same as repayment period: recalculationCompoundingFrequencyInterval, recalculationCompoundingFrequencyDate Additional Mandatory Fields if Hold Guarantee funds is enabled(true): mandatoryGuarantee Additional Optional Fields if Hold Guarantee funds is enabled(true): minimumGuaranteeFromOwnFunds,minimumGuaranteeFromGuarantor + * @param postLoanProductsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createLoanProduct(postLoanProductsRequest: PostLoanProductsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createLoanProduct(postLoanProductsRequest: PostLoanProductsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createLoanProduct(postLoanProductsRequest: PostLoanProductsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createLoanProduct(postLoanProductsRequest: PostLoanProductsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postLoanProductsRequest === null || postLoanProductsRequest === undefined) { + throw new Error('Required parameter postLoanProductsRequest was null or undefined when calling createLoanProduct.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoanProductsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Loan Products + * Lists Loan Products Example Requests: loanproducts loanproducts?fields=name,description,interestRateFrequencyType,amortizationType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllLoanProducts(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllLoanProducts(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllLoanProducts(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllLoanProducts(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan Product + * Retrieves a Loan Product Example Requests: loanproducts/1 loanproducts/1?template=true loanproducts/1?fields=name,description,numberOfRepayments + * @param productId productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoanProductDetails(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoanProductDetails(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanProductDetails(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanProductDetails(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveLoanProductDetails.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan Product + * Retrieves a Loan Product Example Requests: loanproducts/external-id/2075e308-d4a8-44d9-8203-f5a947b8c2f4 loanproducts/external-id/2075e308-d4a8-44d9-8203-f5a947b8c2f4?template=true loanproducts/external-id/2075e308-d4a8-44d9-8203-f5a947b8c2f4?fields=name,description,numberOfRepayments + * @param externalProductId externalProductId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoanProductDetails1(externalProductId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoanProductDetails1(externalProductId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanProductDetails1(externalProductId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanProductDetails1(externalProductId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (externalProductId === null || externalProductId === undefined) { + throw new Error('Required parameter externalProductId was null or undefined when calling retrieveLoanProductDetails1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts/external-id/${this.configuration.encodeParam({name: "externalProductId", value: externalProductId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Loan Product Details Template + * 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 Request: loanproducts/template + * @param isProductMixTemplate isProductMixTemplate + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate11(isProductMixTemplate?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate11(isProductMixTemplate?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate11(isProductMixTemplate?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate11(isProductMixTemplate?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (isProductMixTemplate !== undefined && isProductMixTemplate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + isProductMixTemplate, 'isProductMixTemplate'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Loan Product + * Updates a Loan Product + * @param productId productId + * @param putLoanProductsProductIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateLoanProduct(productId: number, putLoanProductsProductIdRequest: PutLoanProductsProductIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateLoanProduct(productId: number, putLoanProductsProductIdRequest: PutLoanProductsProductIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanProduct(productId: number, putLoanProductsProductIdRequest: PutLoanProductsProductIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanProduct(productId: number, putLoanProductsProductIdRequest: PutLoanProductsProductIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling updateLoanProduct.'); + } + if (putLoanProductsProductIdRequest === null || putLoanProductsProductIdRequest === undefined) { + throw new Error('Required parameter putLoanProductsProductIdRequest was null or undefined when calling updateLoanProduct.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putLoanProductsProductIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Loan Product + * Updates a Loan Product + * @param externalProductId externalProductId + * @param putLoanProductsProductIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateLoanProduct1(externalProductId: string, putLoanProductsProductIdRequest: PutLoanProductsProductIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateLoanProduct1(externalProductId: string, putLoanProductsProductIdRequest: PutLoanProductsProductIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanProduct1(externalProductId: string, putLoanProductsProductIdRequest: PutLoanProductsProductIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanProduct1(externalProductId: string, putLoanProductsProductIdRequest: PutLoanProductsProductIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (externalProductId === null || externalProductId === undefined) { + throw new Error('Required parameter externalProductId was null or undefined when calling updateLoanProduct1.'); + } + if (putLoanProductsProductIdRequest === null || putLoanProductsProductIdRequest === undefined) { + throw new Error('Required parameter putLoanProductsProductIdRequest was null or undefined when calling updateLoanProduct1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts/external-id/${this.configuration.encodeParam({name: "externalProductId", value: externalProductId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putLoanProductsProductIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/loanRescheduling.service.ts b/packages/fineract-client/src/services/loanRescheduling.service.ts new file mode 100644 index 0000000000..41c14521c0 --- /dev/null +++ b/packages/fineract-client/src/services/loanRescheduling.service.ts @@ -0,0 +1,188 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { PostLoansLoanIdScheduleResponse } from '../models/postLoansLoanIdScheduleResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LoanReschedulingService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Calculate loan repayment schedule based on Loan term variations | Updates loan repayment schedule based on Loan term variations | Updates loan repayment schedule by removing Loan term variations + * Calculate loan repayment schedule based on Loan term variations: Mandatory Fields: exceptions,locale,dateFormat Updates loan repayment schedule based on Loan term variations: Mandatory Fields: exceptions,locale,dateFormat Updates loan repayment schedule by removing Loan term variations: It updates the loan repayment schedule by removing Loan term variations Showing request/response for \'Updates loan repayment schedule by removing Loan term variations\' + * @param loanId loanId + * @param body + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public calculateLoanScheduleOrSubmitVariableSchedule(loanId: number, body: object, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public calculateLoanScheduleOrSubmitVariableSchedule(loanId: number, body: object, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public calculateLoanScheduleOrSubmitVariableSchedule(loanId: number, body: object, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public calculateLoanScheduleOrSubmitVariableSchedule(loanId: number, body: object, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling calculateLoanScheduleOrSubmitVariableSchedule.'); + } + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling calculateLoanScheduleOrSubmitVariableSchedule.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/schedule`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/loanTransactions.service.ts b/packages/fineract-client/src/services/loanTransactions.service.ts new file mode 100644 index 0000000000..71b665627f --- /dev/null +++ b/packages/fineract-client/src/services/loanTransactions.service.ts @@ -0,0 +1,1572 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetLoansLoanIdTransactionsTemplateResponse } from '../models/getLoansLoanIdTransactionsTemplateResponse'; +// @ts-ignore +import { GetLoansLoanIdTransactionsTransactionIdResponse } from '../models/getLoansLoanIdTransactionsTransactionIdResponse'; +// @ts-ignore +import { PostLoansLoanIdTransactionsRequest } from '../models/postLoansLoanIdTransactionsRequest'; +// @ts-ignore +import { PostLoansLoanIdTransactionsResponse } from '../models/postLoansLoanIdTransactionsResponse'; +// @ts-ignore +import { PostLoansLoanIdTransactionsTransactionIdRequest } from '../models/postLoansLoanIdTransactionsTransactionIdRequest'; +// @ts-ignore +import { PutChargeTransactionChangesRequest } from '../models/putChargeTransactionChangesRequest'; +// @ts-ignore +import { PutChargeTransactionChangesResponse } from '../models/putChargeTransactionChangesResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LoanTransactionsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Adjust a Transaction + * Note: there is no need to specify command={transactionType} parameter. Mandatory Fields: transactionDate, transactionAmount + * @param loanId loanId + * @param transactionId transactionId + * @param postLoansLoanIdTransactionsTransactionIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adjustLoanTransaction(loanId: number, transactionId: number, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public adjustLoanTransaction(loanId: number, transactionId: number, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustLoanTransaction(loanId: number, transactionId: number, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustLoanTransaction(loanId: number, transactionId: number, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling adjustLoanTransaction.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling adjustLoanTransaction.'); + } + if (postLoansLoanIdTransactionsTransactionIdRequest === null || postLoansLoanIdTransactionsTransactionIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdTransactionsTransactionIdRequest was null or undefined when calling adjustLoanTransaction.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdTransactionsTransactionIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Adjust a Transaction + * Note: there is no need to specify command={transactionType} parameter. Mandatory Fields: transactionDate, transactionAmount + * @param loanId loanId + * @param externalTransactionId externalTransactionId + * @param postLoansLoanIdTransactionsTransactionIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adjustLoanTransaction1(loanId: number, externalTransactionId: string, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public adjustLoanTransaction1(loanId: number, externalTransactionId: string, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustLoanTransaction1(loanId: number, externalTransactionId: string, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustLoanTransaction1(loanId: number, externalTransactionId: string, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling adjustLoanTransaction1.'); + } + if (externalTransactionId === null || externalTransactionId === undefined) { + throw new Error('Required parameter externalTransactionId was null or undefined when calling adjustLoanTransaction1.'); + } + if (postLoansLoanIdTransactionsTransactionIdRequest === null || postLoansLoanIdTransactionsTransactionIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdTransactionsTransactionIdRequest was null or undefined when calling adjustLoanTransaction1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/external-id/${this.configuration.encodeParam({name: "externalTransactionId", value: externalTransactionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdTransactionsTransactionIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Adjust a Transaction + * Note: there is no need to specify command={transactionType} parameter. Mandatory Fields: transactionDate, transactionAmount + * @param loanExternalId loanExternalId + * @param transactionId transactionId + * @param postLoansLoanIdTransactionsTransactionIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adjustLoanTransaction2(loanExternalId: string, transactionId: number, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public adjustLoanTransaction2(loanExternalId: string, transactionId: number, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustLoanTransaction2(loanExternalId: string, transactionId: number, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustLoanTransaction2(loanExternalId: string, transactionId: number, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling adjustLoanTransaction2.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling adjustLoanTransaction2.'); + } + if (postLoansLoanIdTransactionsTransactionIdRequest === null || postLoansLoanIdTransactionsTransactionIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdTransactionsTransactionIdRequest was null or undefined when calling adjustLoanTransaction2.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdTransactionsTransactionIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Adjust a Transaction + * Note: there is no need to specify command={transactionType} parameter. Mandatory Fields: transactionDate, transactionAmount + * @param loanExternalId loanExternalId + * @param externalTransactionId externalTransactionId + * @param postLoansLoanIdTransactionsTransactionIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adjustLoanTransaction3(loanExternalId: string, externalTransactionId: string, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public adjustLoanTransaction3(loanExternalId: string, externalTransactionId: string, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustLoanTransaction3(loanExternalId: string, externalTransactionId: string, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustLoanTransaction3(loanExternalId: string, externalTransactionId: string, postLoansLoanIdTransactionsTransactionIdRequest: PostLoansLoanIdTransactionsTransactionIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling adjustLoanTransaction3.'); + } + if (externalTransactionId === null || externalTransactionId === undefined) { + throw new Error('Required parameter externalTransactionId was null or undefined when calling adjustLoanTransaction3.'); + } + if (postLoansLoanIdTransactionsTransactionIdRequest === null || postLoansLoanIdTransactionsTransactionIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdTransactionsTransactionIdRequest was null or undefined when calling adjustLoanTransaction3.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions/external-id/${this.configuration.encodeParam({name: "externalTransactionId", value: externalTransactionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdTransactionsTransactionIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Significant Loan Transactions + * This API covers the major loan transaction functionality Example Requests: loans/1/transactions?command=repayment | Make a Repayment | loans/1/transactions?command=merchantIssuedRefund | Merchant Issued Refund | loans/1/transactions?command=payoutRefund | Payout Refund | loans/1/transactions?command=goodwillCredit | Goodwil Credit | loans/1/transactions?command=chargeRefund | Charge Refund | loans/1/transactions?command=waiveinterest | Waive Interest | loans/1/transactions?command=writeoff | Write-off Loan | loans/1/transactions?command=close-rescheduled | Close Rescheduled Loan | loans/1/transactions?command=close | Close Loan | loans/1/transactions?command=undowriteoff | Undo Loan Write-off | loans/1/transactions?command=recoverypayment | Make Recovery Payment | loans/1/transactions?command=refundByCash | Make a Refund of an Active Loan by Cash | loans/1/transactions?command=foreclosure | Foreclosure of an Active Loan | loans/1/transactions?command=creditBalanceRefund | Credit Balance Refund | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=charge-off | Charge-off Loan | + * @param loanId loanId + * @param postLoansLoanIdTransactionsRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeLoanTransaction(loanId: number, postLoansLoanIdTransactionsRequest: PostLoansLoanIdTransactionsRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public executeLoanTransaction(loanId: number, postLoansLoanIdTransactionsRequest: PostLoansLoanIdTransactionsRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanTransaction(loanId: number, postLoansLoanIdTransactionsRequest: PostLoansLoanIdTransactionsRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanTransaction(loanId: number, postLoansLoanIdTransactionsRequest: PostLoansLoanIdTransactionsRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling executeLoanTransaction.'); + } + if (postLoansLoanIdTransactionsRequest === null || postLoansLoanIdTransactionsRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdTransactionsRequest was null or undefined when calling executeLoanTransaction.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdTransactionsRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Significant Loan Transactions + * This API covers the major loan transaction functionality Example Requests: loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=repayment | Make a Repayment | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=merchantIssuedRefund | Merchant Issued Refund | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=payoutRefund | Payout Refund | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=goodwillCredit | Goodwil Credit | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=chargeRefund | Charge Refund | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=waiveinterest | Waive Interest | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=writeoff | Write-off Loan | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=close-rescheduled | Close Rescheduled Loan | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=close | Close Loan | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=undowriteoff | Undo Loan Write-off | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=recoverypayment | Make Recovery Payment | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=refundByCash | Make a Refund of an Active Loan by Cash | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=foreclosure | Foreclosure of an Active Loan | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=creditBalanceRefund | Credit Balance Refund | loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions?command=charge-off | Charge-off Loan | + * @param loanExternalId loanExternalId + * @param postLoansLoanIdTransactionsRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeLoanTransaction1(loanExternalId: string, postLoansLoanIdTransactionsRequest: PostLoansLoanIdTransactionsRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public executeLoanTransaction1(loanExternalId: string, postLoansLoanIdTransactionsRequest: PostLoansLoanIdTransactionsRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanTransaction1(loanExternalId: string, postLoansLoanIdTransactionsRequest: PostLoansLoanIdTransactionsRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public executeLoanTransaction1(loanExternalId: string, postLoansLoanIdTransactionsRequest: PostLoansLoanIdTransactionsRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling executeLoanTransaction1.'); + } + if (postLoansLoanIdTransactionsRequest === null || postLoansLoanIdTransactionsRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdTransactionsRequest was null or undefined when calling executeLoanTransaction1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdTransactionsRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Transaction Details + * Retrieves a Transaction Details Example Request: loans/5/transactions/3 + * @param loanId loanId + * @param transactionId transactionId + * @param fields Optional Loan Transaction attribute list to be in the response + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTransaction(loanId: number, transactionId: number, fields?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTransaction(loanId: number, transactionId: number, fields?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransaction(loanId: number, transactionId: number, fields?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransaction(loanId: number, transactionId: number, fields?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveTransaction.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling retrieveTransaction.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (fields !== undefined && fields !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fields, 'fields'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Transaction Details + * Retrieves a Transaction Details Example Request: loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854/transactions/external-id/5dd80a7c-ccba-4446-b378-01eb6f53e871 + * @param loanExternalId loanExternalId + * @param externalTransactionId externalTransactionId + * @param fields Optional Loan Transaction attribute list to be in the response + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTransactionByLoanExternalIdAndTransactionExternalId(loanExternalId: string, externalTransactionId: string, fields?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTransactionByLoanExternalIdAndTransactionExternalId(loanExternalId: string, externalTransactionId: string, fields?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransactionByLoanExternalIdAndTransactionExternalId(loanExternalId: string, externalTransactionId: string, fields?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransactionByLoanExternalIdAndTransactionExternalId(loanExternalId: string, externalTransactionId: string, fields?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling retrieveTransactionByLoanExternalIdAndTransactionExternalId.'); + } + if (externalTransactionId === null || externalTransactionId === undefined) { + throw new Error('Required parameter externalTransactionId was null or undefined when calling retrieveTransactionByLoanExternalIdAndTransactionExternalId.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (fields !== undefined && fields !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fields, 'fields'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions/external-id/${this.configuration.encodeParam({name: "externalTransactionId", value: externalTransactionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Transaction Details + * Retrieves a Transaction Details Example Request: loans/5/transactions/3 + * @param loanExternalId loanExternalId + * @param transactionId transactionId + * @param fields Optional Loan Transaction attribute list to be in the response + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTransactionByLoanExternalIdAndTransactionId(loanExternalId: string, transactionId: number, fields?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTransactionByLoanExternalIdAndTransactionId(loanExternalId: string, transactionId: number, fields?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransactionByLoanExternalIdAndTransactionId(loanExternalId: string, transactionId: number, fields?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransactionByLoanExternalIdAndTransactionId(loanExternalId: string, transactionId: number, fields?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling retrieveTransactionByLoanExternalIdAndTransactionId.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling retrieveTransactionByLoanExternalIdAndTransactionId.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (fields !== undefined && fields !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fields, 'fields'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Transaction Details + * Retrieves a Transaction Details Example Request: loans/5/transactions/external-id/5dd80a7c-ccba-4446-b378-01eb6f53e871 + * @param loanId loanId + * @param externalTransactionId externalTransactionId + * @param fields Optional Loan Transaction attribute list to be in the response + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTransactionByTransactionExternalId(loanId: number, externalTransactionId: string, fields?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTransactionByTransactionExternalId(loanId: number, externalTransactionId: string, fields?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransactionByTransactionExternalId(loanId: number, externalTransactionId: string, fields?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransactionByTransactionExternalId(loanId: number, externalTransactionId: string, fields?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveTransactionByTransactionExternalId.'); + } + if (externalTransactionId === null || externalTransactionId === undefined) { + throw new Error('Required parameter externalTransactionId was null or undefined when calling retrieveTransactionByTransactionExternalId.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (fields !== undefined && fields !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fields, 'fields'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/external-id/${this.configuration.encodeParam({name: "externalTransactionId", value: externalTransactionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Loan Transaction Template + * 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 Requests: loans/1/transactions/template?command=repaymentloans/1/transactions/template?command=merchantIssuedRefundloans/1/transactions/template?command=payoutRefundloans/1/transactions/template?command=goodwillCredit loans/1/transactions/template?command=waiveinterest loans/1/transactions/template?command=writeoff loans/1/transactions/template?command=close-rescheduled loans/1/transactions/template?command=close loans/1/transactions/template?command=disburse loans/1/transactions/template?command=disburseToSavings loans/1/transactions/template?command=recoverypayment loans/1/transactions/template?command=prepayLoan loans/1/transactions/template?command=refundbycash loans/1/transactions/template?command=refundbytransfer loans/1/transactions/template?command=foreclosure loans/1/transactions/template?command=creditBalanceRefund (returned \'amount\' field will have the overpaid value) loans/1/transactions/template?command=charge-off + * @param loanId loanId + * @param command command + * @param dateFormat dateFormat + * @param transactionDate transactionDate + * @param locale locale + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTransactionTemplate(loanId: number, command?: string, dateFormat?: string, transactionDate?: object, locale?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTransactionTemplate(loanId: number, command?: string, dateFormat?: string, transactionDate?: object, locale?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransactionTemplate(loanId: number, command?: string, dateFormat?: string, transactionDate?: object, locale?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransactionTemplate(loanId: number, command?: string, dateFormat?: string, transactionDate?: object, locale?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveTransactionTemplate.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + if (transactionDate !== undefined && transactionDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + transactionDate, 'transactionDate'); + } + if (locale !== undefined && locale !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + locale, 'locale'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Loan Transaction Template + * 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 Requests: loans/1/transactions/template?command=repaymentloans/1/transactions/template?command=merchantIssuedRefundloans/1/transactions/template?command=payoutRefundloans/1/transactions/template?command=goodwillCredit loans/1/transactions/template?command=waiveinterest loans/1/transactions/template?command=writeoff loans/1/transactions/template?command=close-rescheduled loans/1/transactions/template?command=close loans/1/transactions/template?command=disburse loans/1/transactions/template?command=disburseToSavings loans/1/transactions/template?command=recoverypayment loans/1/transactions/template?command=prepayLoan loans/1/transactions/template?command=refundbycash loans/1/transactions/template?command=refundbytransfer loans/1/transactions/template?command=foreclosure loans/1/transactions/template?command=creditBalanceRefund (returned \'amount\' field will have the overpaid value) loans/1/transactions/template?command=charge-off + * @param loanExternalId loanExternalId + * @param command command + * @param dateFormat dateFormat + * @param transactionDate transactionDate + * @param locale locale + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTransactionTemplate1(loanExternalId: string, command?: string, dateFormat?: string, transactionDate?: object, locale?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTransactionTemplate1(loanExternalId: string, command?: string, dateFormat?: string, transactionDate?: object, locale?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransactionTemplate1(loanExternalId: string, command?: string, dateFormat?: string, transactionDate?: object, locale?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransactionTemplate1(loanExternalId: string, command?: string, dateFormat?: string, transactionDate?: object, locale?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling retrieveTransactionTemplate1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + if (transactionDate !== undefined && transactionDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + transactionDate, 'transactionDate'); + } + if (locale !== undefined && locale !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + locale, 'locale'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Undo a Waive Charge Transaction + * Undo a Waive Charge Transaction + * @param loanId loanId + * @param transactionId transactionId + * @param putChargeTransactionChangesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public undoWaiveCharge(loanId: number, transactionId: number, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public undoWaiveCharge(loanId: number, transactionId: number, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoWaiveCharge(loanId: number, transactionId: number, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoWaiveCharge(loanId: number, transactionId: number, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling undoWaiveCharge.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling undoWaiveCharge.'); + } + if (putChargeTransactionChangesRequest === null || putChargeTransactionChangesRequest === undefined) { + throw new Error('Required parameter putChargeTransactionChangesRequest was null or undefined when calling undoWaiveCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putChargeTransactionChangesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Undo a Waive Charge Transaction + * Undo a Waive Charge Transaction + * @param loanId loanId + * @param transactionExternalId transactionExternalId + * @param putChargeTransactionChangesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public undoWaiveCharge1(loanId: number, transactionExternalId: string, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public undoWaiveCharge1(loanId: number, transactionExternalId: string, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoWaiveCharge1(loanId: number, transactionExternalId: string, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoWaiveCharge1(loanId: number, transactionExternalId: string, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling undoWaiveCharge1.'); + } + if (transactionExternalId === null || transactionExternalId === undefined) { + throw new Error('Required parameter transactionExternalId was null or undefined when calling undoWaiveCharge1.'); + } + if (putChargeTransactionChangesRequest === null || putChargeTransactionChangesRequest === undefined) { + throw new Error('Required parameter putChargeTransactionChangesRequest was null or undefined when calling undoWaiveCharge1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/external-id/${this.configuration.encodeParam({name: "transactionExternalId", value: transactionExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putChargeTransactionChangesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Undo a Waive Charge Transaction + * Undo a Waive Charge Transaction + * @param loanExternalId loanExternalId + * @param transactionId transactionId + * @param putChargeTransactionChangesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public undoWaiveCharge2(loanExternalId: string, transactionId: number, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public undoWaiveCharge2(loanExternalId: string, transactionId: number, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoWaiveCharge2(loanExternalId: string, transactionId: number, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoWaiveCharge2(loanExternalId: string, transactionId: number, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling undoWaiveCharge2.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling undoWaiveCharge2.'); + } + if (putChargeTransactionChangesRequest === null || putChargeTransactionChangesRequest === undefined) { + throw new Error('Required parameter putChargeTransactionChangesRequest was null or undefined when calling undoWaiveCharge2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putChargeTransactionChangesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Undo a Waive Charge Transaction + * Undo a Waive Charge Transaction + * @param loanExternalId loanExternalId + * @param transactionExternalId transactionExternalId + * @param putChargeTransactionChangesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public undoWaiveCharge3(loanExternalId: string, transactionExternalId: string, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public undoWaiveCharge3(loanExternalId: string, transactionExternalId: string, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoWaiveCharge3(loanExternalId: string, transactionExternalId: string, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public undoWaiveCharge3(loanExternalId: string, transactionExternalId: string, putChargeTransactionChangesRequest: PutChargeTransactionChangesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling undoWaiveCharge3.'); + } + if (transactionExternalId === null || transactionExternalId === undefined) { + throw new Error('Required parameter transactionExternalId was null or undefined when calling undoWaiveCharge3.'); + } + if (putChargeTransactionChangesRequest === null || putChargeTransactionChangesRequest === undefined) { + throw new Error('Required parameter putChargeTransactionChangesRequest was null or undefined when calling undoWaiveCharge3.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transactions/external-id/${this.configuration.encodeParam({name: "transactionExternalId", value: transactionExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putChargeTransactionChangesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/loans.service.ts b/packages/fineract-client/src/services/loans.service.ts new file mode 100644 index 0000000000..f1ce846d1c --- /dev/null +++ b/packages/fineract-client/src/services/loans.service.ts @@ -0,0 +1,1957 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteLoansLoanIdResponse } from '../models/deleteLoansLoanIdResponse'; +// @ts-ignore +import { GetDelinquencyTagHistoryResponse } from '../models/getDelinquencyTagHistoryResponse'; +// @ts-ignore +import { GetLoansApprovalTemplateResponse } from '../models/getLoansApprovalTemplateResponse'; +// @ts-ignore +import { GetLoansLoanIdResponse } from '../models/getLoansLoanIdResponse'; +// @ts-ignore +import { GetLoansResponse } from '../models/getLoansResponse'; +// @ts-ignore +import { GetLoansTemplateResponse } from '../models/getLoansTemplateResponse'; +// @ts-ignore +import { PostLoansLoanIdRequest } from '../models/postLoansLoanIdRequest'; +// @ts-ignore +import { PostLoansLoanIdResponse } from '../models/postLoansLoanIdResponse'; +// @ts-ignore +import { PostLoansRequest } from '../models/postLoansRequest'; +// @ts-ignore +import { PostLoansResponse } from '../models/postLoansResponse'; +// @ts-ignore +import { PutLoansLoanIdRequest } from '../models/putLoansLoanIdRequest'; +// @ts-ignore +import { PutLoansLoanIdResponse } from '../models/putLoansLoanIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LoansService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Calculate loan repayment schedule | Submit a new Loan Application + * 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, transactionProcessingStrategyCode, 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 + * @param postLoansRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public calculateLoanScheduleOrSubmitLoanApplication(postLoansRequest: PostLoansRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public calculateLoanScheduleOrSubmitLoanApplication(postLoansRequest: PostLoansRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public calculateLoanScheduleOrSubmitLoanApplication(postLoansRequest: PostLoansRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public calculateLoanScheduleOrSubmitLoanApplication(postLoansRequest: PostLoansRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postLoansRequest === null || postLoansRequest === undefined) { + throw new Error('Required parameter postLoansRequest was null or undefined when calling calculateLoanScheduleOrSubmitLoanApplication.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Loan Application + * Note: Only loans in \"Submitted and awaiting approval\" status can be deleted. + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteLoanApplication(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteLoanApplication(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanApplication(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanApplication(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling deleteLoanApplication.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Loan Application + * Note: Only loans in \"Submitted and awaiting approval\" status can be deleted. + * @param loanExternalId loanExternalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteLoanApplication1(loanExternalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteLoanApplication1(loanExternalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanApplication1(loanExternalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteLoanApplication1(loanExternalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling deleteLoanApplication1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve the Loan Delinquency Tag history using the Loan Id + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDelinquencyTagHistory(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDelinquencyTagHistory(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getDelinquencyTagHistory(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getDelinquencyTagHistory(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling getDelinquencyTagHistory.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/delinquencytags`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve the Loan Delinquency Tag history using the Loan Id + * @param loanExternalId loanExternalId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDelinquencyTagHistory1(loanExternalId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getDelinquencyTagHistory1(loanExternalId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getDelinquencyTagHistory1(loanExternalId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getDelinquencyTagHistory1(loanExternalId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling getDelinquencyTagHistory1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/delinquencytags`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param glimId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getGlimRepaymentTemplate(glimId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getGlimRepaymentTemplate(glimId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getGlimRepaymentTemplate(glimId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getGlimRepaymentTemplate(glimId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (glimId === null || glimId === undefined) { + throw new Error('Required parameter glimId was null or undefined when calling getGlimRepaymentTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/glimAccount/${this.configuration.encodeParam({name: "glimId", value: glimId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getLoanRepaymentTemplate(officeId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getLoanRepaymentTemplate(officeId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getLoanRepaymentTemplate(officeId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getLoanRepaymentTemplate(officeId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/repayments/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param staffId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getLoansTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getLoansTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getLoansTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getLoansTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Approve GLIM Application | Undo GLIM Application Approval | Reject GLIM Application | Disburse Loan Disburse Loan To Savings Account | Undo Loan Disbursal + * 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 + * @param glimId + * @param postLoansLoanIdRequest + * @param command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public glimStateTransitions(glimId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public glimStateTransitions(glimId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public glimStateTransitions(glimId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public glimStateTransitions(glimId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (glimId === null || glimId === undefined) { + throw new Error('Required parameter glimId was null or undefined when calling glimStateTransitions.'); + } + if (postLoansLoanIdRequest === null || postLoansLoanIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdRequest was null or undefined when calling glimStateTransitions.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/glimAccount/${this.configuration.encodeParam({name: "glimId", value: glimId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Modify a loan application + * 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. + * @param loanId loanId + * @param putLoansLoanIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modifyLoanApplication(loanId: number, putLoansLoanIdRequest: PutLoansLoanIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public modifyLoanApplication(loanId: number, putLoansLoanIdRequest: PutLoansLoanIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public modifyLoanApplication(loanId: number, putLoansLoanIdRequest: PutLoansLoanIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public modifyLoanApplication(loanId: number, putLoansLoanIdRequest: PutLoansLoanIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling modifyLoanApplication.'); + } + if (putLoansLoanIdRequest === null || putLoansLoanIdRequest === undefined) { + throw new Error('Required parameter putLoansLoanIdRequest was null or undefined when calling modifyLoanApplication.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putLoansLoanIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Modify a loan application + * 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. + * @param loanExternalId loanExternalId + * @param putLoansLoanIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modifyLoanApplication1(loanExternalId: string, putLoansLoanIdRequest: PutLoansLoanIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public modifyLoanApplication1(loanExternalId: string, putLoansLoanIdRequest: PutLoansLoanIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public modifyLoanApplication1(loanExternalId: string, putLoansLoanIdRequest: PutLoansLoanIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public modifyLoanApplication1(loanExternalId: string, putLoansLoanIdRequest: PutLoansLoanIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling modifyLoanApplication1.'); + } + if (putLoansLoanIdRequest === null || putLoansLoanIdRequest === undefined) { + throw new Error('Required parameter putLoansLoanIdRequest was null or undefined when calling modifyLoanApplication1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putLoansLoanIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postLoanRepaymentTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postLoanRepaymentTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postLoanRepaymentTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postLoanRepaymentTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/repayments/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postLoanTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postLoanTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postLoanTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postLoanTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Loans + * 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 + * @param sqlSearch sqlSearch + * @param externalId externalId + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param accountNo accountNo + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll27(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll27(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll27(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll27(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (externalId !== undefined && externalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalId, 'externalId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (accountNo !== undefined && accountNo !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + accountNo, 'accountNo'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId loanId + * @param templateType templateType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveApprovalTemplate(loanId: number, templateType?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveApprovalTemplate(loanId: number, templateType?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveApprovalTemplate(loanId: number, templateType?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveApprovalTemplate(loanId: number, templateType?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveApprovalTemplate.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (templateType !== undefined && templateType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + templateType, 'templateType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanExternalId loanExternalId + * @param templateType templateType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveApprovalTemplate1(loanExternalId: string, templateType?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveApprovalTemplate1(loanExternalId: string, templateType?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveApprovalTemplate1(loanExternalId: string, templateType?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveApprovalTemplate1(loanExternalId: string, templateType?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling retrieveApprovalTemplate1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (templateType !== undefined && templateType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + templateType, 'templateType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan + * 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 + * @param loanId loanId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param associations Loan object relations to be included in the response + * @param exclude Optional Loan object relation list to be filtered in the response + * @param fields Optional Loan attribute list to be in the response + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoan(loanId: number, staffInSelectedOfficeOnly?: boolean, associations?: string, exclude?: string, fields?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoan(loanId: number, staffInSelectedOfficeOnly?: boolean, associations?: string, exclude?: string, fields?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoan(loanId: number, staffInSelectedOfficeOnly?: boolean, associations?: string, exclude?: string, fields?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoan(loanId: number, staffInSelectedOfficeOnly?: boolean, associations?: string, exclude?: string, fields?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveLoan.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + if (associations !== undefined && associations !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + associations, 'associations'); + } + if (exclude !== undefined && exclude !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + exclude, 'exclude'); + } + if (fields !== undefined && fields !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fields, 'fields'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan + * Note: template=true parameter doesn\'t apply to this resource.Example Requests: loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854 loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854?fields=id,principal,annualInterestRate loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854?associations=all loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854?associations=all&exclude=guarantors loans/external-id/7dd80a7c-ycba-a446-t378-91eb6f53e854?fields=id,principal,annualInterestRate&associations=repaymentSchedule,transactions + * @param loanExternalId loanExternalId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param associations Loan object relations to be included in the response + * @param exclude Optional Loan object relation list to be filtered in the response + * @param fields Optional Loan attribute list to be in the response + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoan1(loanExternalId: string, staffInSelectedOfficeOnly?: boolean, associations?: string, exclude?: string, fields?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoan1(loanExternalId: string, staffInSelectedOfficeOnly?: boolean, associations?: string, exclude?: string, fields?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoan1(loanExternalId: string, staffInSelectedOfficeOnly?: boolean, associations?: string, exclude?: string, fields?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoan1(loanExternalId: string, staffInSelectedOfficeOnly?: boolean, associations?: string, exclude?: string, fields?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling retrieveLoan1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + if (associations !== undefined && associations !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + associations, 'associations'); + } + if (exclude !== undefined && exclude !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + exclude, 'exclude'); + } + if (fields !== undefined && fields !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fields, 'fields'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * 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 + * 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 + * @param loanId loanId + * @param postLoansLoanIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public stateTransitions(loanId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public stateTransitions(loanId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public stateTransitions(loanId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public stateTransitions(loanId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling stateTransitions.'); + } + if (postLoansLoanIdRequest === null || postLoansLoanIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdRequest was null or undefined when calling stateTransitions.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * 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 + * 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 + * @param loanExternalId loanExternalId + * @param postLoansLoanIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public stateTransitions1(loanExternalId: string, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public stateTransitions1(loanExternalId: string, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public stateTransitions1(loanExternalId: string, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public stateTransitions1(loanExternalId: string, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanExternalId === null || loanExternalId === undefined) { + throw new Error('Required parameter loanExternalId was null or undefined when calling stateTransitions1.'); + } + if (postLoansLoanIdRequest === null || postLoansLoanIdRequest === undefined) { + throw new Error('Required parameter postLoansLoanIdRequest was null or undefined when calling stateTransitions1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/external-id/${this.configuration.encodeParam({name: "loanExternalId", value: loanExternalId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postLoansLoanIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Loan Details Template + * 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 + * @param clientId clientId + * @param groupId groupId + * @param productId productId + * @param templateType templateType + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param activeOnly activeOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template10(clientId?: number, groupId?: number, productId?: number, templateType?: string, staffInSelectedOfficeOnly?: boolean, activeOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template10(clientId?: number, groupId?: number, productId?: number, templateType?: string, staffInSelectedOfficeOnly?: boolean, activeOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template10(clientId?: number, groupId?: number, productId?: number, templateType?: string, staffInSelectedOfficeOnly?: boolean, activeOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template10(clientId?: number, groupId?: number, productId?: number, templateType?: string, staffInSelectedOfficeOnly?: boolean, activeOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (groupId !== undefined && groupId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + groupId, 'groupId'); + } + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + if (templateType !== undefined && templateType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + templateType, 'templateType'); + } + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + if (activeOnly !== undefined && activeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + activeOnly, 'activeOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/makerCheckerOr4EyeFunctionality.service.ts b/packages/fineract-client/src/services/makerCheckerOr4EyeFunctionality.service.ts new file mode 100644 index 0000000000..d465b59133 --- /dev/null +++ b/packages/fineract-client/src/services/makerCheckerOr4EyeFunctionality.service.ts @@ -0,0 +1,442 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetMakerCheckerResponse } from '../models/getMakerCheckerResponse'; +// @ts-ignore +import { GetMakerCheckersSearchTemplateResponse } from '../models/getMakerCheckersSearchTemplateResponse'; +// @ts-ignore +import { PostMakerCheckersResponse } from '../models/postMakerCheckersResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class MakerCheckerOr4EyeFunctionalityService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Approve Maker Checker Entry | Reject Maker Checker Entry + * @param auditId auditId + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public approveMakerCheckerEntry(auditId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public approveMakerCheckerEntry(auditId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public approveMakerCheckerEntry(auditId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public approveMakerCheckerEntry(auditId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (auditId === null || auditId === undefined) { + throw new Error('Required parameter auditId was null or undefined when calling approveMakerCheckerEntry.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/makercheckers/${this.configuration.encodeParam({name: "auditId", value: auditId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete Maker Checker Entry + * @param auditId auditId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteMakerCheckerEntry(auditId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteMakerCheckerEntry(auditId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteMakerCheckerEntry(auditId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteMakerCheckerEntry(auditId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (auditId === null || auditId === undefined) { + throw new Error('Required parameter auditId was null or undefined when calling deleteMakerCheckerEntry.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/makercheckers/${this.configuration.encodeParam({name: "auditId", value: auditId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Maker Checker Search Template + * This is a convenience resource. It can be useful when building a Checker Inbox UI. \"appUsers\" are data scoped to the office/branch the requestor is associated with. \"actionNames\" and \"entityNames\" returned are those that the requestor has Checker approval permissions for. Example Requests: makercheckers/searchtemplate makercheckers/searchtemplate?fields=entityNames + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAuditSearchTemplate1(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAuditSearchTemplate1(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAuditSearchTemplate1(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAuditSearchTemplate1(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/makercheckers/searchtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Maker Checker Entries + * Get a list of entries that can be checked by the requestor that match the criteria supplied. Example Requests: makercheckers makercheckers?fields=madeOnDate,maker,processingResult makercheckers?makerDateTimeFrom=2013-03-25 08:00:00&makerDateTimeTo=2013-04-04 18:00:00 makercheckers?officeId=1 makercheckers?officeId=1&includeJson=true + * @param actionName actionName + * @param entityName entityName + * @param resourceId resourceId + * @param makerId makerId + * @param makerDateTimeFrom makerDateTimeFrom + * @param makerDateTimeTo makerDateTimeTo + * @param officeId officeId + * @param groupId groupId + * @param clientId clientId + * @param loanid loanid + * @param savingsAccountId savingsAccountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveCommands(actionName?: string, entityName?: string, resourceId?: number, makerId?: number, makerDateTimeFrom?: string, makerDateTimeTo?: string, officeId?: number, groupId?: number, clientId?: number, loanid?: number, savingsAccountId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveCommands(actionName?: string, entityName?: string, resourceId?: number, makerId?: number, makerDateTimeFrom?: string, makerDateTimeTo?: string, officeId?: number, groupId?: number, clientId?: number, loanid?: number, savingsAccountId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveCommands(actionName?: string, entityName?: string, resourceId?: number, makerId?: number, makerDateTimeFrom?: string, makerDateTimeTo?: string, officeId?: number, groupId?: number, clientId?: number, loanid?: number, savingsAccountId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveCommands(actionName?: string, entityName?: string, resourceId?: number, makerId?: number, makerDateTimeFrom?: string, makerDateTimeTo?: string, officeId?: number, groupId?: number, clientId?: number, loanid?: number, savingsAccountId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (actionName !== undefined && actionName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + actionName, 'actionName'); + } + if (entityName !== undefined && entityName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + entityName, 'entityName'); + } + if (resourceId !== undefined && resourceId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + resourceId, 'resourceId'); + } + if (makerId !== undefined && makerId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + makerId, 'makerId'); + } + if (makerDateTimeFrom !== undefined && makerDateTimeFrom !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + makerDateTimeFrom, 'makerDateTimeFrom'); + } + if (makerDateTimeTo !== undefined && makerDateTimeTo !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + makerDateTimeTo, 'makerDateTimeTo'); + } + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (groupId !== undefined && groupId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + groupId, 'groupId'); + } + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (loanid !== undefined && loanid !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + loanid, 'loanid'); + } + if (savingsAccountId !== undefined && savingsAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + savingsAccountId, 'savingsAccountId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/makercheckers`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/mappingFinancialActivitiesToAccounts.service.ts b/packages/fineract-client/src/services/mappingFinancialActivitiesToAccounts.service.ts new file mode 100644 index 0000000000..3a90c72598 --- /dev/null +++ b/packages/fineract-client/src/services/mappingFinancialActivitiesToAccounts.service.ts @@ -0,0 +1,541 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteFinancialActivityAccountsResponse } from '../models/deleteFinancialActivityAccountsResponse'; +// @ts-ignore +import { GetFinancialActivityAccountsResponse } from '../models/getFinancialActivityAccountsResponse'; +// @ts-ignore +import { PostFinancialActivityAccountsRequest } from '../models/postFinancialActivityAccountsRequest'; +// @ts-ignore +import { PostFinancialActivityAccountsResponse } from '../models/postFinancialActivityAccountsResponse'; +// @ts-ignore +import { PutFinancialActivityAccountsResponse } from '../models/putFinancialActivityAccountsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class MappingFinancialActivitiesToAccountsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a new Financial Activity to Accounts Mapping + * Mandatory Fields financialActivityId, glAccountId + * @param postFinancialActivityAccountsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createGLAccount(postFinancialActivityAccountsRequest?: PostFinancialActivityAccountsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createGLAccount(postFinancialActivityAccountsRequest?: PostFinancialActivityAccountsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createGLAccount(postFinancialActivityAccountsRequest?: PostFinancialActivityAccountsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createGLAccount(postFinancialActivityAccountsRequest?: PostFinancialActivityAccountsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/financialactivityaccounts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postFinancialActivityAccountsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Financial Activity to Account Mapping + * @param mappingId mappingId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteGLAccount(mappingId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteGLAccount(mappingId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteGLAccount(mappingId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteGLAccount(mappingId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (mappingId === null || mappingId === undefined) { + throw new Error('Required parameter mappingId was null or undefined when calling deleteGLAccount.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/financialactivityaccounts/${this.configuration.encodeParam({name: "mappingId", value: mappingId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Financial Activity to Account Mapping + * Example Requests: financialactivityaccounts/1 + * @param mappingId mappingId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retreive(mappingId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retreive(mappingId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retreive(mappingId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retreive(mappingId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (mappingId === null || mappingId === undefined) { + throw new Error('Required parameter mappingId was null or undefined when calling retreive.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/financialactivityaccounts/${this.configuration.encodeParam({name: "mappingId", value: mappingId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Financial Activities to Accounts Mappings + * Example Requests: financialactivityaccounts + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/financialactivityaccounts`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/financialactivityaccounts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Financial Activity to Account Mapping + * the API updates the Ledger account linked to a Financial Activity + * @param mappingId mappingId + * @param postFinancialActivityAccountsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateGLAccount(mappingId: number, postFinancialActivityAccountsRequest?: PostFinancialActivityAccountsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateGLAccount(mappingId: number, postFinancialActivityAccountsRequest?: PostFinancialActivityAccountsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateGLAccount(mappingId: number, postFinancialActivityAccountsRequest?: PostFinancialActivityAccountsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateGLAccount(mappingId: number, postFinancialActivityAccountsRequest?: PostFinancialActivityAccountsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (mappingId === null || mappingId === undefined) { + throw new Error('Required parameter mappingId was null or undefined when calling updateGLAccount.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/financialactivityaccounts/${this.configuration.encodeParam({name: "mappingId", value: mappingId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postFinancialActivityAccountsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/meetings.service.ts b/packages/fineract-client/src/services/meetings.service.ts new file mode 100644 index 0000000000..5d0ed95ba4 --- /dev/null +++ b/packages/fineract-client/src/services/meetings.service.ts @@ -0,0 +1,683 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class MeetingsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param entityType + * @param entityId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createMeeting(entityType: string, entityId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createMeeting(entityType: string, entityId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createMeeting(entityType: string, entityId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createMeeting(entityType: string, entityId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling createMeeting.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling createMeeting.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/meetings`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entityType + * @param entityId + * @param meetingId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteMeeting(entityType: string, entityId: number, meetingId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteMeeting(entityType: string, entityId: number, meetingId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteMeeting(entityType: string, entityId: number, meetingId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteMeeting(entityType: string, entityId: number, meetingId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling deleteMeeting.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling deleteMeeting.'); + } + if (meetingId === null || meetingId === undefined) { + throw new Error('Required parameter meetingId was null or undefined when calling deleteMeeting.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/meetings/${this.configuration.encodeParam({name: "meetingId", value: meetingId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entityType + * @param entityId + * @param meetingId + * @param command + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public performMeetingCommands(entityType: string, entityId: number, meetingId: number, command?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public performMeetingCommands(entityType: string, entityId: number, meetingId: number, command?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public performMeetingCommands(entityType: string, entityId: number, meetingId: number, command?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public performMeetingCommands(entityType: string, entityId: number, meetingId: number, command?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling performMeetingCommands.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling performMeetingCommands.'); + } + if (meetingId === null || meetingId === undefined) { + throw new Error('Required parameter meetingId was null or undefined when calling performMeetingCommands.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/meetings/${this.configuration.encodeParam({name: "meetingId", value: meetingId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param meetingId + * @param entityType + * @param entityId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveMeeting(meetingId: number, entityType: string, entityId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveMeeting(meetingId: number, entityType: string, entityId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveMeeting(meetingId: number, entityType: string, entityId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveMeeting(meetingId: number, entityType: string, entityId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (meetingId === null || meetingId === undefined) { + throw new Error('Required parameter meetingId was null or undefined when calling retrieveMeeting.'); + } + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling retrieveMeeting.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling retrieveMeeting.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/meetings/${this.configuration.encodeParam({name: "meetingId", value: meetingId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entityType + * @param entityId + * @param limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveMeetings(entityType: string, entityId: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveMeetings(entityType: string, entityId: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveMeetings(entityType: string, entityId: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveMeetings(entityType: string, entityId: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling retrieveMeetings.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling retrieveMeetings.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/meetings`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entityType + * @param entityId + * @param calendarId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template11(entityType: string, entityId: number, calendarId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template11(entityType: string, entityId: number, calendarId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template11(entityType: string, entityId: number, calendarId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template11(entityType: string, entityId: number, calendarId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling template11.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling template11.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (calendarId !== undefined && calendarId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + calendarId, 'calendarId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/meetings/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entityType + * @param entityId + * @param meetingId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateMeeting(entityType: string, entityId: number, meetingId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateMeeting(entityType: string, entityId: number, meetingId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateMeeting(entityType: string, entityId: number, meetingId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateMeeting(entityType: string, entityId: number, meetingId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityType === null || entityType === undefined) { + throw new Error('Required parameter entityType was null or undefined when calling updateMeeting.'); + } + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling updateMeeting.'); + } + if (meetingId === null || meetingId === undefined) { + throw new Error('Required parameter meetingId was null or undefined when calling updateMeeting.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/meetings/${this.configuration.encodeParam({name: "meetingId", value: meetingId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/mixMapping.service.ts b/packages/fineract-client/src/services/mixMapping.service.ts new file mode 100644 index 0000000000..92153d33c9 --- /dev/null +++ b/packages/fineract-client/src/services/mixMapping.service.ts @@ -0,0 +1,235 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class MixMappingService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTaxonomyMapping(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTaxonomyMapping(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTaxonomyMapping(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTaxonomyMapping(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/mixmapping`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateTaxonomyMapping(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateTaxonomyMapping(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateTaxonomyMapping(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateTaxonomyMapping(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/mixmapping`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/mixReport.service.ts b/packages/fineract-client/src/services/mixReport.service.ts new file mode 100644 index 0000000000..9e4ce25afb --- /dev/null +++ b/packages/fineract-client/src/services/mixReport.service.ts @@ -0,0 +1,176 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class MixReportService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param startDate + * @param endDate + * @param currency + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveXBRLReport(startDate?: string, endDate?: string, currency?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext}): Observable; + public retrieveXBRLReport(startDate?: string, endDate?: string, currency?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext}): Observable>; + public retrieveXBRLReport(startDate?: string, endDate?: string, currency?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext}): Observable>; + public retrieveXBRLReport(startDate?: string, endDate?: string, currency?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (startDate !== undefined && startDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + startDate, 'startDate'); + } + if (endDate !== undefined && endDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + endDate, 'endDate'); + } + if (currency !== undefined && currency !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + currency, 'currency'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/xml' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/mixreport`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/mixTaxonomy.service.ts b/packages/fineract-client/src/services/mixTaxonomy.service.ts new file mode 100644 index 0000000000..08bae1d7e7 --- /dev/null +++ b/packages/fineract-client/src/services/mixTaxonomy.service.ts @@ -0,0 +1,158 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class MixTaxonomyService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll14(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll14(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll14(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll14(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/mixtaxonomy`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/notes.service.ts b/packages/fineract-client/src/services/notes.service.ts new file mode 100644 index 0000000000..a153c9a7dd --- /dev/null +++ b/packages/fineract-client/src/services/notes.service.ts @@ -0,0 +1,526 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteResourceTypeResourceIdNotesNoteIdResponse } from '../models/deleteResourceTypeResourceIdNotesNoteIdResponse'; +// @ts-ignore +import { GetResourceTypeResourceIdNotesNoteIdResponse } from '../models/getResourceTypeResourceIdNotesNoteIdResponse'; +// @ts-ignore +import { GetResourceTypeResourceIdNotesResponse } from '../models/getResourceTypeResourceIdNotesResponse'; +// @ts-ignore +import { PostResourceTypeResourceIdNotesRequest } from '../models/postResourceTypeResourceIdNotesRequest'; +// @ts-ignore +import { PostResourceTypeResourceIdNotesResponse } from '../models/postResourceTypeResourceIdNotesResponse'; +// @ts-ignore +import { PutResourceTypeResourceIdNotesNoteIdRequest } from '../models/putResourceTypeResourceIdNotesNoteIdRequest'; +// @ts-ignore +import { PutResourceTypeResourceIdNotesNoteIdResponse } from '../models/putResourceTypeResourceIdNotesNoteIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class NotesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Add a Resource Note + * Adds a new note to a supported resource. Example Requests: clients/1/notes groups/1/notes + * @param resourceType resourceType + * @param resourceId resourceId + * @param postResourceTypeResourceIdNotesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addNewNote(resourceType: string, resourceId: number, postResourceTypeResourceIdNotesRequest: PostResourceTypeResourceIdNotesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public addNewNote(resourceType: string, resourceId: number, postResourceTypeResourceIdNotesRequest: PostResourceTypeResourceIdNotesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addNewNote(resourceType: string, resourceId: number, postResourceTypeResourceIdNotesRequest: PostResourceTypeResourceIdNotesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addNewNote(resourceType: string, resourceId: number, postResourceTypeResourceIdNotesRequest: PostResourceTypeResourceIdNotesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceType === null || resourceType === undefined) { + throw new Error('Required parameter resourceType was null or undefined when calling addNewNote.'); + } + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling addNewNote.'); + } + if (postResourceTypeResourceIdNotesRequest === null || postResourceTypeResourceIdNotesRequest === undefined) { + throw new Error('Required parameter postResourceTypeResourceIdNotesRequest was null or undefined when calling addNewNote.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "resourceType", value: resourceType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/notes`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postResourceTypeResourceIdNotesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Resource Note + * Deletes a Resource Note + * @param resourceType resourceType + * @param resourceId resourceId + * @param noteId noteId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteNote(resourceType: string, resourceId: number, noteId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteNote(resourceType: string, resourceId: number, noteId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteNote(resourceType: string, resourceId: number, noteId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteNote(resourceType: string, resourceId: number, noteId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceType === null || resourceType === undefined) { + throw new Error('Required parameter resourceType was null or undefined when calling deleteNote.'); + } + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling deleteNote.'); + } + if (noteId === null || noteId === undefined) { + throw new Error('Required parameter noteId was null or undefined when calling deleteNote.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "resourceType", value: resourceType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/notes/${this.configuration.encodeParam({name: "noteId", value: noteId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Resource Note + * Retrieves a Resource Note Example Requests: clients/1/notes/76 groups/1/notes/20 clients/1/notes/76?fields=note,createdOn,createdByUsername groups/1/notes/20?fields=note,createdOn,createdByUsername + * @param resourceType resourceType + * @param resourceId resourceId + * @param noteId noteId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveNote(resourceType: string, resourceId: number, noteId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveNote(resourceType: string, resourceId: number, noteId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveNote(resourceType: string, resourceId: number, noteId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveNote(resourceType: string, resourceId: number, noteId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceType === null || resourceType === undefined) { + throw new Error('Required parameter resourceType was null or undefined when calling retrieveNote.'); + } + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling retrieveNote.'); + } + if (noteId === null || noteId === undefined) { + throw new Error('Required parameter noteId was null or undefined when calling retrieveNote.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "resourceType", value: resourceType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/notes/${this.configuration.encodeParam({name: "noteId", value: noteId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Resource\'s description + * Retrieves a Resource\'s Notes Note: Notes are returned in descending createOn order. Example Requests: clients/2/notes groups/2/notes?fields=note,createdOn,createdByUsername + * @param resourceType resourceType + * @param resourceId resourceId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveNotesByResource(resourceType: string, resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveNotesByResource(resourceType: string, resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveNotesByResource(resourceType: string, resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveNotesByResource(resourceType: string, resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceType === null || resourceType === undefined) { + throw new Error('Required parameter resourceType was null or undefined when calling retrieveNotesByResource.'); + } + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling retrieveNotesByResource.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "resourceType", value: resourceType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/notes`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Resource Note + * Updates a Resource Note + * @param resourceType resourceType + * @param resourceId resourceId + * @param noteId noteId + * @param putResourceTypeResourceIdNotesNoteIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateNote(resourceType: string, resourceId: number, noteId: number, putResourceTypeResourceIdNotesNoteIdRequest: PutResourceTypeResourceIdNotesNoteIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateNote(resourceType: string, resourceId: number, noteId: number, putResourceTypeResourceIdNotesNoteIdRequest: PutResourceTypeResourceIdNotesNoteIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateNote(resourceType: string, resourceId: number, noteId: number, putResourceTypeResourceIdNotesNoteIdRequest: PutResourceTypeResourceIdNotesNoteIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateNote(resourceType: string, resourceId: number, noteId: number, putResourceTypeResourceIdNotesNoteIdRequest: PutResourceTypeResourceIdNotesNoteIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceType === null || resourceType === undefined) { + throw new Error('Required parameter resourceType was null or undefined when calling updateNote.'); + } + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling updateNote.'); + } + if (noteId === null || noteId === undefined) { + throw new Error('Required parameter noteId was null or undefined when calling updateNote.'); + } + if (putResourceTypeResourceIdNotesNoteIdRequest === null || putResourceTypeResourceIdNotesNoteIdRequest === undefined) { + throw new Error('Required parameter putResourceTypeResourceIdNotesNoteIdRequest was null or undefined when calling updateNote.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/${this.configuration.encodeParam({name: "resourceType", value: resourceType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/notes/${this.configuration.encodeParam({name: "noteId", value: noteId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putResourceTypeResourceIdNotesNoteIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/notification.service.ts b/packages/fineract-client/src/services/notification.service.ts new file mode 100644 index 0000000000..f1dbea2dbd --- /dev/null +++ b/packages/fineract-client/src/services/notification.service.ts @@ -0,0 +1,254 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetNotificationsResponse } from '../models/getNotificationsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class NotificationService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param orderBy orderBy + * @param limit limit + * @param offset offset + * @param sortOrder sortOrder + * @param isRead isRead + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAllNotifications(orderBy?: string, limit?: number, offset?: number, sortOrder?: string, isRead?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getAllNotifications(orderBy?: string, limit?: number, offset?: number, sortOrder?: string, isRead?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAllNotifications(orderBy?: string, limit?: number, offset?: number, sortOrder?: string, isRead?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAllNotifications(orderBy?: string, limit?: number, offset?: number, sortOrder?: string, isRead?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (isRead !== undefined && isRead !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + isRead, 'isRead'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/notifications`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update5(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update5(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update5(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update5(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/notifications`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/offices.service.ts b/packages/fineract-client/src/services/offices.service.ts new file mode 100644 index 0000000000..ee7d590b84 --- /dev/null +++ b/packages/fineract-client/src/services/offices.service.ts @@ -0,0 +1,682 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetOfficesResponse } from '../models/getOfficesResponse'; +// @ts-ignore +import { GetOfficesTemplateResponse } from '../models/getOfficesTemplateResponse'; +// @ts-ignore +import { PostOfficesRequest } from '../models/postOfficesRequest'; +// @ts-ignore +import { PostOfficesResponse } from '../models/postOfficesResponse'; +// @ts-ignore +import { PutOfficesOfficeIdRequest } from '../models/putOfficesOfficeIdRequest'; +// @ts-ignore +import { PutOfficesOfficeIdResponse } from '../models/putOfficesOfficeIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class OfficesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create an Office + * Mandatory Fields name, openingDate, parentId + * @param postOfficesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createOffice(postOfficesRequest: PostOfficesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createOffice(postOfficesRequest: PostOfficesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createOffice(postOfficesRequest: PostOfficesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createOffice(postOfficesRequest: PostOfficesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postOfficesRequest === null || postOfficesRequest === undefined) { + throw new Error('Required parameter postOfficesRequest was null or undefined when calling createOffice.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/offices`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postOfficesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getOfficeTemplate(dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getOfficeTemplate(dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getOfficeTemplate(dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getOfficeTemplate(dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/offices/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postOfficeTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postOfficeTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postOfficeTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postOfficeTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/offices/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve an Office + * Example Requests: offices/1 offices/1?template=true offices/1?fields=id,name,parentName + * @param officeId officeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOffice(officeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOffice(officeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOffice(officeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOffice(officeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (officeId === null || officeId === undefined) { + throw new Error('Required parameter officeId was null or undefined when calling retrieveOffice.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/offices/${this.configuration.encodeParam({name: "officeId", value: officeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Office Details Template + * 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 Request: offices/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOfficeTemplate1(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOfficeTemplate1(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOfficeTemplate1(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOfficeTemplate1(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/offices/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Offices + * Example Requests: offices offices?fields=id,name,openingDate + * @param includeAllOffices includeAllOffices + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOffices(includeAllOffices?: boolean, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOffices(includeAllOffices?: boolean, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveOffices(includeAllOffices?: boolean, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveOffices(includeAllOffices?: boolean, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (includeAllOffices !== undefined && includeAllOffices !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + includeAllOffices, 'includeAllOffices'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/offices`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Office + * @param officeId officeId + * @param putOfficesOfficeIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateOffice(officeId: number, putOfficesOfficeIdRequest: PutOfficesOfficeIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateOffice(officeId: number, putOfficesOfficeIdRequest: PutOfficesOfficeIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateOffice(officeId: number, putOfficesOfficeIdRequest: PutOfficesOfficeIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateOffice(officeId: number, putOfficesOfficeIdRequest: PutOfficesOfficeIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (officeId === null || officeId === undefined) { + throw new Error('Required parameter officeId was null or undefined when calling updateOffice.'); + } + if (putOfficesOfficeIdRequest === null || putOfficesOfficeIdRequest === undefined) { + throw new Error('Required parameter putOfficesOfficeIdRequest was null or undefined when calling updateOffice.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/offices/${this.configuration.encodeParam({name: "officeId", value: officeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putOfficesOfficeIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/passwordPreferences.service.ts b/packages/fineract-client/src/services/passwordPreferences.service.ts new file mode 100644 index 0000000000..ca63e63b27 --- /dev/null +++ b/packages/fineract-client/src/services/passwordPreferences.service.ts @@ -0,0 +1,310 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetPasswordPreferencesTemplateResponse } from '../models/getPasswordPreferencesTemplateResponse'; +// @ts-ignore +import { PutPasswordPreferencesTemplateRequest } from '../models/putPasswordPreferencesTemplateRequest'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class PasswordPreferencesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieve1(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieve1(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieve1(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieve1(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/passwordpreferences`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Application Password validation policies + * ARGUMENTS Example Requests: passwordpreferences + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template21(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template21(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public template21(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public template21(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/passwordpreferences/template`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update password preferences + * @param putPasswordPreferencesTemplateRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update24(putPasswordPreferencesTemplateRequest: PutPasswordPreferencesTemplateRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public update24(putPasswordPreferencesTemplateRequest: PutPasswordPreferencesTemplateRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public update24(putPasswordPreferencesTemplateRequest: PutPasswordPreferencesTemplateRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public update24(putPasswordPreferencesTemplateRequest: PutPasswordPreferencesTemplateRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (putPasswordPreferencesTemplateRequest === null || putPasswordPreferencesTemplateRequest === undefined) { + throw new Error('Required parameter putPasswordPreferencesTemplateRequest was null or undefined when calling update24.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/passwordpreferences`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putPasswordPreferencesTemplateRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/paymentType.service.ts b/packages/fineract-client/src/services/paymentType.service.ts new file mode 100644 index 0000000000..052aefd5c7 --- /dev/null +++ b/packages/fineract-client/src/services/paymentType.service.ts @@ -0,0 +1,494 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeletePaymentTypesPaymentTypeIdResponse } from '../models/deletePaymentTypesPaymentTypeIdResponse'; +// @ts-ignore +import { GetPaymentTypesPaymentTypeIdResponse } from '../models/getPaymentTypesPaymentTypeIdResponse'; +// @ts-ignore +import { GetPaymentTypesResponse } from '../models/getPaymentTypesResponse'; +// @ts-ignore +import { PostPaymentTypesRequest } from '../models/postPaymentTypesRequest'; +// @ts-ignore +import { PostPaymentTypesResponse } from '../models/postPaymentTypesResponse'; +// @ts-ignore +import { PutPaymentTypesPaymentTypeIdRequest } from '../models/putPaymentTypesPaymentTypeIdRequest'; +// @ts-ignore +import { PutPaymentTypesPaymentTypeIdResponse } from '../models/putPaymentTypesPaymentTypeIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class PaymentTypeService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Payment Type + * Creates a new Payment type Mandatory Fields: name Optional Fields: Description, isCashPayment,Position + * @param postPaymentTypesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createPaymentType(postPaymentTypesRequest: PostPaymentTypesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createPaymentType(postPaymentTypesRequest: PostPaymentTypesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createPaymentType(postPaymentTypesRequest: PostPaymentTypesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createPaymentType(postPaymentTypesRequest: PostPaymentTypesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postPaymentTypesRequest === null || postPaymentTypesRequest === undefined) { + throw new Error('Required parameter postPaymentTypesRequest was null or undefined when calling createPaymentType.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/paymenttypes`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postPaymentTypesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Payment Type + * Deletes payment type + * @param paymentTypeId paymentTypeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteCode1(paymentTypeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteCode1(paymentTypeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCode1(paymentTypeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCode1(paymentTypeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (paymentTypeId === null || paymentTypeId === undefined) { + throw new Error('Required parameter paymentTypeId was null or undefined when calling deleteCode1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/paymenttypes/${this.configuration.encodeParam({name: "paymentTypeId", value: paymentTypeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve all Payment Types + * Retrieve list of payment types + * @param onlyWithCode onlyWithCode + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAllPaymentTypes(onlyWithCode?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAllPaymentTypes(onlyWithCode?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getAllPaymentTypes(onlyWithCode?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getAllPaymentTypes(onlyWithCode?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (onlyWithCode !== undefined && onlyWithCode !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + onlyWithCode, 'onlyWithCode'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/paymenttypes`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Payment Type + * Retrieves a payment type + * @param paymentTypeId paymentTypeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOnePaymentType(paymentTypeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOnePaymentType(paymentTypeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOnePaymentType(paymentTypeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOnePaymentType(paymentTypeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (paymentTypeId === null || paymentTypeId === undefined) { + throw new Error('Required parameter paymentTypeId was null or undefined when calling retrieveOnePaymentType.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/paymenttypes/${this.configuration.encodeParam({name: "paymentTypeId", value: paymentTypeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Payment Type + * Updates a Payment Type + * @param paymentTypeId paymentTypeId + * @param putPaymentTypesPaymentTypeIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updatePaymentType(paymentTypeId: number, putPaymentTypesPaymentTypeIdRequest: PutPaymentTypesPaymentTypeIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updatePaymentType(paymentTypeId: number, putPaymentTypesPaymentTypeIdRequest: PutPaymentTypesPaymentTypeIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updatePaymentType(paymentTypeId: number, putPaymentTypesPaymentTypeIdRequest: PutPaymentTypesPaymentTypeIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updatePaymentType(paymentTypeId: number, putPaymentTypesPaymentTypeIdRequest: PutPaymentTypesPaymentTypeIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (paymentTypeId === null || paymentTypeId === undefined) { + throw new Error('Required parameter paymentTypeId was null or undefined when calling updatePaymentType.'); + } + if (putPaymentTypesPaymentTypeIdRequest === null || putPaymentTypesPaymentTypeIdRequest === undefined) { + throw new Error('Required parameter putPaymentTypesPaymentTypeIdRequest was null or undefined when calling updatePaymentType.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/paymenttypes/${this.configuration.encodeParam({name: "paymentTypeId", value: paymentTypeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putPaymentTypesPaymentTypeIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/periodicAccrualAccounting.service.ts b/packages/fineract-client/src/services/periodicAccrualAccounting.service.ts new file mode 100644 index 0000000000..dd65394add --- /dev/null +++ b/packages/fineract-client/src/services/periodicAccrualAccounting.service.ts @@ -0,0 +1,175 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { PostRunaccrualsRequest } from '../models/postRunaccrualsRequest'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class PeriodicAccrualAccountingService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Executes Periodic Accrual Accounting + * Mandatory Fields tillDate + * @param postRunaccrualsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executePeriodicAccrualAccounting(postRunaccrualsRequest: PostRunaccrualsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public executePeriodicAccrualAccounting(postRunaccrualsRequest: PostRunaccrualsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public executePeriodicAccrualAccounting(postRunaccrualsRequest: PostRunaccrualsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public executePeriodicAccrualAccounting(postRunaccrualsRequest: PostRunaccrualsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (postRunaccrualsRequest === null || postRunaccrualsRequest === undefined) { + throw new Error('Required parameter postRunaccrualsRequest was null or undefined when calling executePeriodicAccrualAccounting.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/runaccruals`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postRunaccrualsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/permissions.service.ts b/packages/fineract-client/src/services/permissions.service.ts new file mode 100644 index 0000000000..8234cb0015 --- /dev/null +++ b/packages/fineract-client/src/services/permissions.service.ts @@ -0,0 +1,247 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { CommandProcessingResult } from '../models/commandProcessingResult'; +// @ts-ignore +import { GetPermissionsResponse } from '../models/getPermissionsResponse'; +// @ts-ignore +import { PutPermissionsRequest } from '../models/putPermissionsRequest'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class PermissionsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * List Application Permissions + * ARGUMENTS makerCheckerableoptional, Values are true, false. Default is false. If makerCheckerable=false or not supplied then a list of application permissions is returned. The \"selected\" attribute is always true in this case. If makerCheckerable=true then the \"selected\" attribute shows whether the permission is enabled for Maker Check functionality. Note: Each Apache Fineract transaction is associated with a permission. Example Requests: permissions permissions?makerCheckerable=true permissions?fields=grouping,code + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllPermissions(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllPermissions(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllPermissions(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllPermissions(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/permissions`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Enable/Disable Permissions for Maker Checker + * @param putPermissionsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updatePermissionsDetails(putPermissionsRequest: PutPermissionsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updatePermissionsDetails(putPermissionsRequest: PutPermissionsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updatePermissionsDetails(putPermissionsRequest: PutPermissionsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updatePermissionsDetails(putPermissionsRequest: PutPermissionsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (putPermissionsRequest === null || putPermissionsRequest === undefined) { + throw new Error('Required parameter putPermissionsRequest was null or undefined when calling updatePermissionsDetails.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/permissions`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putPermissionsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/pocket.service.ts b/packages/fineract-client/src/services/pocket.service.ts new file mode 100644 index 0000000000..a9af68f0ab --- /dev/null +++ b/packages/fineract-client/src/services/pocket.service.ts @@ -0,0 +1,251 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetAccountsLinkedToPocketResponse } from '../models/getAccountsLinkedToPocketResponse'; +// @ts-ignore +import { PostLinkDelinkAccountsToFromPocketResponse } from '../models/postLinkDelinkAccountsToFromPocketResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class PocketService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Link/delink accounts to/from pocket + * Pockets behave as favourites. An user can link his/her Loan, Savings and Share accounts to pocket for faster access. In a similar way linked accounts can be delinked from the pocket. Example Requests: self/pockets?command=linkAccounts self/pockets?command=delinkAccounts + * @param command command + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleCommands7(command?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public handleCommands7(command?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands7(command?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands7(command?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/pockets`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve accounts linked to pocket + * All linked loan Example Requests: self/pockets + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll37(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll37(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll37(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll37(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/pockets`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/povertyLine.service.ts b/packages/fineract-client/src/services/povertyLine.service.ts new file mode 100644 index 0000000000..4af1f48a6d --- /dev/null +++ b/packages/fineract-client/src/services/povertyLine.service.ts @@ -0,0 +1,236 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class PovertyLineService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param ppiName + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll12(ppiName: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll12(ppiName: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll12(ppiName: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll12(ppiName: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (ppiName === null || ppiName === undefined) { + throw new Error('Required parameter ppiName was null or undefined when calling retrieveAll12.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/povertyLine/${this.configuration.encodeParam({name: "ppiName", value: ppiName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param ppiName + * @param likelihoodId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll13(ppiName: string, likelihoodId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll13(ppiName: string, likelihoodId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll13(ppiName: string, likelihoodId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll13(ppiName: string, likelihoodId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (ppiName === null || ppiName === undefined) { + throw new Error('Required parameter ppiName was null or undefined when calling retrieveAll13.'); + } + if (likelihoodId === null || likelihoodId === undefined) { + throw new Error('Required parameter likelihoodId was null or undefined when calling retrieveAll13.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/povertyLine/${this.configuration.encodeParam({name: "ppiName", value: ppiName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "likelihoodId", value: likelihoodId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/productMix.service.ts b/packages/fineract-client/src/services/productMix.service.ts new file mode 100644 index 0000000000..902304dec5 --- /dev/null +++ b/packages/fineract-client/src/services/productMix.service.ts @@ -0,0 +1,394 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ProductMixService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param productId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createProductMix(productId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createProductMix(productId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createProductMix(productId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createProductMix(productId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling createProductMix.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/productmix`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteProductMix(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteProductMix(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteProductMix(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteProductMix(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling deleteProductMix.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/productmix`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate12(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate12(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate12(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate12(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveTemplate12.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/productmix`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param productId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateProductMix(productId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateProductMix(productId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateProductMix(productId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateProductMix(productId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling updateProductMix.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loanproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/productmix`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/products.service.ts b/packages/fineract-client/src/services/products.service.ts new file mode 100644 index 0000000000..d23a6164b5 --- /dev/null +++ b/packages/fineract-client/src/services/products.service.ts @@ -0,0 +1,593 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetProductsTypeProductIdResponse } from '../models/getProductsTypeProductIdResponse'; +// @ts-ignore +import { GetProductsTypeResponse } from '../models/getProductsTypeResponse'; +// @ts-ignore +import { PostProductsTypeRequest } from '../models/postProductsTypeRequest'; +// @ts-ignore +import { PostProductsTypeResponse } from '../models/postProductsTypeResponse'; +// @ts-ignore +import { PutProductsTypeProductIdRequest } from '../models/putProductsTypeProductIdRequest'; +// @ts-ignore +import { PutProductsTypeProductIdResponse } from '../models/putProductsTypeProductIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ProductsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Share Product + * Creates a Share Product Mandatory Fields: name, shortName, description, currencyCode, digitsAfterDecimal,inMultiplesOf, locale, totalShares, unitPrice, nominalShares,allowDividendCalculationForInactiveClients,accountingRule Mandatory Fields for Cash based accounting (accountingRule = 2): shareReferenceId, shareSuspenseId, shareEquityId, incomeFromFeeAccountId Optional Fields: sharesIssued, minimumShares, maximumShares, minimumActivePeriodForDividends, minimumactiveperiodFrequencyType, lockinPeriodFrequency, lockinPeriodFrequencyType, marketPricePeriods, chargesSelected + * @param type type + * @param postProductsTypeRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createProduct(type: string, postProductsTypeRequest: PostProductsTypeRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createProduct(type: string, postProductsTypeRequest: PostProductsTypeRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createProduct(type: string, postProductsTypeRequest: PostProductsTypeRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createProduct(type: string, postProductsTypeRequest: PostProductsTypeRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling createProduct.'); + } + if (postProductsTypeRequest === null || postProductsTypeRequest === undefined) { + throw new Error('Required parameter postProductsTypeRequest was null or undefined when calling createProduct.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/products/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postProductsTypeRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param type type + * @param productId productId + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleCommands3(type: string, productId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public handleCommands3(type: string, productId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands3(type: string, productId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands3(type: string, productId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling handleCommands3.'); + } + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling handleCommands3.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/products/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Share Products + * Lists Share Products Mandatory Fields: limit, offset Example Requests: shareproducts + * @param type type + * @param offset offset + * @param limit limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllProducts(type: string, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllProducts(type: string, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllProducts(type: string, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllProducts(type: string, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling retrieveAllProducts.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/products/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Share Product + * Retrieves a Share Product Example Requests: products/share/1 products/share/1?template=true + * @param productId productId + * @param type type + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveProduct(productId: number, type: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveProduct(productId: number, type: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveProduct(productId: number, type: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveProduct(productId: number, type: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveProduct.'); + } + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling retrieveProduct.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/products/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param type type + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate13(type: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate13(type: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate13(type: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate13(type: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling retrieveTemplate13.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/products/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Share Product + * Updates a Share Product + * @param type type + * @param productId productId + * @param putProductsTypeProductIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateProduct(type: string, productId: number, putProductsTypeProductIdRequest: PutProductsTypeProductIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateProduct(type: string, productId: number, putProductsTypeProductIdRequest: PutProductsTypeProductIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateProduct(type: string, productId: number, putProductsTypeProductIdRequest: PutProductsTypeProductIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateProduct(type: string, productId: number, putProductsTypeProductIdRequest: PutProductsTypeProductIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling updateProduct.'); + } + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling updateProduct.'); + } + if (putProductsTypeProductIdRequest === null || putProductsTypeProductIdRequest === undefined) { + throw new Error('Required parameter putProductsTypeProductIdRequest was null or undefined when calling updateProduct.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/products/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putProductsTypeProductIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/provisioningCategory.service.ts b/packages/fineract-client/src/services/provisioningCategory.service.ts new file mode 100644 index 0000000000..d18241739c --- /dev/null +++ b/packages/fineract-client/src/services/provisioningCategory.service.ts @@ -0,0 +1,386 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ProvisioningCategoryService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createProvisioningCategory(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createProvisioningCategory(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createProvisioningCategory(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createProvisioningCategory(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningcategory`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param categoryId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteProvisioningCategory(categoryId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteProvisioningCategory(categoryId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteProvisioningCategory(categoryId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteProvisioningCategory(categoryId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (categoryId === null || categoryId === undefined) { + throw new Error('Required parameter categoryId was null or undefined when calling deleteProvisioningCategory.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningcategory/${this.configuration.encodeParam({name: "categoryId", value: categoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll15(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll15(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll15(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll15(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningcategory`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param categoryId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateProvisioningCategory(categoryId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateProvisioningCategory(categoryId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateProvisioningCategory(categoryId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateProvisioningCategory(categoryId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (categoryId === null || categoryId === undefined) { + throw new Error('Required parameter categoryId was null or undefined when calling updateProvisioningCategory.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningcategory/${this.configuration.encodeParam({name: "categoryId", value: categoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/provisioningCriteria.service.ts b/packages/fineract-client/src/services/provisioningCriteria.service.ts new file mode 100644 index 0000000000..0539d05585 --- /dev/null +++ b/packages/fineract-client/src/services/provisioningCriteria.service.ts @@ -0,0 +1,552 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteProvisioningCriteriaResponse } from '../models/deleteProvisioningCriteriaResponse'; +// @ts-ignore +import { GetProvisioningCriteriaCriteriaIdResponse } from '../models/getProvisioningCriteriaCriteriaIdResponse'; +// @ts-ignore +import { GetProvisioningCriteriaResponse } from '../models/getProvisioningCriteriaResponse'; +// @ts-ignore +import { PostProvisioningCriteriaRequest } from '../models/postProvisioningCriteriaRequest'; +// @ts-ignore +import { PostProvisioningCriteriaResponse } from '../models/postProvisioningCriteriaResponse'; +// @ts-ignore +import { PutProvisioningCriteriaRequest } from '../models/putProvisioningCriteriaRequest'; +// @ts-ignore +import { PutProvisioningCriteriaResponse } from '../models/putProvisioningCriteriaResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ProvisioningCriteriaService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a new Provisioning Criteria + * Creates a new Provisioning Criteria Mandatory Fields: criteriaName provisioningcriteria Optional Fields: loanProducts + * @param postProvisioningCriteriaRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createProvisioningCriteria(postProvisioningCriteriaRequest: PostProvisioningCriteriaRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createProvisioningCriteria(postProvisioningCriteriaRequest: PostProvisioningCriteriaRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createProvisioningCriteria(postProvisioningCriteriaRequest: PostProvisioningCriteriaRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createProvisioningCriteria(postProvisioningCriteriaRequest: PostProvisioningCriteriaRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postProvisioningCriteriaRequest === null || postProvisioningCriteriaRequest === undefined) { + throw new Error('Required parameter postProvisioningCriteriaRequest was null or undefined when calling createProvisioningCriteria.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningcriteria`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postProvisioningCriteriaRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Deletes Provisioning Criteria + * Deletes Provisioning Criteria + * @param criteriaId criteriaId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteProvisioningCriteria(criteriaId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteProvisioningCriteria(criteriaId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteProvisioningCriteria(criteriaId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteProvisioningCriteria(criteriaId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (criteriaId === null || criteriaId === undefined) { + throw new Error('Required parameter criteriaId was null or undefined when calling deleteProvisioningCriteria.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningcriteria/${this.configuration.encodeParam({name: "criteriaId", value: criteriaId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves all created Provisioning Criterias + * Retrieves all created Provisioning Criterias + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllProvisioningCriterias(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllProvisioningCriterias(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllProvisioningCriterias(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllProvisioningCriterias(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningcriteria`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a Provisioning Criteria + * Retrieves a Provisioning Criteria + * @param criteriaId criteriaId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveProvisioningCriteria(criteriaId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveProvisioningCriteria(criteriaId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveProvisioningCriteria(criteriaId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveProvisioningCriteria(criteriaId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (criteriaId === null || criteriaId === undefined) { + throw new Error('Required parameter criteriaId was null or undefined when calling retrieveProvisioningCriteria.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningcriteria/${this.configuration.encodeParam({name: "criteriaId", value: criteriaId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate3(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate3(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate3(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate3(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningcriteria/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Updates a new Provisioning Criteria + * Updates a new Provisioning Criteria Optional Fields criteriaName, loanProducts, provisioningcriteria + * @param criteriaId criteriaId + * @param putProvisioningCriteriaRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateProvisioningCriteria(criteriaId: number, putProvisioningCriteriaRequest: PutProvisioningCriteriaRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateProvisioningCriteria(criteriaId: number, putProvisioningCriteriaRequest: PutProvisioningCriteriaRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateProvisioningCriteria(criteriaId: number, putProvisioningCriteriaRequest: PutProvisioningCriteriaRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateProvisioningCriteria(criteriaId: number, putProvisioningCriteriaRequest: PutProvisioningCriteriaRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (criteriaId === null || criteriaId === undefined) { + throw new Error('Required parameter criteriaId was null or undefined when calling updateProvisioningCriteria.'); + } + if (putProvisioningCriteriaRequest === null || putProvisioningCriteriaRequest === undefined) { + throw new Error('Required parameter putProvisioningCriteriaRequest was null or undefined when calling updateProvisioningCriteria.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningcriteria/${this.configuration.encodeParam({name: "criteriaId", value: criteriaId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putProvisioningCriteriaRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/provisioningEntries.service.ts b/packages/fineract-client/src/services/provisioningEntries.service.ts new file mode 100644 index 0000000000..964fd4a723 --- /dev/null +++ b/packages/fineract-client/src/services/provisioningEntries.service.ts @@ -0,0 +1,525 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { LoanProductProvisioningEntryData } from '../models/loanProductProvisioningEntryData'; +// @ts-ignore +import { PostProvisioningEntriesRequest } from '../models/postProvisioningEntriesRequest'; +// @ts-ignore +import { PostProvisioningEntriesResponse } from '../models/postProvisioningEntriesResponse'; +// @ts-ignore +import { ProvisioningEntryData } from '../models/provisioningEntryData'; +// @ts-ignore +import { PutProvisioningEntriesRequest } from '../models/putProvisioningEntriesRequest'; +// @ts-ignore +import { PutProvisioningEntriesResponse } from '../models/putProvisioningEntriesResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ProvisioningEntriesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create new Provisioning Entries + * Creates a new Provisioning Entries Mandatory Fields date dateFormat locale Optional Fields createjournalentries + * @param postProvisioningEntriesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createProvisioningEntries(postProvisioningEntriesRequest?: PostProvisioningEntriesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createProvisioningEntries(postProvisioningEntriesRequest?: PostProvisioningEntriesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createProvisioningEntries(postProvisioningEntriesRequest?: PostProvisioningEntriesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createProvisioningEntries(postProvisioningEntriesRequest?: PostProvisioningEntriesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningentries`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postProvisioningEntriesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Recreates Provisioning Entry + * Recreates Provisioning Entry | createjournalentry. + * @param entryId entryId + * @param command command=createjournalentry command=recreateprovisioningentry + * @param putProvisioningEntriesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modifyProvisioningEntry(entryId: number, command?: string, putProvisioningEntriesRequest?: PutProvisioningEntriesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public modifyProvisioningEntry(entryId: number, command?: string, putProvisioningEntriesRequest?: PutProvisioningEntriesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public modifyProvisioningEntry(entryId: number, command?: string, putProvisioningEntriesRequest?: PutProvisioningEntriesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public modifyProvisioningEntry(entryId: number, command?: string, putProvisioningEntriesRequest?: PutProvisioningEntriesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entryId === null || entryId === undefined) { + throw new Error('Required parameter entryId was null or undefined when calling modifyProvisioningEntry.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningentries/${this.configuration.encodeParam({name: "entryId", value: entryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putProvisioningEntriesRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List all Provisioning Entries + * @param offset offset + * @param limit limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllProvisioningEntries(offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllProvisioningEntries(offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllProvisioningEntries(offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllProvisioningEntries(offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningentries`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param entryId + * @param offset + * @param limit + * @param officeId + * @param productId + * @param categoryId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveProviioningEntries(entryId?: number, offset?: number, limit?: number, officeId?: number, productId?: number, categoryId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveProviioningEntries(entryId?: number, offset?: number, limit?: number, officeId?: number, productId?: number, categoryId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveProviioningEntries(entryId?: number, offset?: number, limit?: number, officeId?: number, productId?: number, categoryId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveProviioningEntries(entryId?: number, offset?: number, limit?: number, officeId?: number, productId?: number, categoryId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (entryId !== undefined && entryId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + entryId, 'entryId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + if (categoryId !== undefined && categoryId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + categoryId, 'categoryId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningentries/entries`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a Provisioning Entry + * Returns the details of a generated Provisioning Entry. + * @param entryId entryId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveProvisioningEntry(entryId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveProvisioningEntry(entryId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveProvisioningEntry(entryId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveProvisioningEntry(entryId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entryId === null || entryId === undefined) { + throw new Error('Required parameter entryId was null or undefined when calling retrieveProvisioningEntry.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/provisioningentries/${this.configuration.encodeParam({name: "entryId", value: entryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/rate.service.ts b/packages/fineract-client/src/services/rate.service.ts new file mode 100644 index 0000000000..0af295024c --- /dev/null +++ b/packages/fineract-client/src/services/rate.service.ts @@ -0,0 +1,386 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class RateService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createRate(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createRate(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createRate(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createRate(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/rates`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAllRates(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getAllRates(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAllRates(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getAllRates(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/rates`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param rateId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveRate(rateId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveRate(rateId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveRate(rateId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveRate(rateId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (rateId === null || rateId === undefined) { + throw new Error('Required parameter rateId was null or undefined when calling retrieveRate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/rates/${this.configuration.encodeParam({name: "rateId", value: rateId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param rateId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateRate(rateId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateRate(rateId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateRate(rateId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateRate(rateId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (rateId === null || rateId === undefined) { + throw new Error('Required parameter rateId was null or undefined when calling updateRate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/rates/${this.configuration.encodeParam({name: "rateId", value: rateId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/recurringDepositAccount.service.ts b/packages/fineract-client/src/services/recurringDepositAccount.service.ts new file mode 100644 index 0000000000..34c9facea5 --- /dev/null +++ b/packages/fineract-client/src/services/recurringDepositAccount.service.ts @@ -0,0 +1,1166 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteRecurringDepositAccountsResponse } from '../models/deleteRecurringDepositAccountsResponse'; +// @ts-ignore +import { GetRecurringDepositAccountsAccountIdResponse } from '../models/getRecurringDepositAccountsAccountIdResponse'; +// @ts-ignore +import { GetRecurringDepositAccountsResponse } from '../models/getRecurringDepositAccountsResponse'; +// @ts-ignore +import { GetRecurringDepositAccountsTemplateResponse } from '../models/getRecurringDepositAccountsTemplateResponse'; +// @ts-ignore +import { PostRecurringDepositAccountsAccountIdResponse } from '../models/postRecurringDepositAccountsAccountIdResponse'; +// @ts-ignore +import { PostRecurringDepositAccountsRequest } from '../models/postRecurringDepositAccountsRequest'; +// @ts-ignore +import { PostRecurringDepositAccountsResponse } from '../models/postRecurringDepositAccountsResponse'; +// @ts-ignore +import { PutRecurringDepositAccountsAccountIdRequest } from '../models/putRecurringDepositAccountsAccountIdRequest'; +// @ts-ignore +import { PutRecurringDepositAccountsAccountIdResponse } from '../models/putRecurringDepositAccountsAccountIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class RecurringDepositAccountService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param accountId accountId + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public accountClosureTemplate1(accountId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public accountClosureTemplate1(accountId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public accountClosureTemplate1(accountId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public accountClosureTemplate1(accountId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling accountClosureTemplate1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a recurring deposit application + * At present we support hard delete of recurring deposit application so long as its in \'Submitted and pending approval\' state. One the application is moves past this state, it is not possible to do a \'hard\' delete of the application or the account. An API endpoint will be added to close/de-activate the recurring deposit account. + * @param accountId accountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete17(accountId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete17(accountId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete17(accountId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete17(accountId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling delete17.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param staffId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getRecurringDepositTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getRecurringDepositTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getRecurringDepositTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getRecurringDepositTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getRecurringDepositTransactionTemplate(officeId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getRecurringDepositTransactionTemplate(officeId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getRecurringDepositTransactionTemplate(officeId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getRecurringDepositTransactionTemplate(officeId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/transactions/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Approve recurring deposit application | Undo approval recurring deposit application | Reject recurring deposit application | Withdraw recurring deposit application | Activate a recurring deposit account | Update the recommended deposit amount for a recurring deposit account | Close a recurring deposit account | Premature Close a recurring deposit account | Calculate Premature amount on Recurring deposit account | Calculate Interest on recurring Deposit Account | Post Interest on recurring Deposit Account + * Approve recurring deposit application: Approves recurring deposit application so long as its in \'Submitted and pending approval\' state. Undo approval recurring deposit application: Will move \'approved\' recurring deposit application back to \'Submitted and pending approval\' state. Reject recurring deposit application Rejects recurring deposit application so long as its in \'Submitted and pending approval\' state. Withdraw recurring deposit application: Used when an applicant withdraws from the recurring deposit application. It must be in \'Submitted and pending approval\' state. Activate a recurring deposit account: Results in an approved recurring deposit application being converted into an \'active\' recurring deposit account. Update the recommended deposit amount for a recurring deposit account: Updates the recommended deposit amount for a RD account as on the effective date. Close a recurring deposit account Results in a Matured recurring deposit account being converted into a \'closed\' recurring deposit account. On account close allowed actions are.Premature Close a recurring deposit account: Results in an Active recurring deposit account being converted into a \'Premature Closed\' recurring deposit account with options to withdraw prematured amount. (premature amount is calculated using interest rate chart applicable along with penal interest if any.) On account premature closure allowed actions are. Calculate Premature amount on Recurring deposit account: Calculate premature amount on recurring deposit till premature close date. Premature amount is calculated based on interest chart and penal interest applicable if any. Calculate Interest on recurring Deposit Account: Calculates interest earned on a recurring deposit account based on todays date. It does not attempt to post or credit the interest on the account. That is responsibility of the Post Interest API that will likely be called by overnight process. Post Interest on recurring Deposit Account: Calculates and Posts interest earned on a recurring deposit account based on todays date and whether an interest posting or crediting event is due. Showing request/response for \'Post Interest on recurring Deposit Account\' + * @param accountId accountId + * @param body + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleCommands5(accountId: number, body: object, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public handleCommands5(accountId: number, body: object, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands5(accountId: number, body: object, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands5(accountId: number, body: object, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling handleCommands5.'); + } + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling handleCommands5.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postRecurringDepositTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postRecurringDepositTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postRecurringDepositTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postRecurringDepositTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postRecurringDepositTransactionsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postRecurringDepositTransactionsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postRecurringDepositTransactionsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postRecurringDepositTransactionsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/transactions/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Recurring deposit applications/accounts + * Lists Recurring deposit applications/accounts Example Requests: recurringdepositaccounts recurringdepositaccounts?fields=name + * @param paged paged + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll31(paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll31(paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll31(paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll31(paged?: boolean, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (paged !== undefined && paged !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + paged, 'paged'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a recurring deposit application/account + * Retrieves a recurring deposit application/account Example Requests : recurringdepositaccounts/1 recurringdepositaccounts/1?associations=all + * @param accountId accountId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param chargeStatus chargeStatus + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne22(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne22(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne22(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne22(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling retrieveOne22.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + if (chargeStatus !== undefined && chargeStatus !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + chargeStatus, 'chargeStatus'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Submit new recurring deposit application + * Submits new recurring deposit application Mandatory Fields: clientId or groupId, productId, submittedOnDate, depositAmount, depositPeriod, depositPeriodFrequencyId Optional Fields: accountNo, externalId, fieldOfficerId,linkAccountId(if provided initial deposit amount will be collected from this account),transferInterestToSavings(By enabling this flag all interest postings will be transferred to linked saving account ) Inherited from Product (if not provided): interestCompoundingPeriodType, interestCalculationType, interestCalculationDaysInYearType, lockinPeriodFrequency, lockinPeriodFrequencyType, preClosurePenalApplicable, preClosurePenalInterest, preClosurePenalInterestOnTypeId, charts, withHoldTax + * @param postRecurringDepositAccountsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public submitApplication1(postRecurringDepositAccountsRequest: PostRecurringDepositAccountsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public submitApplication1(postRecurringDepositAccountsRequest: PostRecurringDepositAccountsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public submitApplication1(postRecurringDepositAccountsRequest: PostRecurringDepositAccountsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public submitApplication1(postRecurringDepositAccountsRequest: PostRecurringDepositAccountsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postRecurringDepositAccountsRequest === null || postRecurringDepositAccountsRequest === undefined) { + throw new Error('Required parameter postRecurringDepositAccountsRequest was null or undefined when calling submitApplication1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postRecurringDepositAccountsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve recurring Deposit Account Template + * This is a convenience resource. It can be useful when building maintenance user interface screens for recurring deposit applications. The template data returned consists of any or all of: Field Defaults Allowed Value Lists Example Requests: recurringdepositaccounts/template?clientId=1 recurringdepositaccounts/template?clientId=1&productId=1 + * @param clientId clientId + * @param groupId groupId + * @param productId productId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template13(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template13(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template13(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template13(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (groupId !== undefined && groupId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + groupId, 'groupId'); + } + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Modify a recurring deposit application + * Recurring deposit 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. Specific api endpoints will be created to allow change of interest detail such as rate, compounding period, posting period etc + * @param accountId accountId + * @param putRecurringDepositAccountsAccountIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update18(accountId: number, putRecurringDepositAccountsAccountIdRequest: PutRecurringDepositAccountsAccountIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update18(accountId: number, putRecurringDepositAccountsAccountIdRequest: PutRecurringDepositAccountsAccountIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update18(accountId: number, putRecurringDepositAccountsAccountIdRequest: PutRecurringDepositAccountsAccountIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update18(accountId: number, putRecurringDepositAccountsAccountIdRequest: PutRecurringDepositAccountsAccountIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling update18.'); + } + if (putRecurringDepositAccountsAccountIdRequest === null || putRecurringDepositAccountsAccountIdRequest === undefined) { + throw new Error('Required parameter putRecurringDepositAccountsAccountIdRequest was null or undefined when calling update18.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putRecurringDepositAccountsAccountIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/recurringDepositAccountTransactions.service.ts b/packages/fineract-client/src/services/recurringDepositAccountTransactions.service.ts new file mode 100644 index 0000000000..c8f6861021 --- /dev/null +++ b/packages/fineract-client/src/services/recurringDepositAccountTransactions.service.ts @@ -0,0 +1,450 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetRecurringDepositAccountsRecurringDepositAccountIdTransactionsTemplateResponse } from '../models/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTemplateResponse'; +// @ts-ignore +import { GetRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse } from '../models/getRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse'; +// @ts-ignore +import { PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest } from '../models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest'; +// @ts-ignore +import { PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsResponse } from '../models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsResponse'; +// @ts-ignore +import { PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse } from '../models/postRecurringDepositAccountsRecurringDepositAccountIdTransactionsTransactionIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class RecurringDepositAccountTransactionsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Adjust Transaction | Undo transaction + * Adjust Transaction: This command modifies the given transaction. Undo transaction: This command reverses the given transaction. Showing request/response for \'Adjust Transaction\' + * @param recurringDepositAccountId recurringDepositAccountId + * @param transactionId transactionId + * @param postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleTransactionCommands(recurringDepositAccountId: number, transactionId: number, postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest: PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public handleTransactionCommands(recurringDepositAccountId: number, transactionId: number, postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest: PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleTransactionCommands(recurringDepositAccountId: number, transactionId: number, postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest: PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleTransactionCommands(recurringDepositAccountId: number, transactionId: number, postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest: PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (recurringDepositAccountId === null || recurringDepositAccountId === undefined) { + throw new Error('Required parameter recurringDepositAccountId was null or undefined when calling handleTransactionCommands.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling handleTransactionCommands.'); + } + if (postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest === null || postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest === undefined) { + throw new Error('Required parameter postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest was null or undefined when calling handleTransactionCommands.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/${this.configuration.encodeParam({name: "recurringDepositAccountId", value: recurringDepositAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Recurring Deposit Account Transaction + * Retrieves Recurring Deposit Account Transaction Example Requests: recurringdepositaccounts/1/transactions/1 + * @param recurringDepositAccountId recurringDepositAccountId + * @param transactionId transactionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne21(recurringDepositAccountId: number, transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne21(recurringDepositAccountId: number, transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne21(recurringDepositAccountId: number, transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne21(recurringDepositAccountId: number, transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (recurringDepositAccountId === null || recurringDepositAccountId === undefined) { + throw new Error('Required parameter recurringDepositAccountId was null or undefined when calling retrieveOne21.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling retrieveOne21.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/${this.configuration.encodeParam({name: "recurringDepositAccountId", value: recurringDepositAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Recurring Deposit Account Transaction Template + * 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 Requests: recurringdepositaccounts/1/transactions/template?command=deposit recurringdepositaccounts/1/transactions/template?command=withdrawal + * @param recurringDepositAccountId recurringDepositAccountId + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate16(recurringDepositAccountId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate16(recurringDepositAccountId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate16(recurringDepositAccountId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate16(recurringDepositAccountId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (recurringDepositAccountId === null || recurringDepositAccountId === undefined) { + throw new Error('Required parameter recurringDepositAccountId was null or undefined when calling retrieveTemplate16.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/${this.configuration.encodeParam({name: "recurringDepositAccountId", value: recurringDepositAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Deposit Transaction | Withdrawal Transaction + * Deposit Transaction: Used for a deposit transaction Withdrawal Transaction: Used for a Withdrawal Transaction Showing request/response for Deposit Transaction + * @param recurringDepositAccountId recurringDepositAccountId + * @param postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public transaction1(recurringDepositAccountId: number, postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest: PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public transaction1(recurringDepositAccountId: number, postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest: PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transaction1(recurringDepositAccountId: number, postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest: PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transaction1(recurringDepositAccountId: number, postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest: PostRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (recurringDepositAccountId === null || recurringDepositAccountId === undefined) { + throw new Error('Required parameter recurringDepositAccountId was null or undefined when calling transaction1.'); + } + if (postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest === null || postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest === undefined) { + throw new Error('Required parameter postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest was null or undefined when calling transaction1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositaccounts/${this.configuration.encodeParam({name: "recurringDepositAccountId", value: recurringDepositAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postRecurringDepositAccountsRecurringDepositAccountIdTransactionsRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/recurringDepositProduct.service.ts b/packages/fineract-client/src/services/recurringDepositProduct.service.ts new file mode 100644 index 0000000000..9c9d9faa55 --- /dev/null +++ b/packages/fineract-client/src/services/recurringDepositProduct.service.ts @@ -0,0 +1,552 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteRecurringDepositProductsProductIdResponse } from '../models/deleteRecurringDepositProductsProductIdResponse'; +// @ts-ignore +import { GetRecurringDepositProductsProductIdResponse } from '../models/getRecurringDepositProductsProductIdResponse'; +// @ts-ignore +import { GetRecurringDepositProductsResponse } from '../models/getRecurringDepositProductsResponse'; +// @ts-ignore +import { PostRecurringDepositProductsRequest } from '../models/postRecurringDepositProductsRequest'; +// @ts-ignore +import { PostRecurringDepositProductsResponse } from '../models/postRecurringDepositProductsResponse'; +// @ts-ignore +import { PutRecurringDepositProductsRequest } from '../models/putRecurringDepositProductsRequest'; +// @ts-ignore +import { PutRecurringDepositProductsResponse } from '../models/putRecurringDepositProductsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class RecurringDepositProductService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Recurring Deposit Product + * Creates a Recurring Deposit Product Mandatory Fields: name, shortName, description, currencyCode, digitsAfterDecimal,inMultiplesOf, interestCompoundingPeriodType, interestCalculationType, interestCalculationDaysInYearType, minDepositTerm, minDepositTermTypeId, recurringDepositFrequency, recurringDepositFrequencyTypeId, accountingRule, depositAmount Mandatory Fields for Cash based accounting (accountingRule = 2): savingsReferenceAccountId, savingsControlAccountId, interestOnSavingsAccountId, incomeFromFeeAccountId, transfersInSuspenseAccountId, incomeFromPenaltyAccountId Optional Fields: lockinPeriodFrequency, lockinPeriodFrequencyType, maxDepositTerm, maxDepositTermTypeId, inMultiplesOfDepositTerm, inMultiplesOfDepositTermTypeId, preClosurePenalApplicable, preClosurePenalInterest, preClosurePenalInterestOnTypeId, feeToIncomeAccountMappings, penaltyToIncomeAccountMappings, charges, charts, minDepositAmount, maxDepositAmount, withHoldTax, taxGroupId + * @param postRecurringDepositProductsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create12(postRecurringDepositProductsRequest: PostRecurringDepositProductsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create12(postRecurringDepositProductsRequest: PostRecurringDepositProductsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create12(postRecurringDepositProductsRequest: PostRecurringDepositProductsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create12(postRecurringDepositProductsRequest: PostRecurringDepositProductsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postRecurringDepositProductsRequest === null || postRecurringDepositProductsRequest === undefined) { + throw new Error('Required parameter postRecurringDepositProductsRequest was null or undefined when calling create12.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositproducts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postRecurringDepositProductsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Recurring Deposit Product + * Deletes a Recurring Deposit Product + * @param productId productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete18(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete18(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete18(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete18(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling delete18.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Recuring Deposit Products + * Lists Recuring Deposit Products Example Requests: recurringdepositproducts recurringdepositproducts?fields=name + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll32(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll32(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll32(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll32(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositproducts`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Recurring Deposit Product + * Retrieves a Recurring Deposit Product Example Requests: recurringdepositproducts/1 recurringdepositproducts/1?template=true recurringdepositproducts/1?fields=name,description + * @param productId productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne23(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne23(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne23(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne23(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveOne23.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate17(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate17(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate17(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate17(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositproducts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Recurring Deposit Product + * Updates a Recurring Deposit Product + * @param productId productId + * @param putRecurringDepositProductsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update19(productId: number, putRecurringDepositProductsRequest: PutRecurringDepositProductsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update19(productId: number, putRecurringDepositProductsRequest: PutRecurringDepositProductsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update19(productId: number, putRecurringDepositProductsRequest: PutRecurringDepositProductsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update19(productId: number, putRecurringDepositProductsRequest: PutRecurringDepositProductsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling update19.'); + } + if (putRecurringDepositProductsRequest === null || putRecurringDepositProductsRequest === undefined) { + throw new Error('Required parameter putRecurringDepositProductsRequest was null or undefined when calling update19.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/recurringdepositproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putRecurringDepositProductsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/repaymentWithPostDatedChecks.service.ts b/packages/fineract-client/src/services/repaymentWithPostDatedChecks.service.ts new file mode 100644 index 0000000000..24ebf73772 --- /dev/null +++ b/packages/fineract-client/src/services/repaymentWithPostDatedChecks.service.ts @@ -0,0 +1,422 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeletePostDatedCheck } from '../models/deletePostDatedCheck'; +// @ts-ignore +import { GetPostDatedChecks } from '../models/getPostDatedChecks'; +// @ts-ignore +import { UpdatePostDatedCheckRequest } from '../models/updatePostDatedCheckRequest'; +// @ts-ignore +import { UpdatePostDatedCheckResponse } from '../models/updatePostDatedCheckResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class RepaymentWithPostDatedChecksService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Delete Post Dated Check + * Delete Post Dated Check + * @param postDatedCheckId postDatedCheckId + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deletePostDatedCheck(postDatedCheckId: number, loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deletePostDatedCheck(postDatedCheckId: number, loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public deletePostDatedCheck(postDatedCheckId: number, loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public deletePostDatedCheck(postDatedCheckId: number, loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postDatedCheckId === null || postDatedCheckId === undefined) { + throw new Error('Required parameter postDatedCheckId was null or undefined when calling deletePostDatedCheck.'); + } + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling deletePostDatedCheck.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/postdatedchecks/${this.configuration.encodeParam({name: "postDatedCheckId", value: postDatedCheckId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request>('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Get Post Dated Check + * Get Post Dated Check + * @param installmentId installmentId + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getPostDatedCheck(installmentId: number, loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getPostDatedCheck(installmentId: number, loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getPostDatedCheck(installmentId: number, loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getPostDatedCheck(installmentId: number, loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (installmentId === null || installmentId === undefined) { + throw new Error('Required parameter installmentId was null or undefined when calling getPostDatedCheck.'); + } + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling getPostDatedCheck.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/postdatedchecks/${this.configuration.encodeParam({name: "installmentId", value: installmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Get All Post Dated Checks + * Get All Post dated Checks + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getPostDatedChecks(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getPostDatedChecks(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getPostDatedChecks(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getPostDatedChecks(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling getPostDatedChecks.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/postdatedchecks`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Post Dated Check, Bounced Check + * Update Post Dated Check, Bounced Check + * @param postDatedCheckId postDatedCheckId + * @param loanId loanId + * @param updatePostDatedCheckRequest + * @param editType editType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updatePostDatedChecks(postDatedCheckId: number, loanId: number, updatePostDatedCheckRequest: UpdatePostDatedCheckRequest, editType?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updatePostDatedChecks(postDatedCheckId: number, loanId: number, updatePostDatedCheckRequest: UpdatePostDatedCheckRequest, editType?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public updatePostDatedChecks(postDatedCheckId: number, loanId: number, updatePostDatedCheckRequest: UpdatePostDatedCheckRequest, editType?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public updatePostDatedChecks(postDatedCheckId: number, loanId: number, updatePostDatedCheckRequest: UpdatePostDatedCheckRequest, editType?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postDatedCheckId === null || postDatedCheckId === undefined) { + throw new Error('Required parameter postDatedCheckId was null or undefined when calling updatePostDatedChecks.'); + } + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling updatePostDatedChecks.'); + } + if (updatePostDatedCheckRequest === null || updatePostDatedCheckRequest === undefined) { + throw new Error('Required parameter updatePostDatedCheckRequest was null or undefined when calling updatePostDatedChecks.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (editType !== undefined && editType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + editType, 'editType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/postdatedchecks/${this.configuration.encodeParam({name: "postDatedCheckId", value: postDatedCheckId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request>('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: updatePostDatedCheckRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/reportMailingJobs.service.ts b/packages/fineract-client/src/services/reportMailingJobs.service.ts new file mode 100644 index 0000000000..dcfeab4aa6 --- /dev/null +++ b/packages/fineract-client/src/services/reportMailingJobs.service.ts @@ -0,0 +1,589 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteReportMailingJobsResponse } from '../models/deleteReportMailingJobsResponse'; +// @ts-ignore +import { GetReportMailingJobsResponse } from '../models/getReportMailingJobsResponse'; +// @ts-ignore +import { GetReportMailingJobsTemplate } from '../models/getReportMailingJobsTemplate'; +// @ts-ignore +import { PostReportMailingJobsRequest } from '../models/postReportMailingJobsRequest'; +// @ts-ignore +import { PostReportMailingJobsResponse } from '../models/postReportMailingJobsResponse'; +// @ts-ignore +import { PutReportMailingJobsRequest } from '../models/putReportMailingJobsRequest'; +// @ts-ignore +import { PutReportMailingJobsResponse } from '../models/putReportMailingJobsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ReportMailingJobsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Report Mailing Job + * Mandatory Fields: name, startDateTime, stretchyReportId, emailRecipients, emailSubject, emailMessage, emailAttachmentFileFormatId, recurrence, isActive Optional Fields: description, stretchyReportParamMap + * @param postReportMailingJobsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createReportMailingJob(postReportMailingJobsRequest: PostReportMailingJobsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createReportMailingJob(postReportMailingJobsRequest: PostReportMailingJobsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createReportMailingJob(postReportMailingJobsRequest: PostReportMailingJobsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createReportMailingJob(postReportMailingJobsRequest: PostReportMailingJobsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postReportMailingJobsRequest === null || postReportMailingJobsRequest === undefined) { + throw new Error('Required parameter postReportMailingJobsRequest was null or undefined when calling createReportMailingJob.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reportmailingjobs`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postReportMailingJobsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Report Mailing Job + * @param entityId entityId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteReportMailingJob(entityId: number, body: object, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteReportMailingJob(entityId: number, body: object, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteReportMailingJob(entityId: number, body: object, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteReportMailingJob(entityId: number, body: object, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling deleteReportMailingJob.'); + } + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteReportMailingJob.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reportmailingjobs/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Report Mailing Jobs + * Example Requests: reportmailingjobs + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllReportMailingJobs(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllReportMailingJobs(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllReportMailingJobs(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllReportMailingJobs(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reportmailingjobs`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Report Mailing Job + * Example Requests: reportmailingjobs/1 reportmailingjobs/1?template=true + * @param entityId entityId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveReportMailingJob(entityId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveReportMailingJob(entityId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveReportMailingJob(entityId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveReportMailingJob(entityId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling retrieveReportMailingJob.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reportmailingjobs/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Report Mailing Job Details Template + * This is a convenience resource. It can be useful when building maintenance user interface screens for report mailing job applications. The template data returned consists of any or all of: Field Defaults Allowed description Lists Example Request: reportmailingjobs/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveReportMailingJobTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveReportMailingJobTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveReportMailingJobTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveReportMailingJobTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reportmailingjobs/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Report Mailing Job + * @param entityId entityId + * @param putReportMailingJobsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateReportMailingJob(entityId: number, putReportMailingJobsRequest: PutReportMailingJobsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateReportMailingJob(entityId: number, putReportMailingJobsRequest: PutReportMailingJobsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateReportMailingJob(entityId: number, putReportMailingJobsRequest: PutReportMailingJobsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateReportMailingJob(entityId: number, putReportMailingJobsRequest: PutReportMailingJobsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (entityId === null || entityId === undefined) { + throw new Error('Required parameter entityId was null or undefined when calling updateReportMailingJob.'); + } + if (putReportMailingJobsRequest === null || putReportMailingJobsRequest === undefined) { + throw new Error('Required parameter putReportMailingJobsRequest was null or undefined when calling updateReportMailingJob.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reportmailingjobs/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putReportMailingJobsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/reports.service.ts b/packages/fineract-client/src/services/reports.service.ts new file mode 100644 index 0000000000..5c4a794ec7 --- /dev/null +++ b/packages/fineract-client/src/services/reports.service.ts @@ -0,0 +1,553 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteReportsResponse } from '../models/deleteReportsResponse'; +// @ts-ignore +import { GetReportsResponse } from '../models/getReportsResponse'; +// @ts-ignore +import { GetReportsTemplateResponse } from '../models/getReportsTemplateResponse'; +// @ts-ignore +import { PostReportsResponse } from '../models/postReportsResponse'; +// @ts-ignore +import { PostRepostRequest } from '../models/postRepostRequest'; +// @ts-ignore +import { PutReportRequest } from '../models/putReportRequest'; +// @ts-ignore +import { PutReportResponse } from '../models/putReportResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ReportsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Report + * @param postRepostRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createReport(postRepostRequest: PostRepostRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createReport(postRepostRequest: PostRepostRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createReport(postRepostRequest: PostRepostRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createReport(postRepostRequest: PostRepostRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postRepostRequest === null || postRepostRequest === undefined) { + throw new Error('Required parameter postRepostRequest was null or undefined when calling createReport.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reports`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postRepostRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Report + * Only non-core reports can be deleted. + * @param id id + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteReport(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteReport(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteReport(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteReport(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling deleteReport.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reports/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Report Template + * 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 Request : reports/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOfficeTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOfficeTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOfficeTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOfficeTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reports/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Report + * Example Requests: reports/1 reports/1?template=true + * @param id id + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveReport(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveReport(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveReport(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveReport(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling retrieveReport.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reports/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Reports + * Lists all reports and their parameters. Example Request: reports + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveReportList(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveReportList(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveReportList(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveReportList(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reports`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Report + * Only the useReport description can be updated for core reports. + * @param id id + * @param putReportRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateReport(id: number, putReportRequest: PutReportRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateReport(id: number, putReportRequest: PutReportRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateReport(id: number, putReportRequest: PutReportRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateReport(id: number, putReportRequest: PutReportRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling updateReport.'); + } + if (putReportRequest === null || putReportRequest === undefined) { + throw new Error('Required parameter putReportRequest was null or undefined when calling updateReport.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/reports/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putReportRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/rescheduleLoans.service.ts b/packages/fineract-client/src/services/rescheduleLoans.service.ts new file mode 100644 index 0000000000..200ef0dfd2 --- /dev/null +++ b/packages/fineract-client/src/services/rescheduleLoans.service.ts @@ -0,0 +1,509 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetLoanRescheduleRequestResponse } from '../models/getLoanRescheduleRequestResponse'; +// @ts-ignore +import { GetRescheduleReasonsTemplateResponse } from '../models/getRescheduleReasonsTemplateResponse'; +// @ts-ignore +import { PostCreateRescheduleLoansRequest } from '../models/postCreateRescheduleLoansRequest'; +// @ts-ignore +import { PostCreateRescheduleLoansResponse } from '../models/postCreateRescheduleLoansResponse'; +// @ts-ignore +import { PostUpdateRescheduleLoansRequest } from '../models/postUpdateRescheduleLoansRequest'; +// @ts-ignore +import { PostUpdateRescheduleLoansResponse } from '../models/postUpdateRescheduleLoansResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class RescheduleLoansService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create loan reschedule request + * Create a loan reschedule request. + * @param postCreateRescheduleLoansRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createLoanRescheduleRequest(postCreateRescheduleLoansRequest: PostCreateRescheduleLoansRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createLoanRescheduleRequest(postCreateRescheduleLoansRequest: PostCreateRescheduleLoansRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createLoanRescheduleRequest(postCreateRescheduleLoansRequest: PostCreateRescheduleLoansRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createLoanRescheduleRequest(postCreateRescheduleLoansRequest: PostCreateRescheduleLoansRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postCreateRescheduleLoansRequest === null || postCreateRescheduleLoansRequest === undefined) { + throw new Error('Required parameter postCreateRescheduleLoansRequest was null or undefined when calling createLoanRescheduleRequest.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/rescheduleloans`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postCreateRescheduleLoansRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve loan reschedule request by schedule id + * Retrieve loan reschedule request by schedule id + * @param scheduleId + * @param command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public readLoanRescheduleRequest(scheduleId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public readLoanRescheduleRequest(scheduleId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public readLoanRescheduleRequest(scheduleId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public readLoanRescheduleRequest(scheduleId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (scheduleId === null || scheduleId === undefined) { + throw new Error('Required parameter scheduleId was null or undefined when calling readLoanRescheduleRequest.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/rescheduleloans/${this.configuration.encodeParam({name: "scheduleId", value: scheduleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve all reschedule requests + * Retrieve all reschedule requests. + * @param command + * @param loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllRescheduleRequest(command?: string, loanId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllRescheduleRequest(command?: string, loanId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllRescheduleRequest(command?: string, loanId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllRescheduleRequest(command?: string, loanId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + if (loanId !== undefined && loanId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + loanId, 'loanId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/rescheduleloans`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve all reschedule loan reasons + * Retrieve all reschedule loan reasons as a template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate10(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate10(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate10(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate10(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/rescheduleloans/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update loan reschedule request + * Update a loan reschedule request by either approving/rejecting it. + * @param scheduleId + * @param postUpdateRescheduleLoansRequest + * @param command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateLoanRescheduleRequest(scheduleId: number, postUpdateRescheduleLoansRequest: PostUpdateRescheduleLoansRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateLoanRescheduleRequest(scheduleId: number, postUpdateRescheduleLoansRequest: PostUpdateRescheduleLoansRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanRescheduleRequest(scheduleId: number, postUpdateRescheduleLoansRequest: PostUpdateRescheduleLoansRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateLoanRescheduleRequest(scheduleId: number, postUpdateRescheduleLoansRequest: PostUpdateRescheduleLoansRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (scheduleId === null || scheduleId === undefined) { + throw new Error('Required parameter scheduleId was null or undefined when calling updateLoanRescheduleRequest.'); + } + if (postUpdateRescheduleLoansRequest === null || postUpdateRescheduleLoansRequest === undefined) { + throw new Error('Required parameter postUpdateRescheduleLoansRequest was null or undefined when calling updateLoanRescheduleRequest.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/rescheduleloans/${this.configuration.encodeParam({name: "scheduleId", value: scheduleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postUpdateRescheduleLoansRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/roles.service.ts b/packages/fineract-client/src/services/roles.service.ts new file mode 100644 index 0000000000..dcf4f42580 --- /dev/null +++ b/packages/fineract-client/src/services/roles.service.ts @@ -0,0 +1,730 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteRolesRoleIdResponse } from '../models/deleteRolesRoleIdResponse'; +// @ts-ignore +import { GetRolesResponse } from '../models/getRolesResponse'; +// @ts-ignore +import { GetRolesRoleIdPermissionsResponse } from '../models/getRolesRoleIdPermissionsResponse'; +// @ts-ignore +import { GetRolesRoleIdResponse } from '../models/getRolesRoleIdResponse'; +// @ts-ignore +import { PostRolesRequest } from '../models/postRolesRequest'; +// @ts-ignore +import { PostRolesResponse } from '../models/postRolesResponse'; +// @ts-ignore +import { PostRolesRoleIdResponse } from '../models/postRolesRoleIdResponse'; +// @ts-ignore +import { PutRolesRoleIdPermissionsRequest } from '../models/putRolesRoleIdPermissionsRequest'; +// @ts-ignore +import { PutRolesRoleIdPermissionsResponse } from '../models/putRolesRoleIdPermissionsResponse'; +// @ts-ignore +import { PutRolesRoleIdRequest } from '../models/putRolesRoleIdRequest'; +// @ts-ignore +import { PutRolesRoleIdResponse } from '../models/putRolesRoleIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class RolesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Enable Role | Disable Role + * Description : Enable role in case role is disabled. | Disable the role in case role is not associated with any users. Example Request: https://DomainName/api/v1/roles/{roleId}?command=enable https://DomainName/api/v1/roles/{roleId}?command=disable + * @param roleId roleId + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public actionsOnRoles(roleId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public actionsOnRoles(roleId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public actionsOnRoles(roleId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public actionsOnRoles(roleId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (roleId === null || roleId === undefined) { + throw new Error('Required parameter roleId was null or undefined when calling actionsOnRoles.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/roles/${this.configuration.encodeParam({name: "roleId", value: roleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create a New Role + * Mandatory Fields name, description + * @param postRolesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createRole(postRolesRequest: PostRolesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createRole(postRolesRequest: PostRolesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createRole(postRolesRequest: PostRolesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createRole(postRolesRequest: PostRolesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postRolesRequest === null || postRolesRequest === undefined) { + throw new Error('Required parameter postRolesRequest was null or undefined when calling createRole.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/roles`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postRolesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Role + * Description : Delete the role in case role is not associated with any users. + * @param roleId roleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteRole(roleId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteRole(roleId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteRole(roleId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteRole(roleId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (roleId === null || roleId === undefined) { + throw new Error('Required parameter roleId was null or undefined when calling deleteRole.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/roles/${this.configuration.encodeParam({name: "roleId", value: roleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Roles + * Example Requests: roles roles?fields=name + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllRoles(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllRoles(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllRoles(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllRoles(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/roles`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Role + * Example Requests: roles/1 roles/1?fields=name + * @param roleId roleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveRole(roleId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveRole(roleId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveRole(roleId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveRole(roleId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (roleId === null || roleId === undefined) { + throw new Error('Required parameter roleId was null or undefined when calling retrieveRole.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/roles/${this.configuration.encodeParam({name: "roleId", value: roleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Role\'s Permissions + * Example Requests: roles/1/permissions + * @param roleId roleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveRolePermissions(roleId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveRolePermissions(roleId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveRolePermissions(roleId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveRolePermissions(roleId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (roleId === null || roleId === undefined) { + throw new Error('Required parameter roleId was null or undefined when calling retrieveRolePermissions.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/roles/${this.configuration.encodeParam({name: "roleId", value: roleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/permissions`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Role + * @param roleId roleId + * @param putRolesRoleIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateRole(roleId: number, putRolesRoleIdRequest: PutRolesRoleIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateRole(roleId: number, putRolesRoleIdRequest: PutRolesRoleIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateRole(roleId: number, putRolesRoleIdRequest: PutRolesRoleIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateRole(roleId: number, putRolesRoleIdRequest: PutRolesRoleIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (roleId === null || roleId === undefined) { + throw new Error('Required parameter roleId was null or undefined when calling updateRole.'); + } + if (putRolesRoleIdRequest === null || putRolesRoleIdRequest === undefined) { + throw new Error('Required parameter putRolesRoleIdRequest was null or undefined when calling updateRole.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/roles/${this.configuration.encodeParam({name: "roleId", value: roleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putRolesRoleIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Role\'s Permissions + * @param roleId roleId + * @param putRolesRoleIdPermissionsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateRolePermissions(roleId: number, putRolesRoleIdPermissionsRequest: PutRolesRoleIdPermissionsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateRolePermissions(roleId: number, putRolesRoleIdPermissionsRequest: PutRolesRoleIdPermissionsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateRolePermissions(roleId: number, putRolesRoleIdPermissionsRequest: PutRolesRoleIdPermissionsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateRolePermissions(roleId: number, putRolesRoleIdPermissionsRequest: PutRolesRoleIdPermissionsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (roleId === null || roleId === undefined) { + throw new Error('Required parameter roleId was null or undefined when calling updateRolePermissions.'); + } + if (putRolesRoleIdPermissionsRequest === null || putRolesRoleIdPermissionsRequest === undefined) { + throw new Error('Required parameter putRolesRoleIdPermissionsRequest was null or undefined when calling updateRolePermissions.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/roles/${this.configuration.encodeParam({name: "roleId", value: roleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/permissions`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putRolesRoleIdPermissionsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/runReports.service.ts b/packages/fineract-client/src/services/runReports.service.ts new file mode 100644 index 0000000000..0c9f46a73c --- /dev/null +++ b/packages/fineract-client/src/services/runReports.service.ts @@ -0,0 +1,260 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ReportExportType } from '../models/reportExportType'; +// @ts-ignore +import { RunReportsResponse } from '../models/runReportsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class RunReportsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Return all available export types for the specific report + * Returns the list of all available export types. + * @param reportName reportName + * @param isSelfServiceUserReport isSelfServiceUserReport + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllAvailableExports(reportName: string, isSelfServiceUserReport?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllAvailableExports(reportName: string, isSelfServiceUserReport?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllAvailableExports(reportName: string, isSelfServiceUserReport?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllAvailableExports(reportName: string, isSelfServiceUserReport?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (reportName === null || reportName === undefined) { + throw new Error('Required parameter reportName was null or undefined when calling retrieveAllAvailableExports.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (isSelfServiceUserReport !== undefined && isSelfServiceUserReport !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + isSelfServiceUserReport, 'isSelfServiceUserReport'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/runreports/availableExports/${this.configuration.encodeParam({name: "reportName", value: reportName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Running a Report + * This resource allows you to run and receive output from pre-defined Apache Fineract reports. Reports can also be used to provide data for searching and workflow functionality. The default output is a JSON formatted \"Generic Resultset\". The Generic Resultset contains Column Heading as well as Data information. However, you can export to CSV format by simply adding \"&exportCSV=true\" to the end of your URL. If Pentaho reports have been pre-defined, they can also be run through this resource. Pentaho reports can return HTML, PDF or CSV formats. The Apache Fineract reference application uses a JQuery plugin called stretchy reporting which, itself, uses this reports resource to provide a pretty flexible reporting User Interface (UI). Example Requests: runreports/Client%20Listing?R_officeId=1 runreports/Client%20Listing?R_officeId=1&exportCSV=true runreports/OfficeIdSelectOne?R_officeId=1&parameterType=true runreports/OfficeIdSelectOne?R_officeId=1&parameterType=true&exportCSV=true runreports/Expected%20Payments%20By%20Date%20-%20Formatted?R_endDate=2013-04-30&R_loanOfficerId=-1&R_officeId=1&R_startDate=2013-04-16&output-type=HTML&R_officeId=1 runreports/Expected%20Payments%20By%20Date%20-%20Formatted?R_endDate=2013-04-30&R_loanOfficerId=-1&R_officeId=1&R_startDate=2013-04-16&output-type=XLS&R_officeId=1 runreports/Expected%20Payments%20By%20Date%20-%20Formatted?R_endDate=2013-04-30&R_loanOfficerId=-1&R_officeId=1&R_startDate=2013-04-16&output-type=CSV&R_officeId=1 runreports/Expected%20Payments%20By%20Date%20-%20Formatted?R_endDate=2013-04-30&R_loanOfficerId=-1&R_officeId=1&R_startDate=2013-04-16&output-type=PDF&R_officeId=1 + * @param reportName reportName + * @param isSelfServiceUserReport isSelfServiceUserReport + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public runReport(reportName: string, isSelfServiceUserReport?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/pdf' | 'application/vnd.ms-excel' | 'text/csv' | 'text/html', context?: HttpContext}): Observable; + public runReport(reportName: string, isSelfServiceUserReport?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/pdf' | 'application/vnd.ms-excel' | 'text/csv' | 'text/html', context?: HttpContext}): Observable>; + public runReport(reportName: string, isSelfServiceUserReport?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/pdf' | 'application/vnd.ms-excel' | 'text/csv' | 'text/html', context?: HttpContext}): Observable>; + public runReport(reportName: string, isSelfServiceUserReport?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/pdf' | 'application/vnd.ms-excel' | 'text/csv' | 'text/html', context?: HttpContext}): Observable { + if (reportName === null || reportName === undefined) { + throw new Error('Required parameter reportName was null or undefined when calling runReport.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (isSelfServiceUserReport !== undefined && isSelfServiceUserReport !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + isSelfServiceUserReport, 'isSelfServiceUserReport'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json', + 'application/pdf', + 'application/vnd.ms-excel', + 'text/csv', + 'text/html' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/runreports/${this.configuration.encodeParam({name: "reportName", value: reportName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/sCHEDULERJOB.service.ts b/packages/fineract-client/src/services/sCHEDULERJOB.service.ts new file mode 100644 index 0000000000..1d36d42b51 --- /dev/null +++ b/packages/fineract-client/src/services/sCHEDULERJOB.service.ts @@ -0,0 +1,510 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ExecuteJobRequest } from '../models/executeJobRequest'; +// @ts-ignore +import { GetJobsJobIDJobRunHistoryResponse } from '../models/getJobsJobIDJobRunHistoryResponse'; +// @ts-ignore +import { GetJobsResponse } from '../models/getJobsResponse'; +// @ts-ignore +import { PutJobsJobIDRequest } from '../models/putJobsJobIDRequest'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SCHEDULERJOBService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Run a Job + * Manually Execute Specific Job. + * @param jobId jobId + * @param command command + * @param executeJobRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public executeJob(jobId: number, command?: string, executeJobRequest?: ExecuteJobRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public executeJob(jobId: number, command?: string, executeJobRequest?: ExecuteJobRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public executeJob(jobId: number, command?: string, executeJobRequest?: ExecuteJobRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public executeJob(jobId: number, command?: string, executeJobRequest?: ExecuteJobRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (jobId === null || jobId === undefined) { + throw new Error('Required parameter jobId was null or undefined when calling executeJob.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/jobs/${this.configuration.encodeParam({name: "jobId", value: jobId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: executeJobRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Scheduler Jobs + * Returns the list of jobs. Example Requests: jobs + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll8(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll8(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll8(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll8(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/jobs`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Job Run History + * Example Requests: jobs/5/runhistory?offset=0&limit=200 + * @param jobId jobId + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveHistory(jobId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveHistory(jobId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveHistory(jobId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveHistory(jobId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (jobId === null || jobId === undefined) { + throw new Error('Required parameter jobId was null or undefined when calling retrieveHistory.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/jobs/${this.configuration.encodeParam({name: "jobId", value: jobId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/runhistory`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Job + * Returns the details of a Job. Example Requests: jobs/5 + * @param jobId jobId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne5(jobId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne5(jobId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne5(jobId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne5(jobId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (jobId === null || jobId === undefined) { + throw new Error('Required parameter jobId was null or undefined when calling retrieveOne5.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/jobs/${this.configuration.encodeParam({name: "jobId", value: jobId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Job + * Updates the details of a job. + * @param jobId jobId + * @param putJobsJobIDRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateJobDetail(jobId: number, putJobsJobIDRequest: PutJobsJobIDRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public updateJobDetail(jobId: number, putJobsJobIDRequest: PutJobsJobIDRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public updateJobDetail(jobId: number, putJobsJobIDRequest: PutJobsJobIDRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public updateJobDetail(jobId: number, putJobsJobIDRequest: PutJobsJobIDRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (jobId === null || jobId === undefined) { + throw new Error('Required parameter jobId was null or undefined when calling updateJobDetail.'); + } + if (putJobsJobIDRequest === null || putJobsJobIDRequest === undefined) { + throw new Error('Required parameter putJobsJobIDRequest was null or undefined when calling updateJobDetail.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/jobs/${this.configuration.encodeParam({name: "jobId", value: jobId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putJobsJobIDRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/sMS.service.ts b/packages/fineract-client/src/services/sMS.service.ts new file mode 100644 index 0000000000..3d0e42e8e5 --- /dev/null +++ b/packages/fineract-client/src/services/sMS.service.ts @@ -0,0 +1,579 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SMSService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create2(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create2(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create2(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create2(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/sms`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param resourceId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete6(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete6(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete6(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete6(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling delete6.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/sms/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll10(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll10(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll10(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll10(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/sms`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param campaignId + * @param status + * @param fromDate + * @param toDate + * @param locale + * @param dateFormat + * @param sqlSearch + * @param offset + * @param limit + * @param orderBy + * @param sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllSmsByStatus(campaignId: number, status?: number, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllSmsByStatus(campaignId: number, status?: number, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllSmsByStatus(campaignId: number, status?: number, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllSmsByStatus(campaignId: number, status?: number, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, sqlSearch?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (campaignId === null || campaignId === undefined) { + throw new Error('Required parameter campaignId was null or undefined when calling retrieveAllSmsByStatus.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (status !== undefined && status !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + status, 'status'); + } + if (fromDate !== undefined && fromDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromDate, 'fromDate'); + } + if (toDate !== undefined && toDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toDate, 'toDate'); + } + if (locale !== undefined && locale !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + locale, 'locale'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/sms/${this.configuration.encodeParam({name: "campaignId", value: campaignId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/messageByStatus`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param resourceId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne6(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne6(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne6(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne6(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling retrieveOne6.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/sms/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param resourceId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update3(resourceId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update3(resourceId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update3(resourceId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update3(resourceId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (resourceId === null || resourceId === undefined) { + throw new Error('Required parameter resourceId was null or undefined when calling update3.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/sms/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/sPMAPILookUpTable.service.ts b/packages/fineract-client/src/services/sPMAPILookUpTable.service.ts new file mode 100644 index 0000000000..94d6fdd8ea --- /dev/null +++ b/packages/fineract-client/src/services/sPMAPILookUpTable.service.ts @@ -0,0 +1,324 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { LookupTableData } from '../models/lookupTableData'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SPMAPILookUpTableService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Lookup Table entry + * Add a new entry to a survey. Mandatory Fields key, score, validFrom, validTo + * @param surveyId Enter surveyId + * @param lookupTableData + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createLookupTable(surveyId: number, lookupTableData?: LookupTableData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public createLookupTable(surveyId: number, lookupTableData?: LookupTableData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public createLookupTable(surveyId: number, lookupTableData?: LookupTableData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public createLookupTable(surveyId: number, lookupTableData?: LookupTableData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (surveyId === null || surveyId === undefined) { + throw new Error('Required parameter surveyId was null or undefined when calling createLookupTable.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys/${this.configuration.encodeParam({name: "surveyId", value: surveyId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/lookuptables`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: lookupTableData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List all Lookup Table entries + * List all Lookup Table entries for a survey. + * @param surveyId Enter surveyId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public fetchLookupTables(surveyId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchLookupTables(surveyId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public fetchLookupTables(surveyId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public fetchLookupTables(surveyId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyId === null || surveyId === undefined) { + throw new Error('Required parameter surveyId was null or undefined when calling fetchLookupTables.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys/${this.configuration.encodeParam({name: "surveyId", value: surveyId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/lookuptables`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Lookup Table entry + * Retrieve a Lookup Table entry for a survey. + * @param surveyId Enter surveyId + * @param key Enter key + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public findLookupTable(surveyId: number, key: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public findLookupTable(surveyId: number, key: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findLookupTable(surveyId: number, key: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findLookupTable(surveyId: number, key: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyId === null || surveyId === undefined) { + throw new Error('Required parameter surveyId was null or undefined when calling findLookupTable.'); + } + if (key === null || key === undefined) { + throw new Error('Required parameter key was null or undefined when calling findLookupTable.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys/${this.configuration.encodeParam({name: "surveyId", value: surveyId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/lookuptables/${this.configuration.encodeParam({name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/savingsAccount.service.ts b/packages/fineract-client/src/services/savingsAccount.service.ts new file mode 100644 index 0000000000..3aee150f89 --- /dev/null +++ b/packages/fineract-client/src/services/savingsAccount.service.ts @@ -0,0 +1,1350 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteSavingsAccountsAccountIdResponse } from '../models/deleteSavingsAccountsAccountIdResponse'; +// @ts-ignore +import { GetSavingsAccountsAccountIdResponse } from '../models/getSavingsAccountsAccountIdResponse'; +// @ts-ignore +import { GetSavingsAccountsResponse } from '../models/getSavingsAccountsResponse'; +// @ts-ignore +import { GetSavingsAccountsTemplateResponse } from '../models/getSavingsAccountsTemplateResponse'; +// @ts-ignore +import { PostSavingsAccountsAccountIdRequest } from '../models/postSavingsAccountsAccountIdRequest'; +// @ts-ignore +import { PostSavingsAccountsAccountIdResponse } from '../models/postSavingsAccountsAccountIdResponse'; +// @ts-ignore +import { PostSavingsAccountsRequest } from '../models/postSavingsAccountsRequest'; +// @ts-ignore +import { PostSavingsAccountsResponse } from '../models/postSavingsAccountsResponse'; +// @ts-ignore +import { PutSavingsAccountsAccountIdRequest } from '../models/putSavingsAccountsAccountIdRequest'; +// @ts-ignore +import { PutSavingsAccountsAccountIdResponse } from '../models/putSavingsAccountsAccountIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SavingsAccountService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Delete a savings application + * At present we support hard delete of savings application so long as its in \'Submitted and pending approval\' state. One the application is moves past this state, it is not possible to do a \'hard\' delete of the application or the account. An API endpoint will be added to close/de-activate the savings account. + * @param accountId accountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete19(accountId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete19(accountId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete19(accountId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete19(accountId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling delete19.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param staffId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getSavingsTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getSavingsTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getSavingsTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getSavingsTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getSavingsTransactionTemplate(officeId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getSavingsTransactionTemplate(officeId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getSavingsTransactionTemplate(officeId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getSavingsTransactionTemplate(officeId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/transactions/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Approve savings application | Undo approval savings application | Assign Savings Officer | Unassign Savings Officer | Reject savings application | Withdraw savings application | Activate a savings account | Close a savings account | Calculate Interest on Savings Account | Post Interest on Savings Account | Block Savings Account | Unblock Savings Account | Block Savings Account Credit transactions | Unblock Savings Account Credit transactions | Block Savings Account Debit transactions | Unblock Savings Account debit transactions + * Approve savings application: Approves savings application so long as its in \'Submitted and pending approval\' state. Undo approval savings application: Will move \'approved\' savings application back to \'Submitted and pending approval\' state. Assign Savings Officer: Allows you to assign Savings Officer for existing Savings Account. Unassign Savings Officer: Allows you to unassign the Savings Officer. Reject savings application: Rejects savings application so long as its in \'Submitted and pending approval\' state. Withdraw savings application: Used when an applicant withdraws from the savings application. It must be in \'Submitted and pending approval\' state. Activate a savings account: Results in an approved savings application being converted into an \'active\' savings account. Close a savings account: Results in an Activated savings application being converted into an \'closed\' savings account. closedOnDate is closure date of savings account withdrawBalance is a boolean description, true value of this field performs a withdrawal transaction with account\'s running balance. Mandatory Fields: dateFormat,locale,closedOnDate Optional Fields: note, withdrawBalance, paymentTypeId, accountNumber, checkNumber, routingCode, receiptNumber, bankNumber Calculate Interest on Savings Account: Calculates interest earned on a savings account based on todays date. It does not attempt to post or credit the interest on the account. That is responsibility of the Post Interest API that will likely be called by overnight process. Post Interest on Savings Account: Calculates and Posts interest earned on a savings account based on today\'s date and whether an interest posting or crediting event is due. Block Savings Account: Blocks Savings account from all types of credit and debit transactions Unblock Savings Account: Unblock a blocked account. On unblocking account, user can perform debit and credit transactions Block Savings Account Credit transactions: Savings account will be blocked from all types of credit transactions. Unblock Savings Account Credit transactions: It unblocks the Saving account\'s credit operations. Now all types of credits can be transacted to Savings account Block Savings Account Debit transactions: All types of debit operations from Savings account wil be blocked Unblock Savings Account debit transactions: It unblocks the Saving account\'s debit operations. Now all types of debits can be transacted from Savings account Showing request/response for \'Unassign Savings Officer\' + * @param accountId accountId + * @param postSavingsAccountsAccountIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleCommands6(accountId: number, postSavingsAccountsAccountIdRequest: PostSavingsAccountsAccountIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public handleCommands6(accountId: number, postSavingsAccountsAccountIdRequest: PostSavingsAccountsAccountIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands6(accountId: number, postSavingsAccountsAccountIdRequest: PostSavingsAccountsAccountIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands6(accountId: number, postSavingsAccountsAccountIdRequest: PostSavingsAccountsAccountIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling handleCommands6.'); + } + if (postSavingsAccountsAccountIdRequest === null || postSavingsAccountsAccountIdRequest === undefined) { + throw new Error('Required parameter postSavingsAccountsAccountIdRequest was null or undefined when calling handleCommands6.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSavingsAccountsAccountIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param parentAccountId + * @param command + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleGSIMCommands(parentAccountId: number, command?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public handleGSIMCommands(parentAccountId: number, command?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleGSIMCommands(parentAccountId: number, command?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleGSIMCommands(parentAccountId: number, command?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (parentAccountId === null || parentAccountId === undefined) { + throw new Error('Required parameter parentAccountId was null or undefined when calling handleGSIMCommands.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/gsimcommands/${this.configuration.encodeParam({name: "parentAccountId", value: parentAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postSavingsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postSavingsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postSavingsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postSavingsTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postSavingsTransactionTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postSavingsTransactionTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postSavingsTransactionTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postSavingsTransactionTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/transactions/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List savings applications/accounts + * Lists savings applications/accounts Example Requests: savingsaccounts savingsaccounts?fields=name + * @param sqlSearch sqlSearch + * @param externalId externalId + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll33(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll33(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll33(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll33(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (externalId !== undefined && externalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalId, 'externalId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a savings application/account + * Retrieves a savings application/account Example Requests : savingsaccounts/1 savingsaccounts/1?associations=all + * @param accountId accountId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param chargeStatus chargeStatus + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne25(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne25(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne25(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne25(accountId: number, staffInSelectedOfficeOnly?: boolean, chargeStatus?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling retrieveOne25.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + if (chargeStatus !== undefined && chargeStatus !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + chargeStatus, 'chargeStatus'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Submit new savings application + * Submits new savings application Mandatory Fields: clientId or groupId, productId, submittedOnDate Optional Fields: accountNo, externalId, fieldOfficerId Inherited from Product (if not provided): nominalAnnualInterestRate, interestCompoundingPeriodType, interestCalculationType, interestCalculationDaysInYearType, minRequiredOpeningBalance, lockinPeriodFrequency, lockinPeriodFrequencyType, withdrawalFeeForTransfers, allowOverdraft, overdraftLimit, withHoldTax Additional Mandatory Field if Entity-Datatable Check is enabled for the entity of type Savings: datatables + * @param postSavingsAccountsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public submitApplication2(postSavingsAccountsRequest: PostSavingsAccountsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public submitApplication2(postSavingsAccountsRequest: PostSavingsAccountsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public submitApplication2(postSavingsAccountsRequest: PostSavingsAccountsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public submitApplication2(postSavingsAccountsRequest: PostSavingsAccountsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postSavingsAccountsRequest === null || postSavingsAccountsRequest === undefined) { + throw new Error('Required parameter postSavingsAccountsRequest was null or undefined when calling submitApplication2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSavingsAccountsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public submitGSIMApplication(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public submitGSIMApplication(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public submitGSIMApplication(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public submitGSIMApplication(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/gsim`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Savings Account Template + * 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 Requests: savingsaccounts/template?clientId=1 savingsaccounts/template?clientId=1&productId=1 + * @param clientId clientId + * @param groupId groupId + * @param productId productId + * @param staffInSelectedOfficeOnly staffInSelectedOfficeOnly + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template14(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template14(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template14(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template14(clientId?: number, groupId?: number, productId?: number, staffInSelectedOfficeOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (groupId !== undefined && groupId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + groupId, 'groupId'); + } + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + if (staffInSelectedOfficeOnly !== undefined && staffInSelectedOfficeOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInSelectedOfficeOnly, 'staffInSelectedOfficeOnly'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Modify a savings application | Modify savings account withhold tax applicability + * Modify a savings application: Savings 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. Specific api endpoints will be created to allow change of interest detail such as rate, compounding period, posting period etc Modify savings account withhold tax applicability: Savings application\'s withhold tax can be modified when in \'Active\' state. Once the application is activated, can modify the account withhold tax to post tax or vice-versaShowing request/response for \'Modify a savings application\' + * @param accountId accountId + * @param putSavingsAccountsAccountIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update20(accountId: number, putSavingsAccountsAccountIdRequest: PutSavingsAccountsAccountIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update20(accountId: number, putSavingsAccountsAccountIdRequest: PutSavingsAccountsAccountIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update20(accountId: number, putSavingsAccountsAccountIdRequest: PutSavingsAccountsAccountIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update20(accountId: number, putSavingsAccountsAccountIdRequest: PutSavingsAccountsAccountIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling update20.'); + } + if (putSavingsAccountsAccountIdRequest === null || putSavingsAccountsAccountIdRequest === undefined) { + throw new Error('Required parameter putSavingsAccountsAccountIdRequest was null or undefined when calling update20.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putSavingsAccountsAccountIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param parentAccountId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateGsim(parentAccountId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateGsim(parentAccountId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateGsim(parentAccountId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateGsim(parentAccountId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (parentAccountId === null || parentAccountId === undefined) { + throw new Error('Required parameter parentAccountId was null or undefined when calling updateGsim.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/gsim/${this.configuration.encodeParam({name: "parentAccountId", value: parentAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/savingsAccountTransactions.service.ts b/packages/fineract-client/src/services/savingsAccountTransactions.service.ts new file mode 100644 index 0000000000..e0e4ee23a4 --- /dev/null +++ b/packages/fineract-client/src/services/savingsAccountTransactions.service.ts @@ -0,0 +1,518 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { PagedRequestSavingsTransactionSearch } from '../models/pagedRequestSavingsTransactionSearch'; +// @ts-ignore +import { PostSavingsAccountBulkReversalTransactionsRequest } from '../models/postSavingsAccountBulkReversalTransactionsRequest'; +// @ts-ignore +import { PostSavingsAccountTransactionsRequest } from '../models/postSavingsAccountTransactionsRequest'; +// @ts-ignore +import { PostSavingsAccountTransactionsResponse } from '../models/postSavingsAccountTransactionsResponse'; +// @ts-ignore +import { SavingsAccountTransactionsSearchResponse } from '../models/savingsAccountTransactionsSearchResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SavingsAccountTransactionsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Undo/Reverse/Modify/Release Amount transaction API + * Undo/Reverse/Modify/Release Amount transaction API Example Requests: savingsaccounts/{savingsId}/transactions/{transactionId}?command=reverse Accepted command = undo, reverse, modify, releaseAmount + * @param savingsId + * @param transactionId + * @param postSavingsAccountBulkReversalTransactionsRequest + * @param command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adjustTransaction1(savingsId: number, transactionId: number, postSavingsAccountBulkReversalTransactionsRequest: PostSavingsAccountBulkReversalTransactionsRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public adjustTransaction1(savingsId: number, transactionId: number, postSavingsAccountBulkReversalTransactionsRequest: PostSavingsAccountBulkReversalTransactionsRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public adjustTransaction1(savingsId: number, transactionId: number, postSavingsAccountBulkReversalTransactionsRequest: PostSavingsAccountBulkReversalTransactionsRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public adjustTransaction1(savingsId: number, transactionId: number, postSavingsAccountBulkReversalTransactionsRequest: PostSavingsAccountBulkReversalTransactionsRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsId === null || savingsId === undefined) { + throw new Error('Required parameter savingsId was null or undefined when calling adjustTransaction1.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling adjustTransaction1.'); + } + if (postSavingsAccountBulkReversalTransactionsRequest === null || postSavingsAccountBulkReversalTransactionsRequest === undefined) { + throw new Error('Required parameter postSavingsAccountBulkReversalTransactionsRequest was null or undefined when calling adjustTransaction1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsId", value: savingsId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request>('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSavingsAccountBulkReversalTransactionsRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param savingsId + * @param transactionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne24(savingsId: number, transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne24(savingsId: number, transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne24(savingsId: number, transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne24(savingsId: number, transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsId === null || savingsId === undefined) { + throw new Error('Required parameter savingsId was null or undefined when calling retrieveOne24.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling retrieveOne24.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsId", value: savingsId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param savingsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate19(savingsId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate19(savingsId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate19(savingsId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate19(savingsId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsId === null || savingsId === undefined) { + throw new Error('Required parameter savingsId was null or undefined when calling retrieveTemplate19.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsId", value: savingsId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Search Savings Account Transactions + * @param savingsId savingsId + * @param pagedRequestSavingsTransactionSearch + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchTransactions(savingsId: number, pagedRequestSavingsTransactionSearch?: PagedRequestSavingsTransactionSearch, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public searchTransactions(savingsId: number, pagedRequestSavingsTransactionSearch?: PagedRequestSavingsTransactionSearch, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public searchTransactions(savingsId: number, pagedRequestSavingsTransactionSearch?: PagedRequestSavingsTransactionSearch, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public searchTransactions(savingsId: number, pagedRequestSavingsTransactionSearch?: PagedRequestSavingsTransactionSearch, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsId === null || savingsId === undefined) { + throw new Error('Required parameter savingsId was null or undefined when calling searchTransactions.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsId", value: savingsId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/search`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: pagedRequestSavingsTransactionSearch, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param savingsId + * @param postSavingsAccountTransactionsRequest + * @param command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public transaction2(savingsId: number, postSavingsAccountTransactionsRequest: PostSavingsAccountTransactionsRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public transaction2(savingsId: number, postSavingsAccountTransactionsRequest: PostSavingsAccountTransactionsRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transaction2(savingsId: number, postSavingsAccountTransactionsRequest: PostSavingsAccountTransactionsRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public transaction2(savingsId: number, postSavingsAccountTransactionsRequest: PostSavingsAccountTransactionsRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsId === null || savingsId === undefined) { + throw new Error('Required parameter savingsId was null or undefined when calling transaction2.'); + } + if (postSavingsAccountTransactionsRequest === null || postSavingsAccountTransactionsRequest === undefined) { + throw new Error('Required parameter postSavingsAccountTransactionsRequest was null or undefined when calling transaction2.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsId", value: savingsId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSavingsAccountTransactionsRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/savingsCharges.service.ts b/packages/fineract-client/src/services/savingsCharges.service.ts new file mode 100644 index 0000000000..6152f27619 --- /dev/null +++ b/packages/fineract-client/src/services/savingsCharges.service.ts @@ -0,0 +1,690 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse } from '../models/deleteSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse'; +// @ts-ignore +import { GetSavingsAccountsSavingsAccountIdChargesResponse } from '../models/getSavingsAccountsSavingsAccountIdChargesResponse'; +// @ts-ignore +import { GetSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse } from '../models/getSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse'; +// @ts-ignore +import { GetSavingsAccountsSavingsAccountIdChargesTemplateResponse } from '../models/getSavingsAccountsSavingsAccountIdChargesTemplateResponse'; +// @ts-ignore +import { PostSavingsAccountsSavingsAccountIdChargesRequest } from '../models/postSavingsAccountsSavingsAccountIdChargesRequest'; +// @ts-ignore +import { PostSavingsAccountsSavingsAccountIdChargesResponse } from '../models/postSavingsAccountsSavingsAccountIdChargesResponse'; +// @ts-ignore +import { PostSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest } from '../models/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest'; +// @ts-ignore +import { PostSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse } from '../models/postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse'; +// @ts-ignore +import { PutSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest } from '../models/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest'; +// @ts-ignore +import { PutSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse } from '../models/putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SavingsChargesService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Savings account Charge + * Creates a Savings account Charge Mandatory Fields for Savings account Charges: chargeId, amount chargeId, amount, dueDate, dateFormat, locale chargeId, amount, feeOnMonthDay, monthDayFormat, locale + * @param savingsAccountId savingsAccountId + * @param postSavingsAccountsSavingsAccountIdChargesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addSavingsAccountCharge(savingsAccountId: number, postSavingsAccountsSavingsAccountIdChargesRequest: PostSavingsAccountsSavingsAccountIdChargesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public addSavingsAccountCharge(savingsAccountId: number, postSavingsAccountsSavingsAccountIdChargesRequest: PostSavingsAccountsSavingsAccountIdChargesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addSavingsAccountCharge(savingsAccountId: number, postSavingsAccountsSavingsAccountIdChargesRequest: PostSavingsAccountsSavingsAccountIdChargesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addSavingsAccountCharge(savingsAccountId: number, postSavingsAccountsSavingsAccountIdChargesRequest: PostSavingsAccountsSavingsAccountIdChargesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsAccountId === null || savingsAccountId === undefined) { + throw new Error('Required parameter savingsAccountId was null or undefined when calling addSavingsAccountCharge.'); + } + if (postSavingsAccountsSavingsAccountIdChargesRequest === null || postSavingsAccountsSavingsAccountIdChargesRequest === undefined) { + throw new Error('Required parameter postSavingsAccountsSavingsAccountIdChargesRequest was null or undefined when calling addSavingsAccountCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsAccountId", value: savingsAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSavingsAccountsSavingsAccountIdChargesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Savings account Charge + * Note: Currently, A Savings account Charge may only be removed from Savings that are not yet approved. + * @param savingsAccountId savingsAccountId + * @param savingsAccountChargeId savingsAccountChargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsAccountId === null || savingsAccountId === undefined) { + throw new Error('Required parameter savingsAccountId was null or undefined when calling deleteSavingsAccountCharge.'); + } + if (savingsAccountChargeId === null || savingsAccountChargeId === undefined) { + throw new Error('Required parameter savingsAccountChargeId was null or undefined when calling deleteSavingsAccountCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsAccountId", value: savingsAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "savingsAccountChargeId", value: savingsAccountChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Pay a Savings account Charge | Waive off a Savings account Charge | Inactivate a Savings account Charge + * Pay a Savings account Charge: An active charge will be paid when savings account is active and having sufficient balance. Waive off a Savings account Charge: Outstanding charge amount will be waived off. Inactivate a Savings account Charge: A charge will be allowed to inactivate when savings account is active and not having any dues as of today. If charge is overpaid, corresponding charge payment transactions will be reversed. Showing request/response for \'Pay a Savings account Charge\' + * @param savingsAccountId savingsAccountId + * @param savingsAccountChargeId savingsAccountChargeId + * @param postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public payOrWaiveSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest: PostSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public payOrWaiveSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest: PostSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public payOrWaiveSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest: PostSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public payOrWaiveSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest: PostSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsAccountId === null || savingsAccountId === undefined) { + throw new Error('Required parameter savingsAccountId was null or undefined when calling payOrWaiveSavingsAccountCharge.'); + } + if (savingsAccountChargeId === null || savingsAccountChargeId === undefined) { + throw new Error('Required parameter savingsAccountChargeId was null or undefined when calling payOrWaiveSavingsAccountCharge.'); + } + if (postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest === null || postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest === undefined) { + throw new Error('Required parameter postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest was null or undefined when calling payOrWaiveSavingsAccountCharge.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsAccountId", value: savingsAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "savingsAccountChargeId", value: savingsAccountChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Savings Charges + * Lists Savings Charges Example Requests: savingsaccounts/1/charges savingsaccounts/1/charges?chargeStatus=all savingsaccounts/1/charges?chargeStatus=inactive savingsaccounts/1/charges?chargeStatus=active savingsaccounts/1/charges?fields=name,amountOrPercentage + * @param savingsAccountId savingsAccountId + * @param chargeStatus chargeStatus + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllSavingsAccountCharges(savingsAccountId: number, chargeStatus?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllSavingsAccountCharges(savingsAccountId: number, chargeStatus?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllSavingsAccountCharges(savingsAccountId: number, chargeStatus?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllSavingsAccountCharges(savingsAccountId: number, chargeStatus?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsAccountId === null || savingsAccountId === undefined) { + throw new Error('Required parameter savingsAccountId was null or undefined when calling retrieveAllSavingsAccountCharges.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (chargeStatus !== undefined && chargeStatus !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + chargeStatus, 'chargeStatus'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsAccountId", value: savingsAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Savings account Charge + * Retrieves a Savings account Charge Example Requests: /savingsaccounts/1/charges/5 /savingsaccounts/1/charges/5?fields=name,amountOrPercentage + * @param savingsAccountId savingsAccountId + * @param savingsAccountChargeId savingsAccountChargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsAccountId === null || savingsAccountId === undefined) { + throw new Error('Required parameter savingsAccountId was null or undefined when calling retrieveSavingsAccountCharge.'); + } + if (savingsAccountChargeId === null || savingsAccountChargeId === undefined) { + throw new Error('Required parameter savingsAccountChargeId was null or undefined when calling retrieveSavingsAccountCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsAccountId", value: savingsAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "savingsAccountChargeId", value: savingsAccountChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Savings Charges Template + * 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 Request: savingsaccounts/1/charges/template + * @param savingsAccountId savingsAccountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate18(savingsAccountId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate18(savingsAccountId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate18(savingsAccountId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate18(savingsAccountId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsAccountId === null || savingsAccountId === undefined) { + throw new Error('Required parameter savingsAccountId was null or undefined when calling retrieveTemplate18.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsAccountId", value: savingsAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Savings account Charge + * Currently Savings account Charges may be updated only if the Savings account is not yet approved. + * @param savingsAccountId savingsAccountId + * @param savingsAccountChargeId savingsAccountChargeId + * @param putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest: PutSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest: PutSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest: PutSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateSavingsAccountCharge(savingsAccountId: number, savingsAccountChargeId: number, putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest: PutSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (savingsAccountId === null || savingsAccountId === undefined) { + throw new Error('Required parameter savingsAccountId was null or undefined when calling updateSavingsAccountCharge.'); + } + if (savingsAccountChargeId === null || savingsAccountChargeId === undefined) { + throw new Error('Required parameter savingsAccountChargeId was null or undefined when calling updateSavingsAccountCharge.'); + } + if (putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest === null || putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest === undefined) { + throw new Error('Required parameter putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest was null or undefined when calling updateSavingsAccountCharge.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsaccounts/${this.configuration.encodeParam({name: "savingsAccountId", value: savingsAccountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "savingsAccountChargeId", value: savingsAccountChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putSavingsAccountsSavingsAccountIdChargesSavingsAccountChargeIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/savingsProduct.service.ts b/packages/fineract-client/src/services/savingsProduct.service.ts new file mode 100644 index 0000000000..6087e6ca2c --- /dev/null +++ b/packages/fineract-client/src/services/savingsProduct.service.ts @@ -0,0 +1,556 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteSavingsProductsProductIdResponse } from '../models/deleteSavingsProductsProductIdResponse'; +// @ts-ignore +import { GetSavingsProductsProductIdResponse } from '../models/getSavingsProductsProductIdResponse'; +// @ts-ignore +import { GetSavingsProductsResponse } from '../models/getSavingsProductsResponse'; +// @ts-ignore +import { GetSavingsProductsTemplateResponse } from '../models/getSavingsProductsTemplateResponse'; +// @ts-ignore +import { PostSavingsProductsRequest } from '../models/postSavingsProductsRequest'; +// @ts-ignore +import { PostSavingsProductsResponse } from '../models/postSavingsProductsResponse'; +// @ts-ignore +import { PutSavingsProductsProductIdRequest } from '../models/putSavingsProductsProductIdRequest'; +// @ts-ignore +import { PutSavingsProductsProductIdResponse } from '../models/putSavingsProductsProductIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SavingsProductService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Savings Product + * Creates a Savings Product Mandatory Fields: name, shortName, description, currencyCode, digitsAfterDecimal,inMultiplesOf, nominalAnnualInterestRate, interestCompoundingPeriodType, interestCalculationType, interestCalculationDaysInYearType,accountingRule Mandatory Fields for Cash based accounting (accountingRule = 2): savingsReferenceAccountId, savingsControlAccountId, interestOnSavingsAccountId, incomeFromFeeAccountId, transfersInSuspenseAccountId, incomeFromPenaltyAccountId Optional Fields: minRequiredOpeningBalance, lockinPeriodFrequency, lockinPeriodFrequencyType, withdrawalFeeForTransfers, paymentChannelToFundSourceMappings, feeToIncomeAccountMappings, penaltyToIncomeAccountMappings, charges, allowOverdraft, overdraftLimit, minBalanceForInterestCalculation,withHoldTax,taxGroupId,accountMapping, lienAllowed, maxAllowedLienLimit + * @param postSavingsProductsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create13(postSavingsProductsRequest: PostSavingsProductsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create13(postSavingsProductsRequest: PostSavingsProductsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create13(postSavingsProductsRequest: PostSavingsProductsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create13(postSavingsProductsRequest: PostSavingsProductsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postSavingsProductsRequest === null || postSavingsProductsRequest === undefined) { + throw new Error('Required parameter postSavingsProductsRequest was null or undefined when calling create13.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsproducts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSavingsProductsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a Savings Product + * Deletes a Savings Product + * @param productId productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete20(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete20(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete20(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete20(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling delete20.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Savings Products + * Lists Savings Products Example Requests: savingsproducts savingsproducts?fields=name + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll34(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll34(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll34(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll34(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsproducts`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Savings Product + * Retrieves a Savings Product Example Requests: savingsproducts/1 savingsproducts/1?template=true savingsproducts/1?fields=name,description + * @param productId productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne26(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne26(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne26(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne26(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveOne26.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Savings Product Template + * 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 Request: Account Mapping: savingsproducts/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate20(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate20(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate20(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate20(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsproducts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Savings Product + * Updates a Savings Product + * @param productId productId + * @param putSavingsProductsProductIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update21(productId: number, putSavingsProductsProductIdRequest: PutSavingsProductsProductIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update21(productId: number, putSavingsProductsProductIdRequest: PutSavingsProductsProductIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update21(productId: number, putSavingsProductsProductIdRequest: PutSavingsProductsProductIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update21(productId: number, putSavingsProductsProductIdRequest: PutSavingsProductsProductIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling update21.'); + } + if (putSavingsProductsProductIdRequest === null || putSavingsProductsProductIdRequest === undefined) { + throw new Error('Required parameter putSavingsProductsProductIdRequest was null or undefined when calling update21.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/savingsproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putSavingsProductsProductIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/scheduler.service.ts b/packages/fineract-client/src/services/scheduler.service.ts new file mode 100644 index 0000000000..f0b7b821e3 --- /dev/null +++ b/packages/fineract-client/src/services/scheduler.service.ts @@ -0,0 +1,237 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetSchedulerResponse } from '../models/getSchedulerResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SchedulerService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Activate Scheduler Jobs | Suspend Scheduler Jobs + * Activates the scheduler job service. | Suspends the scheduler job service. + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public changeSchedulerStatus(command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public changeSchedulerStatus(command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public changeSchedulerStatus(command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public changeSchedulerStatus(command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/scheduler`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Scheduler Status + * Returns the scheduler status. Example Requests: scheduler + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveStatus(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveStatus(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveStatus(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveStatus(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/scheduler`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/scoreCard.service.ts b/packages/fineract-client/src/services/scoreCard.service.ts new file mode 100644 index 0000000000..efcaecc58b --- /dev/null +++ b/packages/fineract-client/src/services/scoreCard.service.ts @@ -0,0 +1,394 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { Scorecard } from '../models/scorecard'; +// @ts-ignore +import { ScorecardData } from '../models/scorecardData'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ScoreCardService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a Scorecard entry + * Add a new entry to a survey. Mandatory Fields clientId, createdOn, questionId, responseId, staffId + * @param surveyId Enter surveyId + * @param scorecardData scorecardData + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createScorecard1(surveyId: number, scorecardData?: ScorecardData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public createScorecard1(surveyId: number, scorecardData?: ScorecardData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public createScorecard1(surveyId: number, scorecardData?: ScorecardData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public createScorecard1(surveyId: number, scorecardData?: ScorecardData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (surveyId === null || surveyId === undefined) { + throw new Error('Required parameter surveyId was null or undefined when calling createScorecard1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys/scorecards/${this.configuration.encodeParam({name: "surveyId", value: surveyId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: scorecardData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public findByClient1(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findByClient1(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public findByClient1(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public findByClient1(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling findByClient1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys/scorecards/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List all Scorecard entries + * List all Scorecard entries for a survey. + * @param surveyId Enter surveyId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public findBySurvey(surveyId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findBySurvey(surveyId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public findBySurvey(surveyId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public findBySurvey(surveyId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyId === null || surveyId === undefined) { + throw new Error('Required parameter surveyId was null or undefined when calling findBySurvey.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys/scorecards/${this.configuration.encodeParam({name: "surveyId", value: surveyId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param surveyId Enter surveyId + * @param clientId Enter clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public findBySurveyAndClient(surveyId: number, clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findBySurveyAndClient(surveyId: number, clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public findBySurveyAndClient(surveyId: number, clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public findBySurveyAndClient(surveyId: number, clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyId === null || surveyId === undefined) { + throw new Error('Required parameter surveyId was null or undefined when calling findBySurveyAndClient.'); + } + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling findBySurveyAndClient.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys/scorecards/${this.configuration.encodeParam({name: "surveyId", value: surveyId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/searchAPI.service.ts b/packages/fineract-client/src/services/searchAPI.service.ts new file mode 100644 index 0000000000..fe0d434630 --- /dev/null +++ b/packages/fineract-client/src/services/searchAPI.service.ts @@ -0,0 +1,334 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetSearchResponse } from '../models/getSearchResponse'; +// @ts-ignore +import { PostAdhocQuerySearchRequest } from '../models/postAdhocQuerySearchRequest'; +// @ts-ignore +import { PostAdhocQuerySearchResponse } from '../models/postAdhocQuerySearchResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SearchAPIService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Adhoc query search + * AdHocQuery search has more search options, it is a POST request, it uses request body to send search parameters Mandatory fields:entities Optional fields:loanStatus, loanProducts, offices, loanDateOption, loanFromDate, loanToDate, includeOutStandingAmountPercentage, outStandingAmountPercentageCondition, minOutStandingAmountPercentage and maxOutStandingAmountPercentage OR outStandingAmountPercentage, includeOutstandingAmount, outstandingAmountCondition, minOutstandingAmount and maxOutstandingAmount OR outstandingAmount + * @param postAdhocQuerySearchRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public advancedSearch(postAdhocQuerySearchRequest: PostAdhocQuerySearchRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public advancedSearch(postAdhocQuerySearchRequest: PostAdhocQuerySearchRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public advancedSearch(postAdhocQuerySearchRequest: PostAdhocQuerySearchRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public advancedSearch(postAdhocQuerySearchRequest: PostAdhocQuerySearchRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postAdhocQuerySearchRequest === null || postAdhocQuerySearchRequest === undefined) { + throw new Error('Required parameter postAdhocQuerySearchRequest was null or undefined when calling advancedSearch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/search/advance`; + return this.httpClient.request>('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postAdhocQuerySearchRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrive Adhoc Search query template + * Mandatory Fields search?query=000000001 + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAdHocSearchQueryTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAdHocSearchQueryTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAdHocSearchQueryTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAdHocSearchQueryTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/search/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Search Resources + * Example Requests: search?query=000000001 search?query=Petra&resource=clients,groups search?query=Petra&resource=clients,groups&exactMatch=true + * @param query query + * @param resource resource + * @param exactMatch exactMatch + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchData(query?: string, resource?: string, exactMatch?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public searchData(query?: string, resource?: string, exactMatch?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public searchData(query?: string, resource?: string, exactMatch?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public searchData(query?: string, resource?: string, exactMatch?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (query !== undefined && query !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + query, 'query'); + } + if (resource !== undefined && resource !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + resource, 'resource'); + } + if (exactMatch !== undefined && exactMatch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + exactMatch, 'exactMatch'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/search`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfAccountTransfer.service.ts b/packages/fineract-client/src/services/selfAccountTransfer.service.ts new file mode 100644 index 0000000000..ca8481d6f9 --- /dev/null +++ b/packages/fineract-client/src/services/selfAccountTransfer.service.ts @@ -0,0 +1,259 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetAccountTransferTemplateResponse } from '../models/getAccountTransferTemplateResponse'; +// @ts-ignore +import { PostNewTransferResponse } from '../models/postNewTransferResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfAccountTransferService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create new Transfer + * Ability to create new transfer of monetary funds from one account to another. Example Requests: self/accounttransfers/ + * @param type + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create14(type?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create14(type?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public create14(type?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public create14(type?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (type !== undefined && type !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + type, 'type'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/accounttransfers`; + return this.httpClient.request>('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Account Transfer Template + * Returns list of loan/savings accounts that can be used for account transfer Example Requests: self/accounttransfers/template + * @param type + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template15(type?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template15(type?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public template15(type?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public template15(type?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (type !== undefined && type !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + type, 'type'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/accounttransfers/template`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfAuthentication.service.ts b/packages/fineract-client/src/services/selfAuthentication.service.ts new file mode 100644 index 0000000000..34b335fe4b --- /dev/null +++ b/packages/fineract-client/src/services/selfAuthentication.service.ts @@ -0,0 +1,178 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { PostAuthenticationRequest } from '../models/postAuthenticationRequest'; +// @ts-ignore +import { PostSelfAuthenticationResponse } from '../models/postSelfAuthenticationResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfAuthenticationService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Verify authentication + * Authenticates the credentials provided and returns the set roles and permissions allowed. Please visit this link for more info - https://fineract.apache.org/legacy-docs/apiLive.htm#selfbasicauth + * @param postAuthenticationRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public authenticate1(postAuthenticationRequest: PostAuthenticationRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public authenticate1(postAuthenticationRequest: PostAuthenticationRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public authenticate1(postAuthenticationRequest: PostAuthenticationRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public authenticate1(postAuthenticationRequest: PostAuthenticationRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postAuthenticationRequest === null || postAuthenticationRequest === undefined) { + throw new Error('Required parameter postAuthenticationRequest was null or undefined when calling authenticate1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/authentication`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postAuthenticationRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfClient.service.ts b/packages/fineract-client/src/services/selfClient.service.ts new file mode 100644 index 0000000000..f5dae7d86e --- /dev/null +++ b/packages/fineract-client/src/services/selfClient.service.ts @@ -0,0 +1,1041 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetSelfClientsClientIdAccountsResponse } from '../models/getSelfClientsClientIdAccountsResponse'; +// @ts-ignore +import { GetSelfClientsClientIdChargesChargeIdResponse } from '../models/getSelfClientsClientIdChargesChargeIdResponse'; +// @ts-ignore +import { GetSelfClientsClientIdChargesResponse } from '../models/getSelfClientsClientIdChargesResponse'; +// @ts-ignore +import { GetSelfClientsClientIdResponse } from '../models/getSelfClientsClientIdResponse'; +// @ts-ignore +import { GetSelfClientsClientIdTransactionsResponse } from '../models/getSelfClientsClientIdTransactionsResponse'; +// @ts-ignore +import { GetSelfClientsClientIdTransactionsTransactionIdResponse } from '../models/getSelfClientsClientIdTransactionsTransactionIdResponse'; +// @ts-ignore +import { GetSelfClientsResponse } from '../models/getSelfClientsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfClientService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param clientId + * @param contentLength + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addNewClientImage2(clientId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public addNewClientImage2(clientId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addNewClientImage2(clientId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public addNewClientImage2(clientId: number, contentLength?: number, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling addNewClientImage2.'); + } + + let localVarHeaders = this.defaultHeaders; + if (contentLength !== undefined && contentLength !== null) { + localVarHeaders = localVarHeaders.set('Content-Length', String(contentLength)); + } + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteClientImage1(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteClientImage1(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteClientImage1(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteClientImage1(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling deleteClientImage1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Clients associated to the user + * The list capability of clients can support pagination and sorting. Example Requests: self/clients self/clients?fields=displayName,officeName self/clients?offset=10&limit=50 self/clients?orderBy=displayName&sortOrder=DESC + * @param displayName displayName + * @param firstName firstName + * @param lastName lastName + * @param offset offset + * @param status status + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll36(displayName?: string, firstName?: string, lastName?: string, offset?: number, status?: string, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll36(displayName?: string, firstName?: string, lastName?: string, offset?: number, status?: string, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll36(displayName?: string, firstName?: string, lastName?: string, offset?: number, status?: string, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll36(displayName?: string, firstName?: string, lastName?: string, offset?: number, status?: string, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (displayName !== undefined && displayName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + displayName, 'displayName'); + } + if (firstName !== undefined && firstName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + firstName, 'firstName'); + } + if (lastName !== undefined && lastName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + lastName, 'lastName'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (status !== undefined && status !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + status, 'status'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Client Charges + * The list capability of client charges supports pagination. Example Requests: self/clients/1/charges self/clients/1/charges?offset=0&limit=5 + * @param clientId clientId + * @param chargeStatus chargeStatus + * @param pendingPayment pendingPayment + * @param limit limit + * @param offset offset + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllClientCharges1(clientId: number, chargeStatus?: string, pendingPayment?: boolean, limit?: number, offset?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllClientCharges1(clientId: number, chargeStatus?: string, pendingPayment?: boolean, limit?: number, offset?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientCharges1(clientId: number, chargeStatus?: string, pendingPayment?: boolean, limit?: number, offset?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientCharges1(clientId: number, chargeStatus?: string, pendingPayment?: boolean, limit?: number, offset?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveAllClientCharges1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (chargeStatus !== undefined && chargeStatus !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + chargeStatus, 'chargeStatus'); + } + if (pendingPayment !== undefined && pendingPayment !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pendingPayment, 'pendingPayment'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Client Transactions + * The list capability of client transaction can support pagination. Example Requests: self/clients/189/transactions self/clients/189/transactions?offset=10&limit=50 + * @param clientId clientId + * @param offset offset + * @param limit limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllClientTransactions2(clientId: number, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllClientTransactions2(clientId: number, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientTransactions2(clientId: number, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllClientTransactions2(clientId: number, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveAllClientTransactions2.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve client accounts overview + * An example of how a loan portfolio summary can be provided. This is requested in a specific use case of the community application. It is quite reasonable to add resources like this to simplify User Interface development. Example Requests: self/clients/1/accounts self/clients/1/accounts?fields=loanAccounts,savingsAccounts + * @param clientId clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAssociatedAccounts2(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAssociatedAccounts2(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAssociatedAccounts2(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAssociatedAccounts2(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveAssociatedAccounts2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/accounts`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Client Charge + * Retrieves a Client Charge Example Requests: self/clients/1/charges/1 self/clients/1/charges/1?fields=name,id + * @param clientId clientId + * @param chargeId chargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveClientCharge1(clientId: number, chargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveClientCharge1(clientId: number, chargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientCharge1(clientId: number, chargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientCharge1(clientId: number, chargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveClientCharge1.'); + } + if (chargeId === null || chargeId === undefined) { + throw new Error('Required parameter chargeId was null or undefined when calling retrieveClientCharge1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "chargeId", value: chargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Client Transaction + * Retrieves a Client TransactionExample Requests: self/clients/1/transactions/1 self/clients/1/transactions/1?fields=id,officeName + * @param clientId clientId + * @param transactionId transactionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveClientTransaction2(clientId: number, transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveClientTransaction2(clientId: number, transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientTransaction2(clientId: number, transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveClientTransaction2(clientId: number, transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveClientTransaction2.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling retrieveClientTransaction2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Client Image + * Optional arguments are identical to those of Get Image associated with an Entity (Binary file) Example Requests: self/clients/1/images + * @param clientId clientId + * @param maxWidth + * @param maxHeight + * @param output + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveImage1(clientId: number, maxWidth?: number, maxHeight?: number, output?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public retrieveImage1(clientId: number, maxWidth?: number, maxHeight?: number, output?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public retrieveImage1(clientId: number, maxWidth?: number, maxHeight?: number, output?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public retrieveImage1(clientId: number, maxWidth?: number, maxHeight?: number, output?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveImage1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (maxWidth !== undefined && maxWidth !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + maxWidth, 'maxWidth'); + } + if (maxHeight !== undefined && maxHeight !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + maxHeight, 'maxHeight'); + } + if (output !== undefined && output !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + output, 'output'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveObligeeDetails2(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveObligeeDetails2(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveObligeeDetails2(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveObligeeDetails2(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveObligeeDetails2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/obligeedetails`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Client + * Retrieves a Client Example Requests: self/clients/1 self/clients/1?fields=id,displayName,officeName + * @param clientId clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne27(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne27(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne27(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne27(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling retrieveOne27.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfDividend.service.ts b/packages/fineract-client/src/services/selfDividend.service.ts new file mode 100644 index 0000000000..c564f225b3 --- /dev/null +++ b/packages/fineract-client/src/services/selfDividend.service.ts @@ -0,0 +1,540 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfDividendService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param productId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createDividendDetail(productId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createDividendDetail(productId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDividendDetail(productId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDividendDetail(productId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling createDividendDetail.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/shareproduct/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/dividend`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param productId + * @param dividendId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteDividendDetail(productId: number, dividendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteDividendDetail(productId: number, dividendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDividendDetail(productId: number, dividendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDividendDetail(productId: number, dividendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling deleteDividendDetail.'); + } + if (dividendId === null || dividendId === undefined) { + throw new Error('Required parameter dividendId was null or undefined when calling deleteDividendDetail.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/shareproduct/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/dividend/${this.configuration.encodeParam({name: "dividendId", value: dividendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param productId + * @param offset + * @param limit + * @param orderBy + * @param sortOrder + * @param status + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll39(productId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, status?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll39(productId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, status?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll39(productId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, status?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll39(productId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, status?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveAll39.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (status !== undefined && status !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + status, 'status'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/shareproduct/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/dividend`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dividendId + * @param productId + * @param offset + * @param limit + * @param orderBy + * @param sortOrder + * @param accountNo + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveDividendDetails(dividendId: number, productId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveDividendDetails(dividendId: number, productId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveDividendDetails(dividendId: number, productId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveDividendDetails(dividendId: number, productId: number, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (dividendId === null || dividendId === undefined) { + throw new Error('Required parameter dividendId was null or undefined when calling retrieveDividendDetails.'); + } + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveDividendDetails.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (accountNo !== undefined && accountNo !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + accountNo, 'accountNo'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/shareproduct/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/dividend/${this.configuration.encodeParam({name: "dividendId", value: dividendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param productId + * @param dividendId + * @param command + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateDividendDetail(productId: number, dividendId: number, command?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateDividendDetail(productId: number, dividendId: number, command?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDividendDetail(productId: number, dividendId: number, command?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateDividendDetail(productId: number, dividendId: number, command?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling updateDividendDetail.'); + } + if (dividendId === null || dividendId === undefined) { + throw new Error('Required parameter dividendId was null or undefined when calling updateDividendDetail.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/shareproduct/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/dividend/${this.configuration.encodeParam({name: "dividendId", value: dividendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfLoanProducts.service.ts b/packages/fineract-client/src/services/selfLoanProducts.service.ts new file mode 100644 index 0000000000..3e0d53a3f6 --- /dev/null +++ b/packages/fineract-client/src/services/selfLoanProducts.service.ts @@ -0,0 +1,244 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfLoanProductsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllLoanProducts1(clientId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllLoanProducts1(clientId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllLoanProducts1(clientId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllLoanProducts1(clientId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loanproducts`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param productId + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoanProductDetails2(productId: number, clientId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoanProductDetails2(productId: number, clientId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanProductDetails2(productId: number, clientId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanProductDetails2(productId: number, clientId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveLoanProductDetails2.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loanproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfLoans.service.ts b/packages/fineract-client/src/services/selfLoans.service.ts new file mode 100644 index 0000000000..ce7296ed4e --- /dev/null +++ b/packages/fineract-client/src/services/selfLoans.service.ts @@ -0,0 +1,842 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetSelfLoansLoanIdChargesResponse } from '../models/getSelfLoansLoanIdChargesResponse'; +// @ts-ignore +import { GetSelfLoansLoanIdResponse } from '../models/getSelfLoansLoanIdResponse'; +// @ts-ignore +import { GetSelfLoansLoanIdTransactionsTransactionIdResponse } from '../models/getSelfLoansLoanIdTransactionsTransactionIdResponse'; +// @ts-ignore +import { GetSelfLoansTemplateResponse } from '../models/getSelfLoansTemplateResponse'; +// @ts-ignore +import { PostSelfLoansLoanIdRequest } from '../models/postSelfLoansLoanIdRequest'; +// @ts-ignore +import { PostSelfLoansLoanIdResponse } from '../models/postSelfLoansLoanIdResponse'; +// @ts-ignore +import { PostSelfLoansRequest } from '../models/postSelfLoansRequest'; +// @ts-ignore +import { PostSelfLoansResponse } from '../models/postSelfLoansResponse'; +// @ts-ignore +import { PutSelfLoansLoanIdRequest } from '../models/putSelfLoansLoanIdRequest'; +// @ts-ignore +import { PutSelfLoansLoanIdResponse } from '../models/putSelfLoansLoanIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfLoansService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Calculate Loan Repayment Schedule | Submit a new Loan Application + * Calculate Loan Repayment Schedule: Calculates Loan Repayment Schedule Mandatory Fields: productId, principal, loanTermFrequency, loanTermFrequencyType, numberOfRepayments, repaymentEvery, repaymentFrequencyType, interestRatePerPeriod, amortizationType, interestType, interestCalculationPeriodType, expectedDisbursementDate, transactionProcessingStrategyCode Submit a new Loan Application: Mandatory Fields: clientId, productId, principal, loanTermFrequency, loanTermFrequencyType, loanType, numberOfRepayments, repaymentEvery, repaymentFrequencyType, interestRatePerPeriod, amortizationType, interestType, interestCalculationPeriodType, transactionProcessingStrategyCode, expectedDisbursementDate, submittedOnDate, loanType 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 Optional Fields: graceOnPrincipalPayment, graceOnInterestPayment, graceOnInterestCharged, linkAccountId, allowPartialPeriodInterestCalcualtion, fixedEmiAmount, maxOutstandingLoanBalance, disbursementData, graceOnArrearsAgeing, createStandingInstructionAtDisbursement (requires linkedAccountId if set to true) Showing request/response for \'Submit a new Loan Application\' + * @param postSelfLoansRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public calculateLoanScheduleOrSubmitLoanApplication1(postSelfLoansRequest: PostSelfLoansRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public calculateLoanScheduleOrSubmitLoanApplication1(postSelfLoansRequest: PostSelfLoansRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public calculateLoanScheduleOrSubmitLoanApplication1(postSelfLoansRequest: PostSelfLoansRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public calculateLoanScheduleOrSubmitLoanApplication1(postSelfLoansRequest: PostSelfLoansRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postSelfLoansRequest === null || postSelfLoansRequest === undefined) { + throw new Error('Required parameter postSelfLoansRequest was null or undefined when calling calculateLoanScheduleOrSubmitLoanApplication1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loans`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSelfLoansRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Loan Application + * 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. + * @param loanId loanId + * @param putSelfLoansLoanIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modifyLoanApplication2(loanId: number, putSelfLoansLoanIdRequest: PutSelfLoansLoanIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public modifyLoanApplication2(loanId: number, putSelfLoansLoanIdRequest: PutSelfLoansLoanIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public modifyLoanApplication2(loanId: number, putSelfLoansLoanIdRequest: PutSelfLoansLoanIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public modifyLoanApplication2(loanId: number, putSelfLoansLoanIdRequest: PutSelfLoansLoanIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling modifyLoanApplication2.'); + } + if (putSelfLoansLoanIdRequest === null || putSelfLoansLoanIdRequest === undefined) { + throw new Error('Required parameter putSelfLoansLoanIdRequest was null or undefined when calling modifyLoanApplication2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putSelfLoansLoanIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Loan Charges + * Lists loan Charges Example Requests: self/loans/1/charges self/loans/1/charges?fields=name,amountOrPercentage + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllLoanCharges2(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllLoanCharges2(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllLoanCharges2(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllLoanCharges2(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveAllLoanCharges2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveGuarantorDetails2(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveGuarantorDetails2(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveGuarantorDetails2(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveGuarantorDetails2(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveGuarantorDetails2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/guarantors`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan + * Retrieves a Loan Example Requests: self/loans/1 self/loans/1?fields=id,principal,annualInterestRate self/loans/1?fields=id,principal,annualInterestRate&associations=repaymentSchedule,transactions + * @param loanId loanId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoan2(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoan2(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoan2(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoan2(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveLoan2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan Charge + * Retrieves a Loan Charge Example Requests: self/loans/1/charges/1 self/loans/1/charges/1?fields=name,amountOrPercentage + * @param loanId loanId + * @param chargeId chargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveLoanCharge4(loanId: number, chargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveLoanCharge4(loanId: number, chargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanCharge4(loanId: number, chargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveLoanCharge4(loanId: number, chargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveLoanCharge4.'); + } + if (chargeId === null || chargeId === undefined) { + throw new Error('Required parameter chargeId was null or undefined when calling retrieveLoanCharge4.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "chargeId", value: chargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Loan Transaction Details + * Retrieves a Loan Transaction DetailsExample Request: self/loans/5/transactions/3 + * @param loanId loanId + * @param transactionId transactionId + * @param fields Optional Loan Transaction attribute list to be in the response + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTransaction1(loanId: number, transactionId: number, fields?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTransaction1(loanId: number, transactionId: number, fields?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransaction1(loanId: number, transactionId: number, fields?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTransaction1(loanId: number, transactionId: number, fields?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling retrieveTransaction1.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling retrieveTransaction1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (fields !== undefined && fields !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fields, 'fields'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Applicant Withdraws from Loan Application + * Applicant Withdraws from Loan Application Mandatory Fields: withdrawnOnDate + * @param loanId loanId + * @param postSelfLoansLoanIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public stateTransitions2(loanId: number, postSelfLoansLoanIdRequest: PostSelfLoansLoanIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public stateTransitions2(loanId: number, postSelfLoansLoanIdRequest: PostSelfLoansLoanIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public stateTransitions2(loanId: number, postSelfLoansLoanIdRequest: PostSelfLoansLoanIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public stateTransitions2(loanId: number, postSelfLoansLoanIdRequest: PostSelfLoansLoanIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (loanId === null || loanId === undefined) { + throw new Error('Required parameter loanId was null or undefined when calling stateTransitions2.'); + } + if (postSelfLoansLoanIdRequest === null || postSelfLoansLoanIdRequest === undefined) { + throw new Error('Required parameter postSelfLoansLoanIdRequest was null or undefined when calling stateTransitions2.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loans/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSelfLoansLoanIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Loan Details Template + * Retrieves Loan Details Template 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: self/loans/template?templateType=individual&clientId=1 self/loans/template?templateType=individual&clientId=1&productId=1 + * @param clientId clientId + * @param productId productId + * @param templateType templateType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template17(clientId?: number, productId?: number, templateType?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template17(clientId?: number, productId?: number, templateType?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template17(clientId?: number, productId?: number, templateType?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template17(clientId?: number, productId?: number, templateType?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + if (templateType !== undefined && templateType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + templateType, 'templateType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/loans/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfRunReport.service.ts b/packages/fineract-client/src/services/selfRunReport.service.ts new file mode 100644 index 0000000000..219ab42879 --- /dev/null +++ b/packages/fineract-client/src/services/selfRunReport.service.ts @@ -0,0 +1,170 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetRunReportResponse } from '../models/getRunReportResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfRunReportService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Running A Report + * Example Requests: self/runreports/Client%20Details?R_officeId=1 self/runreports/Client%20Details?R_officeId=1&exportCSV=true + * @param reportName reportName + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public runReport1(reportName: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/pdf' | 'application/vnd.ms-excel' | 'text/csv' | 'text/html', context?: HttpContext}): Observable; + public runReport1(reportName: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/pdf' | 'application/vnd.ms-excel' | 'text/csv' | 'text/html', context?: HttpContext}): Observable>; + public runReport1(reportName: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/pdf' | 'application/vnd.ms-excel' | 'text/csv' | 'text/html', context?: HttpContext}): Observable>; + public runReport1(reportName: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/pdf' | 'application/vnd.ms-excel' | 'text/csv' | 'text/html', context?: HttpContext}): Observable { + if (reportName === null || reportName === undefined) { + throw new Error('Required parameter reportName was null or undefined when calling runReport1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json', + 'application/pdf', + 'application/vnd.ms-excel', + 'text/csv', + 'text/html' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/runreports/${this.configuration.encodeParam({name: "reportName", value: reportName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfSavingsAccount.service.ts b/packages/fineract-client/src/services/selfSavingsAccount.service.ts new file mode 100644 index 0000000000..00c5b0ebd2 --- /dev/null +++ b/packages/fineract-client/src/services/selfSavingsAccount.service.ts @@ -0,0 +1,665 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetSelfSavingsAccountsAccountIdChargesResponse } from '../models/getSelfSavingsAccountsAccountIdChargesResponse'; +// @ts-ignore +import { GetSelfSavingsAccountsAccountIdChargesSavingsAccountChargeIdResponse } from '../models/getSelfSavingsAccountsAccountIdChargesSavingsAccountChargeIdResponse'; +// @ts-ignore +import { GetSelfSavingsAccountsAccountIdTransactionsTransactionIdResponse } from '../models/getSelfSavingsAccountsAccountIdTransactionsTransactionIdResponse'; +// @ts-ignore +import { GetSelfSavingsAccountsResponse } from '../models/getSelfSavingsAccountsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfSavingsAccountService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param accountId + * @param command + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modifySavingsAccountApplication(accountId: number, command?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public modifySavingsAccountApplication(accountId: number, command?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public modifySavingsAccountApplication(accountId: number, command?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public modifySavingsAccountApplication(accountId: number, command?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling modifySavingsAccountApplication.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/savingsaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Savings Charges + * Lists Savings Charges Example Requests: self/savingsaccounts/1/charges self/savingsaccounts/1/charges?chargeStatus=inactive self/savingsaccounts/1/charges?fields=name,amountOrPercentage + * @param accountId accountId + * @param chargeStatus chargeStatus + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllSavingsAccountCharges1(accountId: number, chargeStatus?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllSavingsAccountCharges1(accountId: number, chargeStatus?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllSavingsAccountCharges1(accountId: number, chargeStatus?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllSavingsAccountCharges1(accountId: number, chargeStatus?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling retrieveAllSavingsAccountCharges1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (chargeStatus !== undefined && chargeStatus !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + chargeStatus, 'chargeStatus'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/savingsaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a savings account + * Retrieves a savings account Example Requests : self/savingsaccounts/1 self/savingsaccounts/1?associations=transactions + * @param accountId accountId + * @param chargeStatus chargeStatus + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveSavings(accountId: number, chargeStatus?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveSavings(accountId: number, chargeStatus?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSavings(accountId: number, chargeStatus?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSavings(accountId: number, chargeStatus?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling retrieveSavings.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (chargeStatus !== undefined && chargeStatus !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + chargeStatus, 'chargeStatus'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/savingsaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Savings account Charge + * Retrieves a Savings account Charge Example Requests: self/savingsaccounts/1/charges/5 self/savingsaccounts/1/charges/5?fields=name,amountOrPercentage + * @param accountId accountId + * @param savingsAccountChargeId savingsAccountChargeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveSavingsAccountCharge1(accountId: number, savingsAccountChargeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveSavingsAccountCharge1(accountId: number, savingsAccountChargeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSavingsAccountCharge1(accountId: number, savingsAccountChargeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSavingsAccountCharge1(accountId: number, savingsAccountChargeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling retrieveSavingsAccountCharge1.'); + } + if (savingsAccountChargeId === null || savingsAccountChargeId === undefined) { + throw new Error('Required parameter savingsAccountChargeId was null or undefined when calling retrieveSavingsAccountCharge1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/savingsaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/charges/${this.configuration.encodeParam({name: "savingsAccountChargeId", value: savingsAccountChargeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Savings Account Transaction + * Retrieves Savings Account Transaction Example Requests: self/savingsaccounts/1/transactions/1 + * @param accountId accountId + * @param transactionId transactionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveSavingsTransaction(accountId: number, transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveSavingsTransaction(accountId: number, transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSavingsTransaction(accountId: number, transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSavingsTransaction(accountId: number, transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling retrieveSavingsTransaction.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling retrieveSavingsTransaction.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/savingsaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param command + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public submitSavingsAccountApplication(command?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public submitSavingsAccountApplication(command?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public submitSavingsAccountApplication(command?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public submitSavingsAccountApplication(command?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/savingsaccounts`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param clientId + * @param productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template18(clientId?: number, productId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template18(clientId?: number, productId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template18(clientId?: number, productId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template18(clientId?: number, productId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/savingsaccounts/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfSavingsProducts.service.ts b/packages/fineract-client/src/services/selfSavingsProducts.service.ts new file mode 100644 index 0000000000..2a49f67505 --- /dev/null +++ b/packages/fineract-client/src/services/selfSavingsProducts.service.ts @@ -0,0 +1,244 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfSavingsProductsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll38(clientId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll38(clientId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll38(clientId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll38(clientId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/savingsproducts`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param productId + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne28(productId: number, clientId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne28(productId: number, clientId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne28(productId: number, clientId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne28(productId: number, clientId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveOne28.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/savingsproducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfScoreCard.service.ts b/packages/fineract-client/src/services/selfScoreCard.service.ts new file mode 100644 index 0000000000..37808f7583 --- /dev/null +++ b/packages/fineract-client/src/services/selfScoreCard.service.ts @@ -0,0 +1,245 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ScorecardData } from '../models/scorecardData'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfScoreCardService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param surveyId + * @param scorecardData + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createScorecard(surveyId: number, scorecardData?: ScorecardData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createScorecard(surveyId: number, scorecardData?: ScorecardData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createScorecard(surveyId: number, scorecardData?: ScorecardData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createScorecard(surveyId: number, scorecardData?: ScorecardData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyId === null || surveyId === undefined) { + throw new Error('Required parameter surveyId was null or undefined when calling createScorecard.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/surveys/scorecards/${this.configuration.encodeParam({name: "surveyId", value: surveyId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: scorecardData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public findByClient(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findByClient(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public findByClient(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public findByClient(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling findByClient.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/surveys/scorecards/clients/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfServiceRegistration.service.ts b/packages/fineract-client/src/services/selfServiceRegistration.service.ts new file mode 100644 index 0000000000..0e0266b1ce --- /dev/null +++ b/packages/fineract-client/src/services/selfServiceRegistration.service.ts @@ -0,0 +1,244 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfServiceRegistrationService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createSelfServiceRegistrationRequest(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createSelfServiceRegistrationRequest(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createSelfServiceRegistrationRequest(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createSelfServiceRegistrationRequest(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/registration`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createSelfServiceUser(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createSelfServiceUser(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createSelfServiceUser(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createSelfServiceUser(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/registration/user`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfShareAccounts.service.ts b/packages/fineract-client/src/services/selfShareAccounts.service.ts new file mode 100644 index 0000000000..4d074dbbb3 --- /dev/null +++ b/packages/fineract-client/src/services/selfShareAccounts.service.ts @@ -0,0 +1,328 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetShareAccountsClientIdProductIdResponse } from '../models/getShareAccountsClientIdProductIdResponse'; +// @ts-ignore +import { PostNewShareApplicationResponse } from '../models/postNewShareApplicationResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfShareAccountsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Submit new share application + * Mandatory fields: clientId, productId, submittedDate, savingsAccountId, requestedShares, applicationDate Optional Fields accountNo, externalId Inherited from Product (if not provided) minimumActivePeriod, minimumActivePeriodFrequencyType, lockinPeriodFrequency, lockinPeriodFrequencyType. + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createAccount1(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createAccount1(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public createAccount1(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public createAccount1(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/shareaccounts`; + return this.httpClient.request>('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a share application/account + * Example Requests: self/shareaccounts/12 + * @param accountId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveShareAccount(accountId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveShareAccount(accountId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveShareAccount(accountId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveShareAccount(accountId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling retrieveShareAccount.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/shareaccounts/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Share Account Template + * 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 Arguments clientId:Integer mandatory productId:Integer optionalIf entered, productId, productName and selectedProduct fields are returned. Example Requests: self/shareaccounts/template?clientId=14 self/shareaccounts/template?clientId=14&productId=3 + * @param clientId + * @param productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template19(clientId?: number, productId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template19(clientId?: number, productId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public template19(clientId?: number, productId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public template19(clientId?: number, productId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/shareaccounts/template`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfShareProducts.service.ts b/packages/fineract-client/src/services/selfShareProducts.service.ts new file mode 100644 index 0000000000..834339c8b0 --- /dev/null +++ b/packages/fineract-client/src/services/selfShareProducts.service.ts @@ -0,0 +1,258 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfShareProductsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param clientId + * @param offset + * @param limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllProducts1(clientId?: number, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllProducts1(clientId?: number, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllProducts1(clientId?: number, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllProducts1(clientId?: number, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/products/share`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param productId + * @param type + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveProduct1(productId: number, type: string, clientId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveProduct1(productId: number, type: string, clientId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveProduct1(productId: number, type: string, clientId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveProduct1(productId: number, type: string, clientId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (productId === null || productId === undefined) { + throw new Error('Required parameter productId was null or undefined when calling retrieveProduct1.'); + } + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling retrieveProduct1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/products/share/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfSpm.service.ts b/packages/fineract-client/src/services/selfSpm.service.ts new file mode 100644 index 0000000000..fda07aa90c --- /dev/null +++ b/packages/fineract-client/src/services/selfSpm.service.ts @@ -0,0 +1,160 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { SurveyData } from '../models/surveyData'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfSpmService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public fetchAllSurveys(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchAllSurveys(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public fetchAllSurveys(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public fetchAllSurveys(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/surveys`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfThirdPartyTransfer.service.ts b/packages/fineract-client/src/services/selfThirdPartyTransfer.service.ts new file mode 100644 index 0000000000..8ba1fad097 --- /dev/null +++ b/packages/fineract-client/src/services/selfThirdPartyTransfer.service.ts @@ -0,0 +1,482 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteSelfBeneficiariesTPTBeneficiaryIdResponse } from '../models/deleteSelfBeneficiariesTPTBeneficiaryIdResponse'; +// @ts-ignore +import { GetSelfBeneficiariesTPTResponse } from '../models/getSelfBeneficiariesTPTResponse'; +// @ts-ignore +import { GetSelfBeneficiariesTPTTemplateResponse } from '../models/getSelfBeneficiariesTPTTemplateResponse'; +// @ts-ignore +import { PostSelfBeneficiariesTPTRequest } from '../models/postSelfBeneficiariesTPTRequest'; +// @ts-ignore +import { PostSelfBeneficiariesTPTResponse } from '../models/postSelfBeneficiariesTPTResponse'; +// @ts-ignore +import { PutSelfBeneficiariesTPTBeneficiaryIdRequest } from '../models/putSelfBeneficiariesTPTBeneficiaryIdRequest'; +// @ts-ignore +import { PutSelfBeneficiariesTPTBeneficiaryIdResponse } from '../models/putSelfBeneficiariesTPTBeneficiaryIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfThirdPartyTransferService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Add TPT Beneficiary + * Api to add third party beneficiary linked to current user. Parameter Definitions name : Nick name for beneficiary, should be unique for an self service user officeName : Office Name of beneficiary(not id) accountNumber : Account Number of beneficiary(not id) transferLimit : Each transfer initiated to this account will not exceed this amount Example Requests: /self/beneficiaries/tpt Mandatory Fields: name, officeName, accountNumber, accountType Optional Fields: transferLimit + * @param postSelfBeneficiariesTPTRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public add(postSelfBeneficiariesTPTRequest: PostSelfBeneficiariesTPTRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public add(postSelfBeneficiariesTPTRequest: PostSelfBeneficiariesTPTRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public add(postSelfBeneficiariesTPTRequest: PostSelfBeneficiariesTPTRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public add(postSelfBeneficiariesTPTRequest: PostSelfBeneficiariesTPTRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postSelfBeneficiariesTPTRequest === null || postSelfBeneficiariesTPTRequest === undefined) { + throw new Error('Required parameter postSelfBeneficiariesTPTRequest was null or undefined when calling add.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/beneficiaries/tpt`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSelfBeneficiariesTPTRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete TPT Beneficiary + * Api to delete third party beneficiary linked to current user. Example Requests: /self/beneficiaries/tpt/{beneficiaryId} + * @param beneficiaryId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete21(beneficiaryId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete21(beneficiaryId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete21(beneficiaryId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete21(beneficiaryId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (beneficiaryId === null || beneficiaryId === undefined) { + throw new Error('Required parameter beneficiaryId was null or undefined when calling delete21.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/beneficiaries/tpt/${this.configuration.encodeParam({name: "beneficiaryId", value: beneficiaryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Get All TPT Beneficiary + * Api to get all third party beneficiary linked to current user. Example Requests: /self/beneficiaries/tpt + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll35(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll35(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll35(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll35(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/beneficiaries/tpt`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Beneficiary Third Party Transfer Template + * Returns Account Type enumerations. Self User is expected to know office name and account number to be able to add beneficiary. Example Requests: /self/beneficiaries/tpt/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template16(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template16(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template16(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template16(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/beneficiaries/tpt/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update TPT Beneficiary + * Api to update third party beneficiary linked to current user. Example Requests: /self/beneficiaries/tpt/{beneficiaryId} Optional Fields: name, transferLimit + * @param beneficiaryId beneficiaryId + * @param putSelfBeneficiariesTPTBeneficiaryIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update22(beneficiaryId: number, putSelfBeneficiariesTPTBeneficiaryIdRequest: PutSelfBeneficiariesTPTBeneficiaryIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update22(beneficiaryId: number, putSelfBeneficiariesTPTBeneficiaryIdRequest: PutSelfBeneficiariesTPTBeneficiaryIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update22(beneficiaryId: number, putSelfBeneficiariesTPTBeneficiaryIdRequest: PutSelfBeneficiariesTPTBeneficiaryIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update22(beneficiaryId: number, putSelfBeneficiariesTPTBeneficiaryIdRequest: PutSelfBeneficiariesTPTBeneficiaryIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (beneficiaryId === null || beneficiaryId === undefined) { + throw new Error('Required parameter beneficiaryId was null or undefined when calling update22.'); + } + if (putSelfBeneficiariesTPTBeneficiaryIdRequest === null || putSelfBeneficiariesTPTBeneficiaryIdRequest === undefined) { + throw new Error('Required parameter putSelfBeneficiariesTPTBeneficiaryIdRequest was null or undefined when calling update22.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/beneficiaries/tpt/${this.configuration.encodeParam({name: "beneficiaryId", value: beneficiaryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putSelfBeneficiariesTPTBeneficiaryIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfUser.service.ts b/packages/fineract-client/src/services/selfUser.service.ts new file mode 100644 index 0000000000..ebb742d70e --- /dev/null +++ b/packages/fineract-client/src/services/selfUser.service.ts @@ -0,0 +1,177 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { PutSelfUserRequest } from '../models/putSelfUserRequest'; +// @ts-ignore +import { PutSelfUserResponse } from '../models/putSelfUserResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfUserService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Update User + * This API can be used by Self Service user to update their own user information. Currently, \"password\" and \"repeatPassword\" are the only parameters accepted. + * @param putSelfUserRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update23(putSelfUserRequest: PutSelfUserRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public update23(putSelfUserRequest: PutSelfUserRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public update23(putSelfUserRequest: PutSelfUserRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public update23(putSelfUserRequest: PutSelfUserRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + if (putSelfUserRequest === null || putSelfUserRequest === undefined) { + throw new Error('Required parameter putSelfUserRequest was null or undefined when calling update23.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/user`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putSelfUserRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/selfUserDetails.service.ts b/packages/fineract-client/src/services/selfUserDetails.service.ts new file mode 100644 index 0000000000..b31aa8984b --- /dev/null +++ b/packages/fineract-client/src/services/selfUserDetails.service.ts @@ -0,0 +1,162 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetSelfUserDetailsResponse } from '../models/getSelfUserDetailsResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SelfUserDetailsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Fetch authenticated user details + * Checks the Authentication and returns the set roles and permissions allowed For more info visit this link - https://fineract.apache.org/legacy-docs/apiLive.htm#selfoauth + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public fetchAuthenticatedUserData1(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public fetchAuthenticatedUserData1(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchAuthenticatedUserData1(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchAuthenticatedUserData1(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/self/userdetails`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/shareAccount.service.ts b/packages/fineract-client/src/services/shareAccount.service.ts new file mode 100644 index 0000000000..aa4c6e1f35 --- /dev/null +++ b/packages/fineract-client/src/services/shareAccount.service.ts @@ -0,0 +1,828 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetAccountsTypeAccountIdResponse } from '../models/getAccountsTypeAccountIdResponse'; +// @ts-ignore +import { GetAccountsTypeResponse } from '../models/getAccountsTypeResponse'; +// @ts-ignore +import { GetAccountsTypeTemplateResponse } from '../models/getAccountsTypeTemplateResponse'; +// @ts-ignore +import { PostAccountsTypeAccountIdRequest } from '../models/postAccountsTypeAccountIdRequest'; +// @ts-ignore +import { PostAccountsTypeAccountIdResponse } from '../models/postAccountsTypeAccountIdResponse'; +// @ts-ignore +import { PostAccountsTypeRequest } from '../models/postAccountsTypeRequest'; +// @ts-ignore +import { PostAccountsTypeResponse } from '../models/postAccountsTypeResponse'; +// @ts-ignore +import { PutAccountsTypeAccountIdRequest } from '../models/putAccountsTypeAccountIdRequest'; +// @ts-ignore +import { PutAccountsTypeAccountIdResponse } from '../models/putAccountsTypeAccountIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ShareAccountService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Submit new share application + * Submits new share application Mandatory Fields: clientId, productId, submittedDate, savingsAccountId, requestedShares, applicationDate Optional Fields: accountNo, externalId Inherited from Product (if not provided): minimumActivePeriod, minimumActivePeriodFrequencyType, lockinPeriodFrequency, lockinPeriodFrequencyType + * @param type type + * @param postAccountsTypeRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createAccount(type: string, postAccountsTypeRequest: PostAccountsTypeRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createAccount(type: string, postAccountsTypeRequest: PostAccountsTypeRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createAccount(type: string, postAccountsTypeRequest: PostAccountsTypeRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createAccount(type: string, postAccountsTypeRequest: PostAccountsTypeRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling createAccount.'); + } + if (postAccountsTypeRequest === null || postAccountsTypeRequest === undefined) { + throw new Error('Required parameter postAccountsTypeRequest was null or undefined when calling createAccount.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounts/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postAccountsTypeRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param type type + * @param officeId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getSharedAccountsTemplate(type: string, officeId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getSharedAccountsTemplate(type: string, officeId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getSharedAccountsTemplate(type: string, officeId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getSharedAccountsTemplate(type: string, officeId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling getSharedAccountsTemplate.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounts/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Approve share application | Undo approval share application | Reject share application | Activate a share account | Close a share account | Apply additional shares on a share account | Approve additional shares request on a share account | Reject additional shares request on a share account | Redeem shares on a share account + * Approve share application: Approves share application so long as its in \'Submitted and pending approval\' state. Undo approval share application: Will move \'approved\' share application back to \'Submitted and pending approval\' state. Reject share application: Rejects share application so long as its in \'Submitted and pending approval\' state. Activate a share account: Results in an approved share application being converted into an \'active\' share account. Close a share account: Results in an Activated share application being converted into an \'closed\' share account. closedDate is closure date of share account Mandatory Fields: dateFormat,locale,closedDate Apply additional shares on a share account: requestedDate is requsted date of share purchase requestedShares is number of shares to be purchase Mandatory Fields: dateFormat,locale,requestedDate, requestedShares Approve additional shares request on a share account requestedShares is Share purchase transaction ids Mandatory Fields: requestedShares Reject additional shares request on a share account: requestedShares is Share purchase transaction ids Mandatory Fields: requestedShares Redeem shares on a share account: Results redeem some/all shares from share account. requestedDate is requsted date of shares redeem requestedShares is number of shares to be redeemed Mandatory Fields: dateFormat,locale,requestedDate,requestedShares Showing request/response for \'Reject additional shares request on a share account\' For more info visit this link - https://fineract.apache.org/legacy-docs/apiLive.htm#shareaccounts + * @param type type + * @param accountId accountId + * @param postAccountsTypeAccountIdRequest + * @param command command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public handleCommands2(type: string, accountId: number, postAccountsTypeAccountIdRequest: PostAccountsTypeAccountIdRequest, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public handleCommands2(type: string, accountId: number, postAccountsTypeAccountIdRequest: PostAccountsTypeAccountIdRequest, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands2(type: string, accountId: number, postAccountsTypeAccountIdRequest: PostAccountsTypeAccountIdRequest, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public handleCommands2(type: string, accountId: number, postAccountsTypeAccountIdRequest: PostAccountsTypeAccountIdRequest, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling handleCommands2.'); + } + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling handleCommands2.'); + } + if (postAccountsTypeAccountIdRequest === null || postAccountsTypeAccountIdRequest === undefined) { + throw new Error('Required parameter postAccountsTypeAccountIdRequest was null or undefined when calling handleCommands2.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounts/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postAccountsTypeAccountIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param type type + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postSharedAccountsTemplate(type: string, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postSharedAccountsTemplate(type: string, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postSharedAccountsTemplate(type: string, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postSharedAccountsTemplate(type: string, dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling postSharedAccountsTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounts/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a share application/account + * Retrieves a share application/account Example Requests : shareaccount/1 + * @param accountId accountId + * @param type type + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAccount(accountId: number, type: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAccount(accountId: number, type: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAccount(accountId: number, type: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAccount(accountId: number, type: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling retrieveAccount.'); + } + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling retrieveAccount.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounts/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List share applications/accounts + * Lists share applications/accounts Example Requests: shareaccount + * @param type type + * @param offset offset + * @param limit limit + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllAccounts1(type: string, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAllAccounts1(type: string, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllAccounts1(type: string, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllAccounts1(type: string, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling retrieveAllAccounts1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounts/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Share Account Template + * 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 Requests: accounts/share/template?clientId=1 accounts/share/template?clientId=1&productId=1 + * @param type type + * @param clientId clientId + * @param productId productId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template7(type: string, clientId?: number, productId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template7(type: string, clientId?: number, productId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template7(type: string, clientId?: number, productId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template7(type: string, clientId?: number, productId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling template7.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (productId !== undefined && productId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + productId, 'productId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounts/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Modify a share application + * Share 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. Specific api endpoints will be created to allow change of interest detail such as rate, compounding period, posting period etc + * @param type type + * @param accountId accountId + * @param putAccountsTypeAccountIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateAccount(type: string, accountId: number, putAccountsTypeAccountIdRequest: PutAccountsTypeAccountIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateAccount(type: string, accountId: number, putAccountsTypeAccountIdRequest: PutAccountsTypeAccountIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateAccount(type: string, accountId: number, putAccountsTypeAccountIdRequest: PutAccountsTypeAccountIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateAccount(type: string, accountId: number, putAccountsTypeAccountIdRequest: PutAccountsTypeAccountIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (type === null || type === undefined) { + throw new Error('Required parameter type was null or undefined when calling updateAccount.'); + } + if (accountId === null || accountId === undefined) { + throw new Error('Required parameter accountId was null or undefined when calling updateAccount.'); + } + if (putAccountsTypeAccountIdRequest === null || putAccountsTypeAccountIdRequest === undefined) { + throw new Error('Required parameter putAccountsTypeAccountIdRequest was null or undefined when calling updateAccount.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/accounts/${this.configuration.encodeParam({name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putAccountsTypeAccountIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/spmSurveys.service.ts b/packages/fineract-client/src/services/spmSurveys.service.ts new file mode 100644 index 0000000000..6de75227cd --- /dev/null +++ b/packages/fineract-client/src/services/spmSurveys.service.ts @@ -0,0 +1,477 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { SurveyData } from '../models/surveyData'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SpmSurveysService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Deactivate Survey + * @param id + * @param command + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public activateOrDeactivateSurvey(id: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public activateOrDeactivateSurvey(id: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public activateOrDeactivateSurvey(id: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public activateOrDeactivateSurvey(id: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling activateOrDeactivateSurvey.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create a Survey + * Adds a new survey to collect client related data. Mandatory Fields countryCode, key, name, questions, responses, sequenceNo, text, description + * @param surveyData Create survey + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createSurvey(surveyData?: SurveyData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public createSurvey(surveyData?: SurveyData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public createSurvey(surveyData?: SurveyData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public createSurvey(surveyData?: SurveyData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: surveyData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param id + * @param surveyData + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public editSurvey(id: number, surveyData?: SurveyData, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public editSurvey(id: number, surveyData?: SurveyData, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public editSurvey(id: number, surveyData?: SurveyData, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public editSurvey(id: number, surveyData?: SurveyData, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling editSurvey.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: surveyData, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List all Surveys + * @param isActive + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public fetchAllSurveys1(isActive?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public fetchAllSurveys1(isActive?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public fetchAllSurveys1(isActive?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public fetchAllSurveys1(isActive?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (isActive !== undefined && isActive !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + isActive, 'isActive'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Survey + * @param id Enter id + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public findSurvey(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public findSurvey(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findSurvey(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findSurvey(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling findSurvey.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/surveys/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/staff.service.ts b/packages/fineract-client/src/services/staff.service.ts new file mode 100644 index 0000000000..e284fd2516 --- /dev/null +++ b/packages/fineract-client/src/services/staff.service.ts @@ -0,0 +1,623 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { CreateStaffResponse } from '../models/createStaffResponse'; +// @ts-ignore +import { PostStaffRequest } from '../models/postStaffRequest'; +// @ts-ignore +import { PutStaffRequest } from '../models/putStaffRequest'; +// @ts-ignore +import { RetrieveOneResponse } from '../models/retrieveOneResponse'; +// @ts-ignore +import { UpdateStaffResponse } from '../models/updateStaffResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class StaffService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a staff member + * Creates a staff member. Mandatory Fields: officeId, firstname, lastname Optional Fields: isLoanOfficer, isActive + * @param postStaffRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create3(postStaffRequest: PostStaffRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create3(postStaffRequest: PostStaffRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create3(postStaffRequest: PostStaffRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create3(postStaffRequest: PostStaffRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postStaffRequest === null || postStaffRequest === undefined) { + throw new Error('Required parameter postStaffRequest was null or undefined when calling create3.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/staff`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postStaffRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTemplate1(officeId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getTemplate1(officeId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getTemplate1(officeId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getTemplate1(officeId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/staff/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/staff/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Staff + * Returns the list of staff members. Example Requests: staff Retrieve a Staff by status Returns the details of a Staff based on status. By default it Returns all the ACTIVE Staff. If status=INACTIVE, then it returns all INACTIVE Staff. and for status=ALL, it Returns both ACTIVE and INACTIVE Staff. Example Requests: staff?status=active + * @param officeId officeId + * @param staffInOfficeHierarchy staffInOfficeHierarchy + * @param loanOfficersOnly loanOfficersOnly + * @param status status + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll16(officeId?: number, staffInOfficeHierarchy?: boolean, loanOfficersOnly?: boolean, status?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll16(officeId?: number, staffInOfficeHierarchy?: boolean, loanOfficersOnly?: boolean, status?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll16(officeId?: number, staffInOfficeHierarchy?: boolean, loanOfficersOnly?: boolean, status?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll16(officeId?: number, staffInOfficeHierarchy?: boolean, loanOfficersOnly?: boolean, status?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffInOfficeHierarchy !== undefined && staffInOfficeHierarchy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffInOfficeHierarchy, 'staffInOfficeHierarchy'); + } + if (loanOfficersOnly !== undefined && loanOfficersOnly !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + loanOfficersOnly, 'loanOfficersOnly'); + } + if (status !== undefined && status !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + status, 'status'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/staff`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a Staff Member + * Returns the details of a Staff Member. Example Requests: staff/1 + * @param staffId staffId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne8(staffId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne8(staffId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne8(staffId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne8(staffId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (staffId === null || staffId === undefined) { + throw new Error('Required parameter staffId was null or undefined when calling retrieveOne8.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/staff/${this.configuration.encodeParam({name: "staffId", value: staffId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Staff Member + * Updates the details of a staff member. + * @param staffId staffId + * @param putStaffRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update7(staffId: number, putStaffRequest: PutStaffRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update7(staffId: number, putStaffRequest: PutStaffRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update7(staffId: number, putStaffRequest: PutStaffRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update7(staffId: number, putStaffRequest: PutStaffRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (staffId === null || staffId === undefined) { + throw new Error('Required parameter staffId was null or undefined when calling update7.'); + } + if (putStaffRequest === null || putStaffRequest === undefined) { + throw new Error('Required parameter putStaffRequest was null or undefined when calling update7.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/staff/${this.configuration.encodeParam({name: "staffId", value: staffId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putStaffRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/standingInstructions.service.ts b/packages/fineract-client/src/services/standingInstructions.service.ts new file mode 100644 index 0000000000..8ec0e5b15c --- /dev/null +++ b/packages/fineract-client/src/services/standingInstructions.service.ts @@ -0,0 +1,626 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetStandingInstructionsResponse } from '../models/getStandingInstructionsResponse'; +// @ts-ignore +import { GetStandingInstructionsStandingInstructionIdResponse } from '../models/getStandingInstructionsStandingInstructionIdResponse'; +// @ts-ignore +import { GetStandingInstructionsTemplateResponse } from '../models/getStandingInstructionsTemplateResponse'; +// @ts-ignore +import { PostStandingInstructionsRequest } from '../models/postStandingInstructionsRequest'; +// @ts-ignore +import { PostStandingInstructionsResponse } from '../models/postStandingInstructionsResponse'; +// @ts-ignore +import { PutStandingInstructionsStandingInstructionIdRequest } from '../models/putStandingInstructionsStandingInstructionIdRequest'; +// @ts-ignore +import { PutStandingInstructionsStandingInstructionIdResponse } from '../models/putStandingInstructionsStandingInstructionIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class StandingInstructionsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create new Standing Instruction + * Ability to create new instruction for transfer of monetary funds from one account to another + * @param postStandingInstructionsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create5(postStandingInstructionsRequest: PostStandingInstructionsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create5(postStandingInstructionsRequest: PostStandingInstructionsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create5(postStandingInstructionsRequest: PostStandingInstructionsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create5(postStandingInstructionsRequest: PostStandingInstructionsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postStandingInstructionsRequest === null || postStandingInstructionsRequest === undefined) { + throw new Error('Required parameter postStandingInstructionsRequest was null or undefined when calling create5.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/standinginstructions`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postStandingInstructionsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Standing Instructions + * Example Requests: standinginstructions + * @param sqlSearch sqlSearch + * @param externalId externalId + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param transferType transferType + * @param clientName clientName + * @param clientId clientId + * @param fromAccountId fromAccountId + * @param fromAccountType fromAccountType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll19(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, transferType?: number, clientName?: string, clientId?: number, fromAccountId?: number, fromAccountType?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll19(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, transferType?: number, clientName?: string, clientId?: number, fromAccountId?: number, fromAccountType?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll19(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, transferType?: number, clientName?: string, clientId?: number, fromAccountId?: number, fromAccountType?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll19(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, transferType?: number, clientName?: string, clientId?: number, fromAccountId?: number, fromAccountType?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (externalId !== undefined && externalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalId, 'externalId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (transferType !== undefined && transferType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + transferType, 'transferType'); + } + if (clientName !== undefined && clientName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientName, 'clientName'); + } + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (fromAccountId !== undefined && fromAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromAccountId, 'fromAccountId'); + } + if (fromAccountType !== undefined && fromAccountType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromAccountType, 'fromAccountType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/standinginstructions`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Standing Instruction + * Example Requests : standinginstructions/1 + * @param standingInstructionId standingInstructionId + * @param sqlSearch sqlSearch + * @param externalId externalId + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne10(standingInstructionId: number, sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne10(standingInstructionId: number, sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne10(standingInstructionId: number, sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne10(standingInstructionId: number, sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (standingInstructionId === null || standingInstructionId === undefined) { + throw new Error('Required parameter standingInstructionId was null or undefined when calling retrieveOne10.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (externalId !== undefined && externalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalId, 'externalId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/standinginstructions/${this.configuration.encodeParam({name: "standingInstructionId", value: standingInstructionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Standing Instruction Template + * 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 Requests: standinginstructions/template?fromAccountType=2&fromOfficeId=1 standinginstructions/template?fromAccountType=2&fromOfficeId=1&fromClientId=1&transferType=1 standinginstructions/template?fromClientId=1&fromAccountType=2&fromAccountId=1&transferType=1 + * @param fromOfficeId fromOfficeId + * @param fromClientId fromClientId + * @param fromAccountId fromAccountId + * @param fromAccountType fromAccountType + * @param toOfficeId toOfficeId + * @param toClientId toClientId + * @param toAccountId toAccountId + * @param toAccountType toAccountType + * @param transferType transferType + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template6(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, transferType?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template6(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, transferType?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template6(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, transferType?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template6(fromOfficeId?: number, fromClientId?: number, fromAccountId?: number, fromAccountType?: number, toOfficeId?: number, toClientId?: number, toAccountId?: number, toAccountType?: number, transferType?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (fromOfficeId !== undefined && fromOfficeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromOfficeId, 'fromOfficeId'); + } + if (fromClientId !== undefined && fromClientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromClientId, 'fromClientId'); + } + if (fromAccountId !== undefined && fromAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromAccountId, 'fromAccountId'); + } + if (fromAccountType !== undefined && fromAccountType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromAccountType, 'fromAccountType'); + } + if (toOfficeId !== undefined && toOfficeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toOfficeId, 'toOfficeId'); + } + if (toClientId !== undefined && toClientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toClientId, 'toClientId'); + } + if (toAccountId !== undefined && toAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toAccountId, 'toAccountId'); + } + if (toAccountType !== undefined && toAccountType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toAccountType, 'toAccountType'); + } + if (transferType !== undefined && transferType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + transferType, 'transferType'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/standinginstructions/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Standing Instruction | Delete Standing Instruction + * Ability to modify existing instruction for transfer of monetary funds from one account to another. PUT https://DomainName/api/v1/standinginstructions/1?command=update Ability to modify existing instruction for transfer of monetary funds from one account to another. PUT https://DomainName/api/v1/standinginstructions/1?command=delete + * @param standingInstructionId standingInstructionId + * @param command command + * @param putStandingInstructionsStandingInstructionIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update9(standingInstructionId: number, command?: string, putStandingInstructionsStandingInstructionIdRequest?: PutStandingInstructionsStandingInstructionIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update9(standingInstructionId: number, command?: string, putStandingInstructionsStandingInstructionIdRequest?: PutStandingInstructionsStandingInstructionIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update9(standingInstructionId: number, command?: string, putStandingInstructionsStandingInstructionIdRequest?: PutStandingInstructionsStandingInstructionIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update9(standingInstructionId: number, command?: string, putStandingInstructionsStandingInstructionIdRequest?: PutStandingInstructionsStandingInstructionIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (standingInstructionId === null || standingInstructionId === undefined) { + throw new Error('Required parameter standingInstructionId was null or undefined when calling update9.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (command !== undefined && command !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + command, 'command'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/standinginstructions/${this.configuration.encodeParam({name: "standingInstructionId", value: standingInstructionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putStandingInstructionsStandingInstructionIdRequest, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/standingInstructionsHistory.service.ts b/packages/fineract-client/src/services/standingInstructionsHistory.service.ts new file mode 100644 index 0000000000..3bc03ab337 --- /dev/null +++ b/packages/fineract-client/src/services/standingInstructionsHistory.service.ts @@ -0,0 +1,240 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetStandingInstructionRunHistoryResponse } from '../models/getStandingInstructionRunHistoryResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class StandingInstructionsHistoryService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Standing Instructions Logged History + * The list capability of history can support pagination and sorting Example Requests : standinginstructionrunhistory standinginstructionrunhistory?orderBy=name&sortOrder=DESC standinginstructionrunhistory?offset=10&limit=50 + * @param sqlSearch sqlSearch + * @param externalId externalId + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param transferType transferType + * @param clientName clientName + * @param clientId clientId + * @param fromAccountId fromAccountId + * @param fromAccountType fromAccountType + * @param locale locale + * @param dateFormat dateFormat + * @param fromDate fromDate + * @param toDate toDate + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll20(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, transferType?: number, clientName?: string, clientId?: number, fromAccountId?: number, fromAccountType?: number, locale?: string, dateFormat?: string, fromDate?: object, toDate?: object, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll20(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, transferType?: number, clientName?: string, clientId?: number, fromAccountId?: number, fromAccountType?: number, locale?: string, dateFormat?: string, fromDate?: object, toDate?: object, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll20(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, transferType?: number, clientName?: string, clientId?: number, fromAccountId?: number, fromAccountType?: number, locale?: string, dateFormat?: string, fromDate?: object, toDate?: object, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll20(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, transferType?: number, clientName?: string, clientId?: number, fromAccountId?: number, fromAccountType?: number, locale?: string, dateFormat?: string, fromDate?: object, toDate?: object, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (sqlSearch !== undefined && sqlSearch !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sqlSearch, 'sqlSearch'); + } + if (externalId !== undefined && externalId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalId, 'externalId'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + if (transferType !== undefined && transferType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + transferType, 'transferType'); + } + if (clientName !== undefined && clientName !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientName, 'clientName'); + } + if (clientId !== undefined && clientId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + clientId, 'clientId'); + } + if (fromAccountId !== undefined && fromAccountId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromAccountId, 'fromAccountId'); + } + if (fromAccountType !== undefined && fromAccountType !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromAccountType, 'fromAccountType'); + } + if (locale !== undefined && locale !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + locale, 'locale'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + if (fromDate !== undefined && fromDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromDate, 'fromDate'); + } + if (toDate !== undefined && toDate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + toDate, 'toDate'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/standinginstructionrunhistory`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/survey.service.ts b/packages/fineract-client/src/services/survey.service.ts new file mode 100644 index 0000000000..86e50307b6 --- /dev/null +++ b/packages/fineract-client/src/services/survey.service.ts @@ -0,0 +1,643 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetSurveyResponse } from '../models/getSurveyResponse'; +// @ts-ignore +import { PostSurveySurveyNameApptableIdRequest } from '../models/postSurveySurveyNameApptableIdRequest'; +// @ts-ignore +import { PostSurveySurveyNameApptableIdResponse } from '../models/postSurveySurveyNameApptableIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SurveyService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create an entry in the survey table + * Insert and entry in a survey table (full fill the survey). Refer Link for sample Body: [ https://fineract.apache.org/legacy-docs/apiLive.htm#survey_create ] + * @param surveyName surveyName + * @param apptableId apptableId + * @param postSurveySurveyNameApptableIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createDatatableEntry1(surveyName: string, apptableId: number, postSurveySurveyNameApptableIdRequest: PostSurveySurveyNameApptableIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createDatatableEntry1(surveyName: string, apptableId: number, postSurveySurveyNameApptableIdRequest: PostSurveySurveyNameApptableIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDatatableEntry1(surveyName: string, apptableId: number, postSurveySurveyNameApptableIdRequest: PostSurveySurveyNameApptableIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createDatatableEntry1(surveyName: string, apptableId: number, postSurveySurveyNameApptableIdRequest: PostSurveySurveyNameApptableIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyName === null || surveyName === undefined) { + throw new Error('Required parameter surveyName was null or undefined when calling createDatatableEntry1.'); + } + if (apptableId === null || apptableId === undefined) { + throw new Error('Required parameter apptableId was null or undefined when calling createDatatableEntry1.'); + } + if (postSurveySurveyNameApptableIdRequest === null || postSurveySurveyNameApptableIdRequest === undefined) { + throw new Error('Required parameter postSurveySurveyNameApptableIdRequest was null or undefined when calling createDatatableEntry1.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/survey/${this.configuration.encodeParam({name: "surveyName", value: surveyName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "apptableId", value: apptableId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postSurveySurveyNameApptableIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param surveyName + * @param clientId + * @param fulfilledId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteDatatableEntries2(surveyName: string, clientId: number, fulfilledId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteDatatableEntries2(surveyName: string, clientId: number, fulfilledId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDatatableEntries2(surveyName: string, clientId: number, fulfilledId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteDatatableEntries2(surveyName: string, clientId: number, fulfilledId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyName === null || surveyName === undefined) { + throw new Error('Required parameter surveyName was null or undefined when calling deleteDatatableEntries2.'); + } + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling deleteDatatableEntries2.'); + } + if (fulfilledId === null || fulfilledId === undefined) { + throw new Error('Required parameter fulfilledId was null or undefined when calling deleteDatatableEntries2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/survey/${this.configuration.encodeParam({name: "surveyName", value: surveyName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/${this.configuration.encodeParam({name: "fulfilledId", value: fulfilledId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param surveyName + * @param clientId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getClientSurveyOverview(surveyName: string, clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getClientSurveyOverview(surveyName: string, clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getClientSurveyOverview(surveyName: string, clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getClientSurveyOverview(surveyName: string, clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyName === null || surveyName === undefined) { + throw new Error('Required parameter surveyName was null or undefined when calling getClientSurveyOverview.'); + } + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling getClientSurveyOverview.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/survey/${this.configuration.encodeParam({name: "surveyName", value: surveyName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param surveyName + * @param clientId + * @param entryId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getSurveyEntry(surveyName: string, clientId: number, entryId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getSurveyEntry(surveyName: string, clientId: number, entryId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getSurveyEntry(surveyName: string, clientId: number, entryId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getSurveyEntry(surveyName: string, clientId: number, entryId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyName === null || surveyName === undefined) { + throw new Error('Required parameter surveyName was null or undefined when calling getSurveyEntry.'); + } + if (clientId === null || clientId === undefined) { + throw new Error('Required parameter clientId was null or undefined when calling getSurveyEntry.'); + } + if (entryId === null || entryId === undefined) { + throw new Error('Required parameter entryId was null or undefined when calling getSurveyEntry.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/survey/${this.configuration.encodeParam({name: "surveyName", value: surveyName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/${this.configuration.encodeParam({name: "entryId", value: entryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param surveyName + * @param apptable + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public register(surveyName: string, apptable: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public register(surveyName: string, apptable: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public register(surveyName: string, apptable: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public register(surveyName: string, apptable: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyName === null || surveyName === undefined) { + throw new Error('Required parameter surveyName was null or undefined when calling register.'); + } + if (apptable === null || apptable === undefined) { + throw new Error('Required parameter apptable was null or undefined when calling register.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/survey/register/${this.configuration.encodeParam({name: "surveyName", value: surveyName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "apptable", value: apptable, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve survey + * Lists a registered survey table details and the Apache Fineract Core application table they are registered to. + * @param surveyName surveyName + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveSurvey(surveyName: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveSurvey(surveyName: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSurvey(surveyName: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSurvey(surveyName: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (surveyName === null || surveyName === undefined) { + throw new Error('Required parameter surveyName was null or undefined when calling retrieveSurvey.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/survey/${this.configuration.encodeParam({name: "surveyName", value: surveyName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve surveys + * Retrieve surveys. This allows to retrieve the list of survey tables registered . + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveSurveys(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveSurveys(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveSurveys(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveSurveys(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/survey`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/taxComponents.service.ts b/packages/fineract-client/src/services/taxComponents.service.ts new file mode 100644 index 0000000000..2f84a50858 --- /dev/null +++ b/packages/fineract-client/src/services/taxComponents.service.ts @@ -0,0 +1,476 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetTaxesComponentsResponse } from '../models/getTaxesComponentsResponse'; +// @ts-ignore +import { PostTaxesComponentsRequest } from '../models/postTaxesComponentsRequest'; +// @ts-ignore +import { PostTaxesComponentsResponse } from '../models/postTaxesComponentsResponse'; +// @ts-ignore +import { PutTaxesComponentsTaxComponentIdRequest } from '../models/putTaxesComponentsTaxComponentIdRequest'; +// @ts-ignore +import { PutTaxesComponentsTaxComponentIdResponse } from '../models/putTaxesComponentsTaxComponentIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class TaxComponentsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a new Tax Component + * Creates a new Tax Component Mandatory Fields: name, percentage Optional Fields: debitAccountType, debitAcountId, creditAccountType, creditAcountId, startDate + * @param postTaxesComponentsRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createTaxCompoent(postTaxesComponentsRequest: PostTaxesComponentsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createTaxCompoent(postTaxesComponentsRequest: PostTaxesComponentsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createTaxCompoent(postTaxesComponentsRequest: PostTaxesComponentsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createTaxCompoent(postTaxesComponentsRequest: PostTaxesComponentsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postTaxesComponentsRequest === null || postTaxesComponentsRequest === undefined) { + throw new Error('Required parameter postTaxesComponentsRequest was null or undefined when calling createTaxCompoent.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/taxes/component`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postTaxesComponentsRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Tax Components + * List Tax Components + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllTaxComponents(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllTaxComponents(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllTaxComponents(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllTaxComponents(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/taxes/component`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Tax Component + * Retrieve Tax Component + * @param taxComponentId taxComponentId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTaxComponent(taxComponentId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTaxComponent(taxComponentId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTaxComponent(taxComponentId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTaxComponent(taxComponentId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (taxComponentId === null || taxComponentId === undefined) { + throw new Error('Required parameter taxComponentId was null or undefined when calling retrieveTaxComponent.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/taxes/component/${this.configuration.encodeParam({name: "taxComponentId", value: taxComponentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate21(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate21(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate21(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate21(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/taxes/component/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Tax Component + * Updates Tax component. Debit and credit account details cannot be modified. All the future tax components would be replaced with the new percentage. + * @param taxComponentId taxComponentId + * @param putTaxesComponentsTaxComponentIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateTaxCompoent(taxComponentId: number, putTaxesComponentsTaxComponentIdRequest: PutTaxesComponentsTaxComponentIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateTaxCompoent(taxComponentId: number, putTaxesComponentsTaxComponentIdRequest: PutTaxesComponentsTaxComponentIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateTaxCompoent(taxComponentId: number, putTaxesComponentsTaxComponentIdRequest: PutTaxesComponentsTaxComponentIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateTaxCompoent(taxComponentId: number, putTaxesComponentsTaxComponentIdRequest: PutTaxesComponentsTaxComponentIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (taxComponentId === null || taxComponentId === undefined) { + throw new Error('Required parameter taxComponentId was null or undefined when calling updateTaxCompoent.'); + } + if (putTaxesComponentsTaxComponentIdRequest === null || putTaxesComponentsTaxComponentIdRequest === undefined) { + throw new Error('Required parameter putTaxesComponentsTaxComponentIdRequest was null or undefined when calling updateTaxCompoent.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/taxes/component/${this.configuration.encodeParam({name: "taxComponentId", value: taxComponentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putTaxesComponentsTaxComponentIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/taxGroup.service.ts b/packages/fineract-client/src/services/taxGroup.service.ts new file mode 100644 index 0000000000..1e3b158881 --- /dev/null +++ b/packages/fineract-client/src/services/taxGroup.service.ts @@ -0,0 +1,476 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetTaxesGroupResponse } from '../models/getTaxesGroupResponse'; +// @ts-ignore +import { PostTaxesGroupRequest } from '../models/postTaxesGroupRequest'; +// @ts-ignore +import { PostTaxesGroupResponse } from '../models/postTaxesGroupResponse'; +// @ts-ignore +import { PutTaxesGroupTaxGroupIdRequest } from '../models/putTaxesGroupTaxGroupIdRequest'; +// @ts-ignore +import { PutTaxesGroupTaxGroupIdResponse } from '../models/putTaxesGroupTaxGroupIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class TaxGroupService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a new Tax Group + * Create a new Tax Group Mandatory Fields: name and taxComponents Mandatory Fields in taxComponents: taxComponentId Optional Fields in taxComponents: id, startDate and endDate + * @param postTaxesGroupRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createTaxGroup(postTaxesGroupRequest: PostTaxesGroupRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createTaxGroup(postTaxesGroupRequest: PostTaxesGroupRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createTaxGroup(postTaxesGroupRequest: PostTaxesGroupRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createTaxGroup(postTaxesGroupRequest: PostTaxesGroupRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postTaxesGroupRequest === null || postTaxesGroupRequest === undefined) { + throw new Error('Required parameter postTaxesGroupRequest was null or undefined when calling createTaxGroup.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/taxes/group`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postTaxesGroupRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Tax Group + * List Tax Group + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAllTaxGroups(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAllTaxGroups(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllTaxGroups(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAllTaxGroups(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/taxes/group`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Tax Group + * Retrieve Tax Group + * @param taxGroupId taxGroupId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTaxGroup(taxGroupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTaxGroup(taxGroupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTaxGroup(taxGroupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTaxGroup(taxGroupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (taxGroupId === null || taxGroupId === undefined) { + throw new Error('Required parameter taxGroupId was null or undefined when calling retrieveTaxGroup.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/taxes/group/${this.configuration.encodeParam({name: "taxGroupId", value: taxGroupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveTemplate22(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveTemplate22(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate22(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveTemplate22(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/taxes/group/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Tax Group + * Updates Tax Group. Only end date can be up-datable and can insert new tax components. + * @param taxGroupId taxGroupId + * @param putTaxesGroupTaxGroupIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateTaxGroup(taxGroupId: number, putTaxesGroupTaxGroupIdRequest: PutTaxesGroupTaxGroupIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateTaxGroup(taxGroupId: number, putTaxesGroupTaxGroupIdRequest: PutTaxesGroupTaxGroupIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateTaxGroup(taxGroupId: number, putTaxesGroupTaxGroupIdRequest: PutTaxesGroupTaxGroupIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateTaxGroup(taxGroupId: number, putTaxesGroupTaxGroupIdRequest: PutTaxesGroupTaxGroupIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (taxGroupId === null || taxGroupId === undefined) { + throw new Error('Required parameter taxGroupId was null or undefined when calling updateTaxGroup.'); + } + if (putTaxesGroupTaxGroupIdRequest === null || putTaxesGroupTaxGroupIdRequest === undefined) { + throw new Error('Required parameter putTaxesGroupTaxGroupIdRequest was null or undefined when calling updateTaxGroup.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/taxes/group/${this.configuration.encodeParam({name: "taxGroupId", value: taxGroupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putTaxesGroupTaxGroupIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/tellerCashManagement.service.ts b/packages/fineract-client/src/services/tellerCashManagement.service.ts new file mode 100644 index 0000000000..3986ec7762 --- /dev/null +++ b/packages/fineract-client/src/services/tellerCashManagement.service.ts @@ -0,0 +1,1694 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteTellersTellerIdCashiersCashierIdResponse } from '../models/deleteTellersTellerIdCashiersCashierIdResponse'; +// @ts-ignore +import { GetTellersResponse } from '../models/getTellersResponse'; +// @ts-ignore +import { GetTellersTellerIdCashiersCashierIdResponse } from '../models/getTellersTellerIdCashiersCashierIdResponse'; +// @ts-ignore +import { GetTellersTellerIdCashiersCashiersIdSummaryAndTransactionsResponse } from '../models/getTellersTellerIdCashiersCashiersIdSummaryAndTransactionsResponse'; +// @ts-ignore +import { GetTellersTellerIdCashiersCashiersIdTransactionsResponse } from '../models/getTellersTellerIdCashiersCashiersIdTransactionsResponse'; +// @ts-ignore +import { GetTellersTellerIdCashiersCashiersIdTransactionsTemplateResponse } from '../models/getTellersTellerIdCashiersCashiersIdTransactionsTemplateResponse'; +// @ts-ignore +import { GetTellersTellerIdCashiersResponse } from '../models/getTellersTellerIdCashiersResponse'; +// @ts-ignore +import { GetTellersTellerIdCashiersTemplateResponse } from '../models/getTellersTellerIdCashiersTemplateResponse'; +// @ts-ignore +import { PostTellersRequest } from '../models/postTellersRequest'; +// @ts-ignore +import { PostTellersResponse } from '../models/postTellersResponse'; +// @ts-ignore +import { PostTellersTellerIdCashiersCashierIdAllocateRequest } from '../models/postTellersTellerIdCashiersCashierIdAllocateRequest'; +// @ts-ignore +import { PostTellersTellerIdCashiersCashierIdAllocateResponse } from '../models/postTellersTellerIdCashiersCashierIdAllocateResponse'; +// @ts-ignore +import { PostTellersTellerIdCashiersCashierIdSettleRequest } from '../models/postTellersTellerIdCashiersCashierIdSettleRequest'; +// @ts-ignore +import { PostTellersTellerIdCashiersCashierIdSettleResponse } from '../models/postTellersTellerIdCashiersCashierIdSettleResponse'; +// @ts-ignore +import { PostTellersTellerIdCashiersRequest } from '../models/postTellersTellerIdCashiersRequest'; +// @ts-ignore +import { PostTellersTellerIdCashiersResponse } from '../models/postTellersTellerIdCashiersResponse'; +// @ts-ignore +import { PutTellersRequest } from '../models/putTellersRequest'; +// @ts-ignore +import { PutTellersResponse } from '../models/putTellersResponse'; +// @ts-ignore +import { PutTellersTellerIdCashiersCashierIdRequest } from '../models/putTellersTellerIdCashiersCashierIdRequest'; +// @ts-ignore +import { PutTellersTellerIdCashiersCashierIdResponse } from '../models/putTellersTellerIdCashiersCashierIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class TellerCashManagementService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Allocate Cash To Cashier + * Mandatory Fields: Date, Amount, Currency, Notes/Comments + * @param tellerId tellerId + * @param cashierId cashierId + * @param postTellersTellerIdCashiersCashierIdAllocateRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public allocateCashToCashier(tellerId: number, cashierId: number, postTellersTellerIdCashiersCashierIdAllocateRequest: PostTellersTellerIdCashiersCashierIdAllocateRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public allocateCashToCashier(tellerId: number, cashierId: number, postTellersTellerIdCashiersCashierIdAllocateRequest: PostTellersTellerIdCashiersCashierIdAllocateRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public allocateCashToCashier(tellerId: number, cashierId: number, postTellersTellerIdCashiersCashierIdAllocateRequest: PostTellersTellerIdCashiersCashierIdAllocateRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public allocateCashToCashier(tellerId: number, cashierId: number, postTellersTellerIdCashiersCashierIdAllocateRequest: PostTellersTellerIdCashiersCashierIdAllocateRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling allocateCashToCashier.'); + } + if (cashierId === null || cashierId === undefined) { + throw new Error('Required parameter cashierId was null or undefined when calling allocateCashToCashier.'); + } + if (postTellersTellerIdCashiersCashierIdAllocateRequest === null || postTellersTellerIdCashiersCashierIdAllocateRequest === undefined) { + throw new Error('Required parameter postTellersTellerIdCashiersCashierIdAllocateRequest was null or undefined when calling allocateCashToCashier.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/html' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers/${this.configuration.encodeParam({name: "cashierId", value: cashierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/allocate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postTellersTellerIdCashiersCashierIdAllocateRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create Cashiers + * Mandatory Fields: Cashier/staff, Fromm Date, To Date, Full Day or From time and To time Optional Fields: Description/Notes + * @param tellerId tellerId + * @param postTellersTellerIdCashiersRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createCashier(tellerId: number, postTellersTellerIdCashiersRequest: PostTellersTellerIdCashiersRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createCashier(tellerId: number, postTellersTellerIdCashiersRequest: PostTellersTellerIdCashiersRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCashier(tellerId: number, postTellersTellerIdCashiersRequest: PostTellersTellerIdCashiersRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createCashier(tellerId: number, postTellersTellerIdCashiersRequest: PostTellersTellerIdCashiersRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling createCashier.'); + } + if (postTellersTellerIdCashiersRequest === null || postTellersTellerIdCashiersRequest === undefined) { + throw new Error('Required parameter postTellersTellerIdCashiersRequest was null or undefined when calling createCashier.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postTellersTellerIdCashiersRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Create teller + * Mandatory Fields Teller name, OfficeId, Description, Start Date, Status Optional Fields End Date + * @param postTellersRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createTeller(postTellersRequest: PostTellersRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createTeller(postTellersRequest: PostTellersRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createTeller(postTellersRequest: PostTellersRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createTeller(postTellersRequest: PostTellersRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postTellersRequest === null || postTellersRequest === undefined) { + throw new Error('Required parameter postTellersRequest was null or undefined when calling createTeller.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postTellersRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete Cashier + * @param tellerId tellerId + * @param cashierId cashierId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteCashier(tellerId: number, cashierId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteCashier(tellerId: number, cashierId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCashier(tellerId: number, cashierId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteCashier(tellerId: number, cashierId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling deleteCashier.'); + } + if (cashierId === null || cashierId === undefined) { + throw new Error('Required parameter cashierId was null or undefined when calling deleteCashier.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers/${this.configuration.encodeParam({name: "cashierId", value: cashierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param tellerId tellerId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteTeller(tellerId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteTeller(tellerId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteTeller(tellerId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteTeller(tellerId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling deleteTeller.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a cashier + * @param tellerId tellerId + * @param cashierId cashierId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public findCashierData(tellerId: number, cashierId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public findCashierData(tellerId: number, cashierId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findCashierData(tellerId: number, cashierId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findCashierData(tellerId: number, cashierId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling findCashierData.'); + } + if (cashierId === null || cashierId === undefined) { + throw new Error('Required parameter cashierId was null or undefined when calling findCashierData.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers/${this.configuration.encodeParam({name: "cashierId", value: cashierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve tellers + * @param tellerId tellerId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public findTeller(tellerId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public findTeller(tellerId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findTeller(tellerId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findTeller(tellerId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling findTeller.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param tellerId tellerId + * @param transactionId transactionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public findTransactionData(tellerId: number, transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public findTransactionData(tellerId: number, transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findTransactionData(tellerId: number, transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public findTransactionData(tellerId: number, transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling findTransactionData.'); + } + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling findTransactionData.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List Cashiers + * @param tellerId tellerId + * @param fromdate fromdate + * @param todate todate + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCashierData1(tellerId: number, fromdate?: string, todate?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getCashierData1(tellerId: number, fromdate?: string, todate?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCashierData1(tellerId: number, fromdate?: string, todate?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCashierData1(tellerId: number, fromdate?: string, todate?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling getCashierData1.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (fromdate !== undefined && fromdate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fromdate, 'fromdate'); + } + if (todate !== undefined && todate !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + todate, 'todate'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Find Cashiers + * @param tellerId tellerId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCashierTemplate(tellerId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getCashierTemplate(tellerId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCashierTemplate(tellerId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCashierTemplate(tellerId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling getCashierTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Cashier Transaction Template + * @param tellerId tellerId + * @param cashierId cashierId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCashierTxnTemplate(tellerId: number, cashierId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getCashierTxnTemplate(tellerId: number, cashierId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCashierTxnTemplate(tellerId: number, cashierId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getCashierTxnTemplate(tellerId: number, cashierId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling getCashierTxnTemplate.'); + } + if (cashierId === null || cashierId === undefined) { + throw new Error('Required parameter cashierId was null or undefined when calling getCashierTxnTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers/${this.configuration.encodeParam({name: "cashierId", value: cashierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param tellerId tellerId + * @param cashierId cashierId + * @param dateRange dateRange + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getJournalData(tellerId: number, cashierId?: number, dateRange?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getJournalData(tellerId: number, cashierId?: number, dateRange?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getJournalData(tellerId: number, cashierId?: number, dateRange?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getJournalData(tellerId: number, cashierId?: number, dateRange?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling getJournalData.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (cashierId !== undefined && cashierId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + cashierId, 'cashierId'); + } + if (dateRange !== undefined && dateRange !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateRange, 'dateRange'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/journals`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * List all tellers + * Retrieves list tellers + * @param officeId officeId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTellerData(officeId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTellerData(officeId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getTellerData(officeId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getTellerData(officeId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param tellerId tellerId + * @param dateRange dateRange + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTransactionData(tellerId: number, dateRange?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getTransactionData(tellerId: number, dateRange?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransactionData(tellerId: number, dateRange?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransactionData(tellerId: number, dateRange?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling getTransactionData.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (dateRange !== undefined && dateRange !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateRange, 'dateRange'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve Cashier Transaction + * @param tellerId tellerId + * @param cashierId cashierId + * @param currencyCode currencyCode + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTransactionsForCashier(tellerId: number, cashierId: number, currencyCode?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransactionsForCashier(tellerId: number, cashierId: number, currencyCode?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getTransactionsForCashier(tellerId: number, cashierId: number, currencyCode?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public getTransactionsForCashier(tellerId: number, cashierId: number, currencyCode?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling getTransactionsForCashier.'); + } + if (cashierId === null || cashierId === undefined) { + throw new Error('Required parameter cashierId was null or undefined when calling getTransactionsForCashier.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (currencyCode !== undefined && currencyCode !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + currencyCode, 'currencyCode'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers/${this.configuration.encodeParam({name: "cashierId", value: cashierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transactions`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Transactions Wtih Summary For Cashier + * @param tellerId tellerId + * @param cashierId cashierId + * @param currencyCode currencyCode + * @param offset offset + * @param limit limit + * @param orderBy orderBy + * @param sortOrder sortOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTransactionsWtihSummaryForCashier(tellerId: number, cashierId: number, currencyCode?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getTransactionsWtihSummaryForCashier(tellerId: number, cashierId: number, currencyCode?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransactionsWtihSummaryForCashier(tellerId: number, cashierId: number, currencyCode?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTransactionsWtihSummaryForCashier(tellerId: number, cashierId: number, currencyCode?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling getTransactionsWtihSummaryForCashier.'); + } + if (cashierId === null || cashierId === undefined) { + throw new Error('Required parameter cashierId was null or undefined when calling getTransactionsWtihSummaryForCashier.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (currencyCode !== undefined && currencyCode !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + currencyCode, 'currencyCode'); + } + if (offset !== undefined && offset !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + offset, 'offset'); + } + if (limit !== undefined && limit !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + } + if (orderBy !== undefined && orderBy !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + orderBy, 'orderBy'); + } + if (sortOrder !== undefined && sortOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers/${this.configuration.encodeParam({name: "cashierId", value: cashierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/summaryandtransactions`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Settle Cash From Cashier + * Mandatory Fields Date, Amount, Currency, Notes/Comments + * @param tellerId tellerId + * @param cashierId cashierId + * @param postTellersTellerIdCashiersCashierIdSettleRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public settleCashFromCashier(tellerId: number, cashierId: number, postTellersTellerIdCashiersCashierIdSettleRequest: PostTellersTellerIdCashiersCashierIdSettleRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public settleCashFromCashier(tellerId: number, cashierId: number, postTellersTellerIdCashiersCashierIdSettleRequest: PostTellersTellerIdCashiersCashierIdSettleRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public settleCashFromCashier(tellerId: number, cashierId: number, postTellersTellerIdCashiersCashierIdSettleRequest: PostTellersTellerIdCashiersCashierIdSettleRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public settleCashFromCashier(tellerId: number, cashierId: number, postTellersTellerIdCashiersCashierIdSettleRequest: PostTellersTellerIdCashiersCashierIdSettleRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling settleCashFromCashier.'); + } + if (cashierId === null || cashierId === undefined) { + throw new Error('Required parameter cashierId was null or undefined when calling settleCashFromCashier.'); + } + if (postTellersTellerIdCashiersCashierIdSettleRequest === null || postTellersTellerIdCashiersCashierIdSettleRequest === undefined) { + throw new Error('Required parameter postTellersTellerIdCashiersCashierIdSettleRequest was null or undefined when calling settleCashFromCashier.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/html' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers/${this.configuration.encodeParam({name: "cashierId", value: cashierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/settle`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postTellersTellerIdCashiersCashierIdSettleRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update Cashier + * @param tellerId tellerId + * @param cashierId cashierId + * @param putTellersTellerIdCashiersCashierIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateCashier(tellerId: number, cashierId: number, putTellersTellerIdCashiersCashierIdRequest: PutTellersTellerIdCashiersCashierIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateCashier(tellerId: number, cashierId: number, putTellersTellerIdCashiersCashierIdRequest: PutTellersTellerIdCashiersCashierIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCashier(tellerId: number, cashierId: number, putTellersTellerIdCashiersCashierIdRequest: PutTellersTellerIdCashiersCashierIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateCashier(tellerId: number, cashierId: number, putTellersTellerIdCashiersCashierIdRequest: PutTellersTellerIdCashiersCashierIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling updateCashier.'); + } + if (cashierId === null || cashierId === undefined) { + throw new Error('Required parameter cashierId was null or undefined when calling updateCashier.'); + } + if (putTellersTellerIdCashiersCashierIdRequest === null || putTellersTellerIdCashiersCashierIdRequest === undefined) { + throw new Error('Required parameter putTellersTellerIdCashiersCashierIdRequest was null or undefined when calling updateCashier.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cashiers/${this.configuration.encodeParam({name: "cashierId", value: cashierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putTellersTellerIdCashiersCashierIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update teller + * @param tellerId tellerId + * @param putTellersRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateTeller(tellerId: number, putTellersRequest: PutTellersRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateTeller(tellerId: number, putTellersRequest: PutTellersRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateTeller(tellerId: number, putTellersRequest: PutTellersRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateTeller(tellerId: number, putTellersRequest: PutTellersRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (tellerId === null || tellerId === undefined) { + throw new Error('Required parameter tellerId was null or undefined when calling updateTeller.'); + } + if (putTellersRequest === null || putTellersRequest === undefined) { + throw new Error('Required parameter putTellersRequest was null or undefined when calling updateTeller.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/tellers/${this.configuration.encodeParam({name: "tellerId", value: tellerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putTellersRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/twoFactor.service.ts b/packages/fineract-client/src/services/twoFactor.service.ts new file mode 100644 index 0000000000..f9ff39582e --- /dev/null +++ b/packages/fineract-client/src/services/twoFactor.service.ts @@ -0,0 +1,387 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class TwoFactorService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getOTPDeliveryMethods(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getOTPDeliveryMethods(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getOTPDeliveryMethods(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getOTPDeliveryMethods(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/twofactor`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param deliveryMethod + * @param extendedToken + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public requestToken(deliveryMethod?: string, extendedToken?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public requestToken(deliveryMethod?: string, extendedToken?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public requestToken(deliveryMethod?: string, extendedToken?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public requestToken(deliveryMethod?: string, extendedToken?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (deliveryMethod !== undefined && deliveryMethod !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + deliveryMethod, 'deliveryMethod'); + } + if (extendedToken !== undefined && extendedToken !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + extendedToken, 'extendedToken'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/twofactor`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateConfiguration2(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public updateConfiguration2(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateConfiguration2(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public updateConfiguration2(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/twofactor/invalidate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param token + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public validate(token?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public validate(token?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public validate(token?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public validate(token?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (token !== undefined && token !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + token, 'token'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/twofactor/validate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/userGeneratedDocuments.service.ts b/packages/fineract-client/src/services/userGeneratedDocuments.service.ts new file mode 100644 index 0000000000..fd19e8fd2d --- /dev/null +++ b/packages/fineract-client/src/services/userGeneratedDocuments.service.ts @@ -0,0 +1,718 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteTemplatesTemplateIdResponse } from '../models/deleteTemplatesTemplateIdResponse'; +// @ts-ignore +import { GetTemplatesResponse } from '../models/getTemplatesResponse'; +// @ts-ignore +import { GetTemplatesTemplateIdResponse } from '../models/getTemplatesTemplateIdResponse'; +// @ts-ignore +import { GetTemplatesTemplateResponse } from '../models/getTemplatesTemplateResponse'; +// @ts-ignore +import { PostTemplatesRequest } from '../models/postTemplatesRequest'; +// @ts-ignore +import { PostTemplatesResponse } from '../models/postTemplatesResponse'; +// @ts-ignore +import { PutTemplatesTemplateIdRequest } from '../models/putTemplatesTemplateIdRequest'; +// @ts-ignore +import { PutTemplatesTemplateIdResponse } from '../models/putTemplatesTemplateIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class UserGeneratedDocumentsService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Add a UGD + * Adds a new UGD. Mandatory Fields name Example Requests: templates/1 + * @param postTemplatesRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createTemplate(postTemplatesRequest: PostTemplatesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public createTemplate(postTemplatesRequest: PostTemplatesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createTemplate(postTemplatesRequest: PostTemplatesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public createTemplate(postTemplatesRequest: PostTemplatesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postTemplatesRequest === null || postTemplatesRequest === undefined) { + throw new Error('Required parameter postTemplatesRequest was null or undefined when calling createTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/templates`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postTemplatesRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a UGD + * @param templateId templateId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteTemplate(templateId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public deleteTemplate(templateId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteTemplate(templateId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public deleteTemplate(templateId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (templateId === null || templateId === undefined) { + throw new Error('Required parameter templateId was null or undefined when calling deleteTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/templates/${this.configuration.encodeParam({name: "templateId", value: templateId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param templateId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTemplateByTemplate(templateId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public getTemplateByTemplate(templateId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTemplateByTemplate(templateId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public getTemplateByTemplate(templateId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (templateId === null || templateId === undefined) { + throw new Error('Required parameter templateId was null or undefined when calling getTemplateByTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/templates/${this.configuration.encodeParam({name: "templateId", value: templateId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param templateId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public mergeTemplate(templateId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/html', context?: HttpContext}): Observable; + public mergeTemplate(templateId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/html', context?: HttpContext}): Observable>; + public mergeTemplate(templateId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/html', context?: HttpContext}): Observable>; + public mergeTemplate(templateId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/html', context?: HttpContext}): Observable { + if (templateId === null || templateId === undefined) { + throw new Error('Required parameter templateId was null or undefined when calling mergeTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'text/html' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/templates/${this.configuration.encodeParam({name: "templateId", value: templateId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: body, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve all UGDs + * Example Requests: templates It is also possible to get specific UGDs by entity and type: templates?type=0&entity=0 [Entity: Id] client: 0, loan: 1 [Type: Id] Document: 0, E-Mail (not yet): 1, SMS: 2 + * @param typeId typeId + * @param entityId entityId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll40(typeId?: number, entityId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveAll40(typeId?: number, entityId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll40(typeId?: number, entityId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll40(typeId?: number, entityId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (typeId !== undefined && typeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + typeId, 'typeId'); + } + if (entityId !== undefined && entityId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + entityId, 'entityId'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/templates`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a UGD + * Example Requests: templates/1 + * @param templateId templateId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne29(templateId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne29(templateId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne29(templateId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne29(templateId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (templateId === null || templateId === undefined) { + throw new Error('Required parameter templateId was null or undefined when calling retrieveOne29.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/templates/${this.configuration.encodeParam({name: "templateId", value: templateId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a UGD + * @param templateId templateId + * @param putTemplatesTemplateIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public saveTemplate(templateId: number, putTemplatesTemplateIdRequest: PutTemplatesTemplateIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public saveTemplate(templateId: number, putTemplatesTemplateIdRequest: PutTemplatesTemplateIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public saveTemplate(templateId: number, putTemplatesTemplateIdRequest: PutTemplatesTemplateIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public saveTemplate(templateId: number, putTemplatesTemplateIdRequest: PutTemplatesTemplateIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (templateId === null || templateId === undefined) { + throw new Error('Required parameter templateId was null or undefined when calling saveTemplate.'); + } + if (putTemplatesTemplateIdRequest === null || putTemplatesTemplateIdRequest === undefined) { + throw new Error('Required parameter putTemplatesTemplateIdRequest was null or undefined when calling saveTemplate.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/templates/${this.configuration.encodeParam({name: "templateId", value: templateId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putTemplatesTemplateIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve UGD Details Template + * This is a convenience resource. It can be useful when building maintenance user interface screens for UGDs. The UGD data returned consists of any or all of: ARGUMENTS name String entity String type String text String optional mappers Mapper optional Example Request: templates/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template20(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template20(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template20(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template20(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/templates/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/users.service.ts b/packages/fineract-client/src/services/users.service.ts new file mode 100644 index 0000000000..f4891fd46c --- /dev/null +++ b/packages/fineract-client/src/services/users.service.ts @@ -0,0 +1,751 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { DeleteUsersUserIdResponse } from '../models/deleteUsersUserIdResponse'; +// @ts-ignore +import { GetUsersResponse } from '../models/getUsersResponse'; +// @ts-ignore +import { GetUsersTemplateResponse } from '../models/getUsersTemplateResponse'; +// @ts-ignore +import { GetUsersUserIdResponse } from '../models/getUsersUserIdResponse'; +// @ts-ignore +import { PostUsersRequest } from '../models/postUsersRequest'; +// @ts-ignore +import { PostUsersResponse } from '../models/postUsersResponse'; +// @ts-ignore +import { PutUsersUserIdRequest } from '../models/putUsersUserIdRequest'; +// @ts-ignore +import { PutUsersUserIdResponse } from '../models/putUsersUserIdResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class UsersService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Create a User + * Adds new application user. Note: Password information is not required (or processed). Password details at present are auto-generated and then sent to the email account given (which is why it can take a few seconds to complete). Mandatory Fields: username, firstname, lastname, email, officeId, roles, sendPasswordToEmail Optional Fields: staffId,passwordNeverExpires,isSelfServiceUser,clients + * @param postUsersRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public create15(postUsersRequest: PostUsersRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public create15(postUsersRequest: PostUsersRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create15(postUsersRequest: PostUsersRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public create15(postUsersRequest: PostUsersRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (postUsersRequest === null || postUsersRequest === undefined) { + throw new Error('Required parameter postUsersRequest was null or undefined when calling create15.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/users`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: postUsersRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Delete a User + * Removes the user and the associated roles and permissions. + * @param userId userId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public delete22(userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public delete22(userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete22(userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public delete22(userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (userId === null || userId === undefined) { + throw new Error('Required parameter userId was null or undefined when calling delete22.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param officeId + * @param staffId + * @param dateFormat + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getUserTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable; + public getUserTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getUserTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable>; + public getUserTemplate(officeId?: number, staffId?: number, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.ms-excel', context?: HttpContext}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (officeId !== undefined && officeId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + officeId, 'officeId'); + } + if (staffId !== undefined && staffId !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + staffId, 'staffId'); + } + if (dateFormat !== undefined && dateFormat !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + dateFormat, 'dateFormat'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/vnd.ms-excel' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/users/downloadtemplate`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * @param dateFormat + * @param locale + * @param uploadedInputStream + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postUsersTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable; + public postUsersTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postUsersTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable>; + public postUsersTemplate(dateFormat?: string, locale?: string, uploadedInputStream?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + '*/*' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (dateFormat !== undefined) { + localVarFormParams = localVarFormParams.append('dateFormat', dateFormat) as any || localVarFormParams; + } + if (locale !== undefined) { + localVarFormParams = localVarFormParams.append('locale', locale) as any || localVarFormParams; + } + if (uploadedInputStream !== undefined) { + localVarFormParams = localVarFormParams.append('uploadedInputStream', uploadedInputStream) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/users/uploadtemplate`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve list of users + * Example Requests: users users?fields=id,username,email,officeName + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll41(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll41(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll41(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll41(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/users`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve a User + * Example Requests: users/1 users/1?template=true users/1?fields=username,officeName + * @param userId userId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveOne30(userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public retrieveOne30(userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne30(userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveOne30(userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (userId === null || userId === undefined) { + throw new Error('Required parameter userId was null or undefined when calling retrieveOne30.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieve User Details Template + * 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 Request: users/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template22(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template22(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template22(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template22(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/users/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a User + * When updating a password you must provide the repeatPassword parameter also. + * @param userId userId + * @param putUsersUserIdRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update25(userId: number, putUsersUserIdRequest: PutUsersUserIdRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update25(userId: number, putUsersUserIdRequest: PutUsersUserIdRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update25(userId: number, putUsersUserIdRequest: PutUsersUserIdRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update25(userId: number, putUsersUserIdRequest: PutUsersUserIdRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (userId === null || userId === undefined) { + throw new Error('Required parameter userId was null or undefined when calling update25.'); + } + if (putUsersUserIdRequest === null || putUsersUserIdRequest === undefined) { + throw new Error('Required parameter putUsersUserIdRequest was null or undefined when calling update25.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putUsersUserIdRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/services/workingDays.service.ts b/packages/fineract-client/src/services/workingDays.service.ts new file mode 100644 index 0000000000..45b81e0708 --- /dev/null +++ b/packages/fineract-client/src/services/workingDays.service.ts @@ -0,0 +1,318 @@ +/** + * 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 https://cui.fineract.dev[reference app] (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 https://fineract.apache.org/legacy-docs/apiLive.htm[here]. Please check https://fineract.apache.org/docs/current[the Fineract documentation] for more information. + * + * The version of the OpenAPI document: 0.0.0-88635972 + * 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. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { GetWorkingDaysResponse } from '../models/getWorkingDaysResponse'; +// @ts-ignore +import { GetWorkingDaysTemplateResponse } from '../models/getWorkingDaysTemplateResponse'; +// @ts-ignore +import { PutWorkingDaysRequest } from '../models/putWorkingDaysRequest'; +// @ts-ignore +import { PutWorkingDaysResponse } from '../models/putWorkingDaysResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class WorkingDaysService { + + protected basePath = 'http://localhost/fineract-provider/api/v1'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * List Working days + * Example Requests: workingdays + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public retrieveAll17(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public retrieveAll17(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll17(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; + public retrieveAll17(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/workingdays`; + return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Working Days Template + * This is a convenience resource. It can be useful when building maintenance user interface screens for working days. Example Request: workingdays/template + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public template4(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public template4(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template4(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public template4(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/workingdays/template`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Update a Working Day + * Mandatory Fields recurrence,repaymentRescheduleType,extendTermForDailyRepayments,locale + * @param putWorkingDaysRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public update8(putWorkingDaysRequest: PutWorkingDaysRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public update8(putWorkingDaysRequest: PutWorkingDaysRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update8(putWorkingDaysRequest: PutWorkingDaysRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public update8(putWorkingDaysRequest: PutWorkingDaysRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + if (putWorkingDaysRequest === null || putWorkingDaysRequest === undefined) { + throw new Error('Required parameter putWorkingDaysRequest was null or undefined when calling update8.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (basicAuth) required + localVarCredential = this.configuration.lookupCredential('basicAuth'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + // authentication (tenantid) required + localVarCredential = this.configuration.lookupCredential('tenantid'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('fineract-platform-tenantid', localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v1/workingdays`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: putWorkingDaysRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/packages/fineract-client/src/variables.ts b/packages/fineract-client/src/variables.ts new file mode 100644 index 0000000000..6fe58549f3 --- /dev/null +++ b/packages/fineract-client/src/variables.ts @@ -0,0 +1,9 @@ +import { InjectionToken } from '@angular/core'; + +export const BASE_PATH = new InjectionToken('basePath'); +export const COLLECTION_FORMATS = { + 'csv': ',', + 'tsv': ' ', + 'ssv': ' ', + 'pipes': '|' +} diff --git a/src/app/app.module.ts b/src/app/app.module.ts index eedc983544..352073ca15 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -36,6 +36,7 @@ import { ProfileModule } from './profile/profile.module'; import { TasksModule } from './tasks/tasks.module'; import { ConfigurationWizardModule } from './configuration-wizard/configuration-wizard.module'; import {PortalModule} from '@angular/cdk/portal'; +import { ApiModule,Configuration,ConfigurationParameters } from '@fineract/client'; /** Main Routing Module */ import { AppRoutingModule } from './app-routing.module'; diff --git a/src/tsconfig.app.json b/src/tsconfig.app.json index 8ca7aa7edc..205546768c 100644 --- a/src/tsconfig.app.json +++ b/src/tsconfig.app.json @@ -16,6 +16,7 @@ ], "include": [ "src/**/*.d.ts", - "typings.d.ts" + "typings.d.ts", + "../packages/fineract-client/src/**/*.ts" ] }