FINERACT-1971: update and delete interest pause by external id
This commit is contained in:
committed by
Adam Saghy
parent
001797b97a
commit
9258be777c
+18
@@ -3759,6 +3759,15 @@ public class CommandWrapperBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public CommandWrapperBuilder deleteInterestPause(final String loanExternalId, final long variationId) {
|
||||
this.actionName = "DELETE";
|
||||
this.entityName = "INTEREST_PAUSE";
|
||||
this.loanExternalId = new ExternalId(loanExternalId);
|
||||
this.entityId = variationId;
|
||||
this.href = "/v1/loans/external-id/" + loanExternalId + "/interest-pauses/" + variationId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CommandWrapperBuilder updateInterestPause(final long loanId, final long variationId) {
|
||||
this.actionName = "UPDATE";
|
||||
this.entityName = "INTEREST_PAUSE";
|
||||
@@ -3767,4 +3776,13 @@ public class CommandWrapperBuilder {
|
||||
this.href = "/v1/loans/" + loanId + "/interest-pauses/" + variationId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CommandWrapperBuilder updateInterestPause(final String loanExternalId, final long variationId) {
|
||||
this.actionName = "UPDATE";
|
||||
this.entityName = "INTEREST_PAUSE";
|
||||
this.loanExternalId = new ExternalId(loanExternalId);
|
||||
this.entityId = variationId;
|
||||
this.href = "/v1/loans/external-id/" + loanExternalId + "/interest-pauses/" + variationId;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user