FINERACT-2169: Apply DTO instead String json in FundsApiResource

This commit is contained in:
oleksandr.masliuk
2025-03-19 11:56:08 +01:00
committed by Adam Saghy
parent 04770133d0
commit c9c01a50e2
7 changed files with 59 additions and 61 deletions
@@ -22,7 +22,7 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.apache.fineract.client.models.PostFundsRequest;
import org.apache.fineract.client.models.FundRequest;
import org.apache.fineract.client.services.FundsApi;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
@@ -44,7 +44,7 @@ public class FundGlobalInitializerStep implements FineractGlobalInitializerStep
fundNames.add(FUNDS_LENDER_A);
fundNames.add(FUNDS_LENDER_B);
fundNames.forEach(name -> {
PostFundsRequest postFundsRequest = new PostFundsRequest();
FundRequest postFundsRequest = new FundRequest();
postFundsRequest.name(name);
try {
fundsApi.createFund(postFundsRequest).execute();