FINERACT-2181: No subResourceExternalId in fee waiver response after charge-off

This commit is contained in:
mariiaKraievska
2025-03-19 11:53:57 +01:00
committed by Adam Saghy
parent 2d03ebb179
commit 04770133d0
2 changed files with 105 additions and 0 deletions
@@ -145,6 +145,13 @@ public class LoanChargeAdjustmentStepDef extends AbstractStepDef {
ErrorHelper.checkSuccessfulApiCall(chargeAdjustmentUndoResponse);
}
@Then("Charge adjustment response has the subResourceExternalId")
public void checkChargeAdjustmentResponse() {
final Response<PostLoansLoanIdChargesChargeIdResponse> response = testContext().get(TestContextKey.LOAN_CHARGE_ADJUSTMENT_RESPONSE);
final PostLoansLoanIdChargesChargeIdResponse body = response.body();
assertThat(body.getSubResourceExternalId()).isNotNull();
}
private Long getTransactionIdForTransactionMetConditions(String transactionDate, double transactionAmount,
Response<GetLoansLoanIdResponse> loanDetailsResponse) {
List<GetLoansLoanIdTransactions> transactions = loanDetailsResponse.body().getTransactions();