Skip to content

Commit

Permalink
CF-638: watchlistScanIdentityMatches notification with extended infor…
Browse files Browse the repository at this point in the history
…mation (#919)
  • Loading branch information
drocek authored Jul 16, 2024
1 parent b13496a commit 5b0aee0
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 1 deletion.
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 All @@ -17,6 +17,8 @@
************************************************************************************/
package com.generalbytes.batm.server.extensions;

import com.generalbytes.batm.server.extensions.watchlist.WatchListScanIdentityMatchesData;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;
Expand Down Expand Up @@ -293,6 +295,13 @@ default void watchlistScanBan(String terminalSerialNumber) {}
*/
default void watchlistScanIdentityMatches(String identityPublicId) {}

/**
* Triggered if there is a match on the WatchList with the Identity. Contains detailed information.
*
* @param data Object containing detailed information about match result.
*/
default void watchlistScanIdentityMatches(WatchListScanIdentityMatchesData data) {}

default void lifetimeIdentityVolumeReached(String terminalSerialNumber, BigDecimal lifetimeVolume, String cashCurrency, BigDecimal preConditionAmount, String identityPublicId) {}

default void transactionSupplyLimitReached(String terminalSerialNumber) {}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
/*************************************************************************************
* 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.watchlist;

import java.io.Serializable;

public class WatchListScanIdentityMatchesData implements Serializable {

/**
* Public ID of identity.
*/
private String identityPublicId;

/**
* Code of WatchList.
*/
private String watchListCode;

/**
* Unique identifier of the matching entity.
*/
private String partyId;

/**
* Type of WatchList trigger.
*/
private WatchListTrigger trigger;

/**
* Result of scan.
*/
private WatchListScanResult scanResult;

/**
* Terminal serial number. It is available if the trigger is {@link WatchListTrigger#PRE_TRANSACTION}, otherwise null.
*/
private String terminalSerialNumber;

public String getIdentityPublicId() {
return identityPublicId;
}

public void setIdentityPublicId(String identityPublicId) {
this.identityPublicId = identityPublicId;
}

public String getWatchListCode() {
return watchListCode;
}

public void setWatchListCode(String watchListCode) {
this.watchListCode = watchListCode;
}

public String getPartyId() {
return partyId;
}

public void setPartyId(String partyId) {
this.partyId = partyId;
}

public WatchListTrigger getTrigger() {
return trigger;
}

public void setTrigger(WatchListTrigger trigger) {
this.trigger = trigger;
}

public WatchListScanResult getScanResult() {
return scanResult;
}

public void setScanResult(WatchListScanResult scanResult) {
this.scanResult = scanResult;
}

public String getTerminalSerialNumber() {
return terminalSerialNumber;
}

public void setTerminalSerialNumber(String terminalSerialNumber) {
this.terminalSerialNumber = terminalSerialNumber;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*************************************************************************************
* 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.watchlist;

public enum WatchListScanResult {

NO_MATCH,
PARTIAL_MATCH,
FULL_MATCH

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*************************************************************************************
* 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.watchlist;

public enum WatchListTrigger {

MANUAL,
PRE_TRANSACTION,
PERIODIC,
EXTENSION

}

0 comments on commit 5b0aee0

Please sign in to comment.