diff --git a/server_extensions_api/src/main/java/com/generalbytes/batm/server/extensions/IExtensionContext.java b/server_extensions_api/src/main/java/com/generalbytes/batm/server/extensions/IExtensionContext.java index 648d14360..461da7fff 100644 --- a/server_extensions_api/src/main/java/com/generalbytes/batm/server/extensions/IExtensionContext.java +++ b/server_extensions_api/src/main/java/com/generalbytes/batm/server/extensions/IExtensionContext.java @@ -308,6 +308,17 @@ public interface IExtensionContext { */ boolean addIdentityPiece(String identityPublicId, IIdentityPiece iidentityPiece); + /** + * Update an existing personal info identity piece. + * + *

This method can only be used to update Personal Info identity pieces. + * + * @param identityPublicId public ID of an existing identity to be updated + * @param identityPiece identity piece to be updated + * @return true in case of success, false otherwise + */ + boolean updateIdentityPiecePersonalInfo(String identityPublicId, IIdentityPiece identityPiece); + /** * @param identityId public ID of an existing identity to be updated * @param state new state to be set diff --git a/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/TestExtensionContext.java b/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/TestExtensionContext.java index 3b0c6cd60..4fa5b1892 100644 --- a/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/TestExtensionContext.java +++ b/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/TestExtensionContext.java @@ -192,6 +192,11 @@ public boolean addIdentityPiece(String identityPublicId, IIdentityPiece iidentit return false; } + @Override + public boolean updateIdentityPiecePersonalInfo(String identityPublicId, IIdentityPiece identityPiece) { + return false; + } + @Override public IIdentity updateIdentity(String identityId, String externalId, int state, int type, Date created, Date registered, BigDecimal vipBuyDiscount, BigDecimal vipSellDiscount, String note, List limitCashPerTransaction, List limitCashPerHour, List limitCashPerDay, List limitCashPerWeek, List limitCashPerMonth, List limitCashPer3Months, List limitCashPer12Months, List limitCashPerCalendarQuarter, List limitCashPerCalendarYear, List limitCashTotalIdentity, String configurationCashCurrency) { return null;