Skip to content

Commit ece0814

Browse files
committed
FINERACT-2647: client module depends only on fineract-core/command via Spring Modulith boundary test
1 parent 347694a commit ece0814

76 files changed

Lines changed: 1078 additions & 142 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package org.apache.fineract.portfolio.charge.service;
20+
21+
import lombok.RequiredArgsConstructor;
22+
import org.apache.fineract.portfolio.charge.domain.Charge;
23+
import org.apache.fineract.portfolio.charge.domain.ChargeRepositoryWrapper;
24+
import org.apache.fineract.portfolio.client.contract.ClientChargeDefinitionData;
25+
import org.apache.fineract.portfolio.client.contract.ClientChargeReadService;
26+
import org.springframework.stereotype.Service;
27+
28+
@Service
29+
@RequiredArgsConstructor
30+
public class ClientChargeReadServiceImpl implements ClientChargeReadService {
31+
32+
private final ChargeRepositoryWrapper chargeRepository;
33+
34+
@Override
35+
public ClientChargeDefinitionData retrieveClientChargeDefinition(final Long chargeId) {
36+
final Charge charge = this.chargeRepository.findOneWithNotFoundDetection(chargeId);
37+
return new ClientChargeDefinitionData(charge.getId(), charge.isClientCharge(), charge.isPenalty(), charge.getChargeTimeType(),
38+
charge.getChargeCalculation(), charge.getAmount(), charge.getCurrencyCode(), charge.getIncomeAccountId());
39+
}
40+
}

fineract-provider/src/main/java/org/apache/fineract/infrastructure/accountnumberformat/domain/AccountNumberFormatRepositoryWrapper.java renamed to fineract-core/src/main/java/org/apache/fineract/infrastructure/accountnumberformat/domain/AccountNumberFormatRepositoryWrapper.java

File renamed without changes.

fineract-provider/src/main/java/org/apache/fineract/infrastructure/accountnumberformat/exception/AccountNumberFormatNotFoundException.java renamed to fineract-core/src/main/java/org/apache/fineract/infrastructure/accountnumberformat/exception/AccountNumberFormatNotFoundException.java

File renamed without changes.

fineract-provider/src/main/java/org/apache/fineract/infrastructure/dataqueries/service/EntityDatatableChecksWritePlatformService.java renamed to fineract-core/src/main/java/org/apache/fineract/infrastructure/dataqueries/service/EntityDatatableChecksWritePlatformService.java

File renamed without changes.

fineract-provider/src/main/java/org/apache/fineract/infrastructure/event/business/domain/client/ClientActivateBusinessEvent.java renamed to fineract-core/src/main/java/org/apache/fineract/infrastructure/event/business/domain/client/ClientActivateBusinessEvent.java

File renamed without changes.

fineract-provider/src/main/java/org/apache/fineract/infrastructure/event/business/domain/client/ClientBusinessEvent.java renamed to fineract-core/src/main/java/org/apache/fineract/infrastructure/event/business/domain/client/ClientBusinessEvent.java

File renamed without changes.

fineract-provider/src/main/java/org/apache/fineract/infrastructure/event/business/domain/client/ClientCreateBusinessEvent.java renamed to fineract-core/src/main/java/org/apache/fineract/infrastructure/event/business/domain/client/ClientCreateBusinessEvent.java

File renamed without changes.

fineract-provider/src/main/java/org/apache/fineract/infrastructure/event/business/domain/client/ClientRejectBusinessEvent.java renamed to fineract-core/src/main/java/org/apache/fineract/infrastructure/event/business/domain/client/ClientRejectBusinessEvent.java

File renamed without changes.

fineract-provider/src/main/java/org/apache/fineract/organisation/holiday/domain/HolidayRepository.java renamed to fineract-core/src/main/java/org/apache/fineract/organisation/holiday/domain/HolidayRepository.java

File renamed without changes.

fineract-provider/src/main/java/org/apache/fineract/organisation/holiday/domain/HolidayRepositoryWrapper.java renamed to fineract-core/src/main/java/org/apache/fineract/organisation/holiday/domain/HolidayRepositoryWrapper.java

File renamed without changes.

0 commit comments

Comments
 (0)