FINERACT-1724: Removed restrictions from renovate.json and upgraded spotless plugin
This commit is contained in:
committed by
Adam Saghy
parent
500e7720b7
commit
e4754b299b
+5
-5
@@ -125,11 +125,11 @@ public class ThitsaWorksCreditBureauIntegrationWritePlatformServiceImpl implemen
|
||||
Request request = null;
|
||||
Request.Builder baseRequestBuilder = createRequestBuilder(subscriptionKey, subscriptionId, token, okHttpUrl);
|
||||
switch (process) {
|
||||
case UPLOAD_CREDIT_REPORT -> request = createRequest(baseRequestBuilder, () -> new MultipartBody.Builder()
|
||||
.setType(MultipartBody.FORM)
|
||||
.addFormDataPart("file", fileData.getFileName(), RequestBody.create(file, MediaType.parse("multipart/form-data")))
|
||||
.addFormDataPart("BODY", "formdata").addFormDataPart("userName", userName).build(),
|
||||
(requestBody, builder) -> builder.header(CONTENT_TYPE, MULTIPART_FORM_DATA).post(requestBody).build());
|
||||
case UPLOAD_CREDIT_REPORT ->
|
||||
request = createRequest(baseRequestBuilder, () -> new MultipartBody.Builder().setType(MultipartBody.FORM)
|
||||
.addFormDataPart("file", fileData.getFileName(), RequestBody.create(file, MediaType.parse("multipart/form-data")))
|
||||
.addFormDataPart("BODY", "formdata").addFormDataPart("userName", userName).build(),
|
||||
(requestBody, builder) -> builder.header(CONTENT_TYPE, MULTIPART_FORM_DATA).post(requestBody).build());
|
||||
case "CreditReport" -> request = createRequest(baseRequestBuilder,
|
||||
builder -> builder.header(CONTENT_TYPE, APPLICATION_FORM_URLENCODED).get().build());
|
||||
case "token" -> request = createRequest(baseRequestBuilder,
|
||||
|
||||
+5
-5
@@ -54,11 +54,11 @@ public class CollateralReadPlatformServiceImpl implements CollateralReadPlatform
|
||||
|
||||
private final StringBuilder sqlBuilder = new StringBuilder(
|
||||
"lc.id as id, lc.description as description, lc.value as value, cv.id as typeId, cv.code_value as typeName, oc.code as currencyCode, ")
|
||||
.append(" oc.name as currencyName,oc.decimal_places as currencyDecimalPlaces, oc.currency_multiplesof as inMultiplesOf, oc.display_symbol as currencyDisplaySymbol, oc.internationalized_name_code as currencyNameCode")
|
||||
.append(" FROM m_loan_collateral lc") //
|
||||
.append(" JOIN m_code_value cv on lc.type_cv_id = cv.id")//
|
||||
.append(" JOIN m_loan loan on lc.loan_id = loan.id")//
|
||||
.append(" JOIN m_organisation_currency oc on loan.currency_code = oc.code");
|
||||
.append(" oc.name as currencyName,oc.decimal_places as currencyDecimalPlaces, oc.currency_multiplesof as inMultiplesOf, oc.display_symbol as currencyDisplaySymbol, oc.internationalized_name_code as currencyNameCode")
|
||||
.append(" FROM m_loan_collateral lc") //
|
||||
.append(" JOIN m_code_value cv on lc.type_cv_id = cv.id")//
|
||||
.append(" JOIN m_loan loan on lc.loan_id = loan.id")//
|
||||
.append(" JOIN m_organisation_currency oc on loan.currency_code = oc.code");
|
||||
|
||||
public String schema() {
|
||||
return this.sqlBuilder.toString();
|
||||
|
||||
+7
-8
@@ -199,14 +199,13 @@ public class LoanSummaryData {
|
||||
defaultSummaryData.totalOutstanding, defaultSummaryData.totalOverdue, defaultSummaryData.overdueSinceDate,
|
||||
defaultSummaryData.writeoffReasonId, defaultSummaryData.writeoffReason, defaultSummaryData.totalRecovered,
|
||||
defaultSummaryData.chargeOffReasonId, defaultSummaryData.chargeOffReason).setTotalMerchantRefund(totalMerchantRefund)
|
||||
.setTotalMerchantRefundReversed(totalMerchantRefundReversed).setTotalPayoutRefund(totalPayoutRefund)
|
||||
.setTotalPayoutRefundReversed(totalPayoutRefundReversed).setTotalGoodwillCredit(totalGoodwillCredit)
|
||||
.setTotalGoodwillCreditReversed(totalGoodwillCreditReversed).setTotalChargeAdjustment(totalChargeAdjustment)
|
||||
.setTotalChargeAdjustmentReversed(totalChargeAdjustmentReversed).setTotalChargeback(totalChargeback)
|
||||
.setTotalCreditBalanceRefund(totalCreditBalanceRefund)
|
||||
.setTotalCreditBalanceRefundReversed(totalCreditBalanceRefundReversed)
|
||||
.setTotalRepaymentTransaction(totalRepaymentTransaction)
|
||||
.setTotalRepaymentTransactionReversed(totalRepaymentTransactionReversed);
|
||||
.setTotalMerchantRefundReversed(totalMerchantRefundReversed).setTotalPayoutRefund(totalPayoutRefund)
|
||||
.setTotalPayoutRefundReversed(totalPayoutRefundReversed).setTotalGoodwillCredit(totalGoodwillCredit)
|
||||
.setTotalGoodwillCreditReversed(totalGoodwillCreditReversed).setTotalChargeAdjustment(totalChargeAdjustment)
|
||||
.setTotalChargeAdjustmentReversed(totalChargeAdjustmentReversed).setTotalChargeback(totalChargeback)
|
||||
.setTotalCreditBalanceRefund(totalCreditBalanceRefund).setTotalCreditBalanceRefundReversed(totalCreditBalanceRefundReversed)
|
||||
.setTotalRepaymentTransaction(totalRepaymentTransaction)
|
||||
.setTotalRepaymentTransactionReversed(totalRepaymentTransactionReversed);
|
||||
}
|
||||
|
||||
private static BigDecimal computeTotalAmountForReversedTransactions(LoanTransactionType transactionType,
|
||||
|
||||
+13
-13
@@ -120,19 +120,19 @@ public class GuarantorReadPlatformServiceImpl implements GuarantorReadPlatformSe
|
||||
|
||||
private final StringBuilder sqlBuilder = new StringBuilder(
|
||||
" g.id as id, g.loan_id as loanId, g.client_reln_cv_id clientRelationshipTypeId, g.entity_id as entityId, g.type_enum guarantorType ,g.firstname as firstname, g.lastname as lastname, g.dob as dateOfBirth, g.address_line_1 as addressLine1, g.address_line_2 as addressLine2, g.city as city, g.state as state, g.country as country, g.zip as zip, g.house_phone_number as housePhoneNumber, g.mobile_number as mobilePhoneNumber, g.comment as comment, ")
|
||||
.append(" g.is_active as guarantorStatus,")//
|
||||
.append(" cv.code_value as typeName, ")//
|
||||
.append("gfd.amount,")//
|
||||
.append(this.guarantorFundingMapper.schema())//
|
||||
.append(",")//
|
||||
.append(this.guarantorTransactionMapper.schema())//
|
||||
.append(" FROM m_guarantor g") //
|
||||
.append(" left JOIN m_code_value cv on g.client_reln_cv_id = cv.id")//
|
||||
.append(" left JOIN m_guarantor_funding_details gfd on g.id = gfd.guarantor_id")//
|
||||
.append(" left JOIN m_portfolio_account_associations aa on gfd.account_associations_id = aa.id and aa.is_active = true and aa.association_type_enum = ?")//
|
||||
.append(" left JOIN m_savings_account sa on sa.id = aa.linked_savings_account_id ")//
|
||||
.append(" left join m_guarantor_transaction gt on gt.guarantor_fund_detail_id = gfd.id") //
|
||||
.append(" left join m_deposit_account_on_hold_transaction oht on oht.id = gt.deposit_on_hold_transaction_id");
|
||||
.append(" g.is_active as guarantorStatus,")//
|
||||
.append(" cv.code_value as typeName, ")//
|
||||
.append("gfd.amount,")//
|
||||
.append(this.guarantorFundingMapper.schema())//
|
||||
.append(",")//
|
||||
.append(this.guarantorTransactionMapper.schema())//
|
||||
.append(" FROM m_guarantor g") //
|
||||
.append(" left JOIN m_code_value cv on g.client_reln_cv_id = cv.id")//
|
||||
.append(" left JOIN m_guarantor_funding_details gfd on g.id = gfd.guarantor_id")//
|
||||
.append(" left JOIN m_portfolio_account_associations aa on gfd.account_associations_id = aa.id and aa.is_active = true and aa.association_type_enum = ?")//
|
||||
.append(" left JOIN m_savings_account sa on sa.id = aa.linked_savings_account_id ")//
|
||||
.append(" left join m_guarantor_transaction gt on gt.guarantor_fund_detail_id = gfd.id") //
|
||||
.append(" left join m_deposit_account_on_hold_transaction oht on oht.id = gt.deposit_on_hold_transaction_id");
|
||||
|
||||
public String schema() {
|
||||
return this.sqlBuilder.toString();
|
||||
|
||||
+6
-6
@@ -159,7 +159,7 @@ class LoanCOBApiFilterTest {
|
||||
given(fineractQueryProperties.getInClauseParameterSizeLimit()).willReturn(65000);
|
||||
given(loanRepository.findAllNonClosedLoansBehindOrNullByLoanIds(
|
||||
eq(ThreadLocalContextUtil.getBusinessDateByType(BusinessDateType.COB_DATE)), anyList()))
|
||||
.willReturn(Collections.emptyList());
|
||||
.willReturn(Collections.emptyList());
|
||||
|
||||
testObj.doFilterInternal(request, response, filterChain);
|
||||
verify(filterChain, times(1)).doFilter(request, response);
|
||||
@@ -202,7 +202,7 @@ class LoanCOBApiFilterTest {
|
||||
given(fineractQueryProperties.getInClauseParameterSizeLimit()).willReturn(65000);
|
||||
given(loanRepository.findAllNonClosedLoansBehindOrNullByLoanIds(
|
||||
eq(ThreadLocalContextUtil.getBusinessDateByType(BusinessDateType.COB_DATE)), anyList()))
|
||||
.willReturn(Collections.emptyList());
|
||||
.willReturn(Collections.emptyList());
|
||||
|
||||
testObj.doFilterInternal(request, response, filterChain);
|
||||
verify(filterChain, times(1)).doFilter(request, response);
|
||||
@@ -230,7 +230,7 @@ class LoanCOBApiFilterTest {
|
||||
given(fineractQueryProperties.getInClauseParameterSizeLimit()).willReturn(65000);
|
||||
given(loanRepository.findAllNonClosedLoansBehindOrNullByLoanIds(
|
||||
eq(ThreadLocalContextUtil.getBusinessDateByType(BusinessDateType.COB_DATE)), anyList()))
|
||||
.willReturn(Collections.emptyList());
|
||||
.willReturn(Collections.emptyList());
|
||||
|
||||
testObj.doFilterInternal(request, response, filterChain);
|
||||
verify(filterChain, times(1)).doFilter(request, response);
|
||||
@@ -260,7 +260,7 @@ class LoanCOBApiFilterTest {
|
||||
|
||||
given(loanRepository.findAllNonClosedLoansBehindOrNullByLoanIds(
|
||||
eq(ThreadLocalContextUtil.getBusinessDateByType(BusinessDateType.COB_DATE)), anyList()))
|
||||
.willReturn(Collections.emptyList());
|
||||
.willReturn(Collections.emptyList());
|
||||
|
||||
testObj.doFilterInternal(request, response, filterChain);
|
||||
verify(filterChain, times(1)).doFilter(request, response);
|
||||
@@ -290,7 +290,7 @@ class LoanCOBApiFilterTest {
|
||||
given(fineractQueryProperties.getInClauseParameterSizeLimit()).willReturn(65000);
|
||||
given(loanRepository.findAllNonClosedLoansBehindByLoanIds(
|
||||
eq(ThreadLocalContextUtil.getBusinessDateByType(BusinessDateType.COB_DATE)), anyList()))
|
||||
.willReturn(Collections.singletonList(result));
|
||||
.willReturn(Collections.singletonList(result));
|
||||
given(context.authenticatedUser()).willReturn(appUser);
|
||||
|
||||
testObj.doFilterInternal(request, response, filterChain);
|
||||
@@ -321,7 +321,7 @@ class LoanCOBApiFilterTest {
|
||||
given(fineractQueryProperties.getInClauseParameterSizeLimit()).willReturn(65000);
|
||||
given(loanRepository.findAllNonClosedLoansBehindOrNullByLoanIds(
|
||||
eq(ThreadLocalContextUtil.getBusinessDateByType(BusinessDateType.COB_DATE)), anyList()))
|
||||
.willReturn(Collections.emptyList());
|
||||
.willReturn(Collections.emptyList());
|
||||
|
||||
given(context.authenticatedUser()).willReturn(appUser);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user