diff --git a/fineract-investor/src/main/java/org/apache/fineract/investor/data/ExternalTransferChangedData.java b/fineract-investor/src/main/java/org/apache/fineract/investor/data/ExternalTransferChangedData.java deleted file mode 100644 index 7df77203bcc..00000000000 --- a/fineract-investor/src/main/java/org/apache/fineract/investor/data/ExternalTransferChangedData.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.fineract.investor.data; - -import java.time.LocalDate; -import lombok.Data; - -@Data -public class ExternalTransferChangedData { - - private LocalDate settlementDate; - private String transferExternalId; - private String ownerExternalId; - private String purchasePriceRatio; -} diff --git a/fineract-investor/src/main/java/org/apache/fineract/investor/data/ExternalTransferResponseData.java b/fineract-investor/src/main/java/org/apache/fineract/investor/data/ExternalTransferResponseData.java deleted file mode 100644 index b6cc3bbd53b..00000000000 --- a/fineract-investor/src/main/java/org/apache/fineract/investor/data/ExternalTransferResponseData.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.fineract.investor.data; - -import lombok.Data; - -@Data -public class ExternalTransferResponseData { - - private Long resourceId; - private String resourceExternalId; - private Long subResourceId; - private String subResourceExternalId; - private ExternalTransferChangedData changes; - private String dateformat; - private String locale; -} diff --git a/fineract-investor/src/main/java/org/apache/fineract/investor/domain/AttributeKey.java b/fineract-investor/src/main/java/org/apache/fineract/investor/domain/AttributeKey.java deleted file mode 100644 index f874eaf1f80..00000000000 --- a/fineract-investor/src/main/java/org/apache/fineract/investor/domain/AttributeKey.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.fineract.investor.domain; - -public interface AttributeKey { - - String getKey(); - - String getValue(); - - String getDescription(); -} diff --git a/fineract-investor/src/main/java/org/apache/fineract/investor/domain/ExternalAssetOwnerLoanProductAttribute.java b/fineract-investor/src/main/java/org/apache/fineract/investor/domain/ExternalAssetOwnerLoanProductAttribute.java deleted file mode 100644 index fb08c382094..00000000000 --- a/fineract-investor/src/main/java/org/apache/fineract/investor/domain/ExternalAssetOwnerLoanProductAttribute.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.fineract.investor.domain; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -@RequiredArgsConstructor -@Getter -public class ExternalAssetOwnerLoanProductAttribute implements AttributeKey { - - public static final ExternalAssetOwnerLoanProductAttribute TOTAL_OUTSTANDING_INTEREST_STRATEGY = new ExternalAssetOwnerLoanProductAttribute( - "OUTSTANDING_INTEREST_STRATEGY", "TOTAL_OUTSTANDING", - "During external owner transfer the total (due + not yet due + projected) interest participate"); - public static final ExternalAssetOwnerLoanProductAttribute PAYABLE_OUTSTANDING_INTEREST_STRATEGY = new ExternalAssetOwnerLoanProductAttribute( - "OUTSTANDING_INTEREST_STRATEGY", "PAYABLE_OUTSTANDING", - "During external owner transfer the total (due + not yet due) interest participate"); - - private final String key; - private final String value; - private final String description; -} diff --git a/fineract-investor/src/main/java/org/apache/fineract/investor/domain/ExternalAssetOwnerTransferRepository.java b/fineract-investor/src/main/java/org/apache/fineract/investor/domain/ExternalAssetOwnerTransferRepository.java index b4f92f1cc11..ab81f331847 100644 --- a/fineract-investor/src/main/java/org/apache/fineract/investor/domain/ExternalAssetOwnerTransferRepository.java +++ b/fineract-investor/src/main/java/org/apache/fineract/investor/domain/ExternalAssetOwnerTransferRepository.java @@ -44,9 +44,6 @@ public interface ExternalAssetOwnerTransferRepository @Query("SELECT e FROM ExternalAssetOwnerTransfer e WHERE e.externalId = :externalId") Page findAllByExternalId(@Param("externalId") ExternalId externalId, PageRequest pageable); - @Query("select e from ExternalAssetOwnerTransfer e where e.loanId = :loanId and e.id = (select max(ex.id) from ExternalAssetOwnerTransfer ex where ex.loanId = :loanId)") - Optional findLatestByLoanId(@Param("loanId") Long loanId); - @Query("select m.ownerTransfer from ExternalAssetOwnerTransferLoanMapping m inner join fetch m.ownerTransfer o where m.loanId = :loanId") Optional findActiveByLoanId(@Param("loanId") Long loanId); diff --git a/fineract-investor/src/main/java/org/apache/fineract/investor/exception/ExternalAssetOwnerNotFoundException.java b/fineract-investor/src/main/java/org/apache/fineract/investor/exception/ExternalAssetOwnerNotFoundException.java index 67f8094a688..1b5a0961522 100644 --- a/fineract-investor/src/main/java/org/apache/fineract/investor/exception/ExternalAssetOwnerNotFoundException.java +++ b/fineract-investor/src/main/java/org/apache/fineract/investor/exception/ExternalAssetOwnerNotFoundException.java @@ -27,8 +27,4 @@ public ExternalAssetOwnerNotFoundException(ExternalId externalId) { super("error.msg.external.asset.owner.external.id", String.format("External asset owner with external id: %s does not found", externalId.getValue()), externalId.getValue()); } - - public ExternalAssetOwnerNotFoundException(Long id) { - super("error.msg.external.asset.owner.id", String.format("External asset owner with id: %s does not found", id), id); - } } diff --git a/fineract-investor/src/main/java/org/apache/fineract/investor/internal/InternalAPIForTesting.java b/fineract-investor/src/main/java/org/apache/fineract/investor/internal/InternalAPIForTesting.java deleted file mode 100644 index fc10dbc2a26..00000000000 --- a/fineract-investor/src/main/java/org/apache/fineract/investor/internal/InternalAPIForTesting.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.fineract.investor.internal; - -public class InternalAPIForTesting {}