Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CF-674: add note to identity via extension #931

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# buildscript - project id
projectGroup=com.generalbytes.batm.public
projectVersion=1.7.4
projectVersion=1.8.0

# buildscript - common dependency versions
bitrafaelVersion=1.0.44
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************************
* Copyright (C) 2014-2020 GENERAL BYTES s.r.o. All rights reserved.
* Copyright (C) 2014-2024 GENERAL BYTES s.r.o. All rights reserved.
*
* This software may be distributed and modified under the terms of the GNU
* General Public License version 2 (GPL2) as published by the Free Software
Expand Down Expand Up @@ -308,6 +308,14 @@ public interface IExtensionContext {
*/
boolean addIdentityPiece(String identityPublicId, IIdentityPiece iidentityPiece);

/**
* Add note to identity.
* @param identityPublicId Public ID of identity.
* @param note Text of note.
* @return Return true if note has been set to the identity. Otherwise, return false.
*/
boolean addNoteToIdentity(String identityPublicId, String note);

/**
* Update an existing personal info identity piece.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,11 @@ default void verificationProviderApproved(String terminalSerialNumber, String id

default void verificationProviderDeclined(String terminalSerialNumber, String identityPublicId) {}

/**
* Notification triggered when a used exchange pair is not available.
*
* @param fromCurrency Source currency in the exchange pair.
* @param toCurrency Destination currency in the exchange pair.
*/
default void exchangePairNotAvailable(String fromCurrency, String toCurrency) {}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*************************************************************************************
* Copyright (C) 2014-2024 GENERAL BYTES s.r.o. All rights reserved.
*
* This software may be distributed and modified under the terms of the GNU
* General Public License version 2 (GPL2) as published by the Free Software
* Foundation and appearing in the file GPL2.TXT included in the packaging of
* this file. Please note that GPL2 Section 2[b] requires that all works based
* on this software must also be made publicly available under the terms of
* the GPL2 ("Copyleft").
*
* Contact information
* -------------------
*
* GENERAL BYTES s.r.o.
* Web : http://www.generalbytes.com
*
************************************************************************************/
package com.generalbytes.batm.server.extensions;

import com.generalbytes.batm.server.extensions.aml.verification.ApplicantCheckResult;
Expand Down Expand Up @@ -192,6 +209,11 @@ public boolean addIdentityPiece(String identityPublicId, IIdentityPiece iidentit
return false;
}

@Override
public boolean addNoteToIdentity(String identityPublicId, String note) {
return false;
}

@Override
public boolean updateIdentityPiecePersonalInfo(String identityPublicId, IIdentityPiece identityPiece) {
return false;
Expand Down
Loading