FINERACT-2418: add originatior loan mapping

This commit is contained in:
Attila Budai
2026-02-03 14:58:28 +01:00
committed by Adam Saghy
parent 3dbada34f7
commit 3b5ea96f5e
18 changed files with 749 additions and 447 deletions
@@ -3952,4 +3952,24 @@ public class CommandWrapperBuilder {
this.href = "/loan-originators/" + originatorId;
return this;
}
public CommandWrapperBuilder attachLoanOriginator(final Long loanId, final Long originatorId) {
this.actionName = "ATTACH";
this.entityName = "LOAN_ORIGINATOR";
this.entityId = loanId;
this.loanId = loanId;
this.subentityId = originatorId;
this.href = "/loans/" + loanId + "/originators/" + originatorId;
return this;
}
public CommandWrapperBuilder detachLoanOriginator(final Long loanId, final Long originatorId) {
this.actionName = "DETACH";
this.entityName = "LOAN_ORIGINATOR";
this.entityId = loanId;
this.loanId = loanId;
this.subentityId = originatorId;
this.href = "/loans/" + loanId + "/originators/" + originatorId;
return this;
}
}