FINERACT-2181: Batch API - Add interest pause API

This commit is contained in:
Adam Saghy
2025-07-10 14:02:47 +02:00
parent fc93db16b5
commit 711aa7910e
2 changed files with 29 additions and 1 deletions
@@ -227,6 +227,22 @@ public class CommandStrategyProvider {
commandStrategies.put(CommandContext
.resource("v1\\/datatables\\/" + ALPHANUMBERIC_WITH_UNDERSCORE_REGEX + "\\/query" + MANDATORY_QUERY_PARAM_REGEX).method(GET)
.build(), "getDatatableEntryByQueryCommandStrategy");
commandStrategies.put(CommandContext.resource("v1\\/loans\\/" + NUMBER_REGEX + "\\/interest-pauses").method(GET).build(),
"getLoanInterestPausesByExternalIdCommandStrategy");
commandStrategies.put(CommandContext.resource("v1\\/loans\\/" + NUMBER_REGEX + "\\/interest-pauses").method(POST).build(),
"createLoanInterestPauseByExternalIdCommandStrategy");
commandStrategies.put(
CommandContext.resource("v1\\/loans\\/" + NUMBER_REGEX + "\\/interest-pauses\\/" + NUMBER_REGEX).method(PUT).build(),
"updateLoanInterestPauseByExternalIdCommandStrategy");
commandStrategies.put(
CommandContext.resource("v1\\/loans\\/external-id\\/" + UUID_PARAM_REGEX + "\\/interest-pauses").method(GET).build(),
"getLoanInterestPausesByExternalIdCommandStrategy");
commandStrategies.put(
CommandContext.resource("v1\\/loans\\/external-id\\/" + UUID_PARAM_REGEX + "\\/interest-pauses").method(POST).build(),
"createLoanInterestPauseByExternalIdCommandStrategy");
commandStrategies.put(CommandContext
.resource("v1\\/loans\\/external-id\\/" + UUID_PARAM_REGEX + "\\/interest-pauses\\/" + NUMBER_REGEX).method(PUT).build(),
"updateLoanInterestPauseByExternalIdCommandStrategy");
}
}