This is an automated email from the ASF dual-hosted git repository.
adamsaghy pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
from c76e426257 Merge pull request #6729 from apache/release/1.16.0
add 7f9c363f49 FINERACT-2816: Add monthEndDueDateStrategy and plumbing for
loan products and loans
add 64b5c8d99e FINERACT-2816: Add monthEndDueDateStrategy and plumbing for
loan products and loans - E2E tests
new f1723d724e Merge pull request #6588
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../src/main/avro/loan/v1/LoanAccountDataV1.avsc | 8 +
.../src/main/avro/loan/v1/LoanProductDataV1.avsc | 8 +
.../portfolio/calendar/service/CalendarUtils.java | 14 +-
.../common/domain/MonthEndDueDateStrategy.java | 55 ++
.../common/domain/MonthlyDueDateResolver.java | 122 +++
.../common/domain/MonthlyDueDateResolverTest.java | 121 +++
.../test/data/loanproduct/DefaultLoanProduct.java | 9 +
.../test/factory/LoanProductsRequestFactory.java | 106 +++
.../fineract/test/stepdef/loan/LoanStepDef.java | 139 ++-
.../fineract/test/support/TestContextKey.java | 10 +
.../global/LoanProductGlobalInitializerStep.java | 100 +++
.../features/LoanMonthEndDueDateStrategy.feature | 351 ++++++++
.../loanaccount/api/LoanApiConstants.java | 1 +
.../loanaccount/data/LoanAccountData.java | 6 +-
.../domain/DefaultScheduledDateGenerator.java | 66 +-
.../loanschedule/domain/LoanApplicationTerms.java | 92 +-
.../domain/LoanRepaymentScheduleModelData.java | 3 +-
.../domain/ScheduledDateGenerator.java | 4 +
...ervice.java => LoanMeetingCalendarService.java} | 9 +-
.../loanproduct/LoanProductConstants.java | 1 +
.../api/LoanProductsApiResourceSwagger.java | 8 +
.../loanproduct/data/LoanConfigurationDetails.java | 6 +-
.../loanproduct/data/LoanProductData.java | 20 +-
.../domain/ILoanConfigurationDetails.java | 3 +
.../portfolio/loanproduct/domain/LoanProduct.java | 6 +-
.../domain/LoanProductRelatedDetail.java | 15 +-
.../misc/Main.java | 4 +-
...ddableProgressiveLoanScheduleGeneratorTest.java | 80 +-
...dvancedPaymentScheduleTransactionProcessor.java | 39 +-
.../mapper/LoanConfigurationDetailsMapper.java | 20 +-
.../service/PayoffSchedulePreviewServiceImpl.java | 2 +-
...InterestScheduleModelRepositoryWrapperImpl.java | 4 +-
.../InternalProgressiveLoanApiResource.java | 3 +-
.../loanproduct/calc/ProgressiveEMICalculator.java | 29 +-
.../data/ProgressiveLoanInterestScheduleModel.java | 4 +-
.../AdvancedPaymentScheduleReAgeMappingTest.java | 2 +-
...cedPaymentScheduleTransactionProcessorTest.java | 3 +-
.../domain/LoanScheduleGeneratorTest.java | 4 +-
.../loanaccount/api/LoansApiResource.java | 4 +-
.../loanaccount/api/LoansApiResourceSwagger.java | 10 +
.../service/LoanScheduleAssembler.java | 35 +-
.../serialization/LoanApplicationValidator.java | 7 +-
.../loanaccount/service/LoanAssemblerImpl.java | 11 +
...te.java => LoanMeetingCalendarServiceImpl.java} | 15 +-
.../loanaccount/service/LoanProductAssembler.java | 5 +-
.../LoanProductRelatedDetailUpdateUtil.java | 12 +
.../service/LoanReadPlatformServiceImpl.java | 6 +-
.../service/LoanScheduleGeneratorServiceImpl.java | 3 +-
.../starter/LoanAccountAutoStarter.java | 5 +-
.../loanproduct/api/LoanProductsApiResource.java | 8 +-
.../serialization/LoanProductDataValidator.java | 16 +-
.../LoanProductReadPlatformServiceImpl.java | 6 +-
.../db/changelog/tenant/changelog-tenant.xml | 1 +
...pe.xml => 0270_month_end_due_date_strategy.xml} | 4 +-
.../domain/DefaultScheduledDateGeneratorTest.java | 147 +++-
.../MonthEndDueDateStrategyTest.java | 939 +++++++++++++++++++++
56 files changed, 2564 insertions(+), 147 deletions(-)
create mode 100644
fineract-core/src/main/java/org/apache/fineract/portfolio/common/domain/MonthEndDueDateStrategy.java
create mode 100644
fineract-core/src/main/java/org/apache/fineract/portfolio/common/domain/MonthlyDueDateResolver.java
create mode 100644
fineract-core/src/test/java/org/apache/fineract/portfolio/common/domain/MonthlyDueDateResolverTest.java
create mode 100644
fineract-e2e-tests-runner/src/test/resources/features/LoanMonthEndDueDateStrategy.feature
copy
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/service/{LoanAccrualTransactionBusinessEventService.java
=> LoanMeetingCalendarService.java} (81%)
copy
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/{InterestRefundServiceDelegate.java
=> LoanMeetingCalendarServiceImpl.java} (65%)
copy
fineract-provider/src/main/resources/db/changelog/tenant/parts/{0174_loan_product_add_capitalized_income_type.xml
=> 0270_month_end_due_date_strategy.xml} (90%)
create mode 100644
integration-tests/src/test/java/org/apache/fineract/integrationtests/MonthEndDueDateStrategyTest.java