-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CF-638: watchlist notification with extended information
- Loading branch information
Showing
5 changed files
with
174 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
...a/com/generalbytes/batm/server/extensions/watchlist/WatchListScanIdentityMatchesData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/************************************************************************************* | ||
* 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 class WatchListScanIdentityMatchesData { | ||
|
||
/** | ||
* Public ID of identity. Can be null. | ||
*/ | ||
private final String identityPublicId; | ||
/** | ||
* Message body. | ||
*/ | ||
private final String messageBody; | ||
/** | ||
* Type of WatchList trigger. | ||
*/ | ||
private final WatchListTrigger trigger; | ||
/** | ||
* Terminal serial number. Can be null. | ||
*/ | ||
private final String terminalSerialNumber; | ||
/** | ||
* Match score by WatchList provider. Can be null. | ||
*/ | ||
private final Integer matchScore; | ||
/** | ||
* Result of scan. | ||
*/ | ||
private final WatchListScanResult scanResult; | ||
|
||
public WatchListScanIdentityMatchesData(String identityPublicId, | ||
String messageBody, | ||
WatchListTrigger trigger, | ||
String terminalSerialNumber, | ||
Integer matchScore, | ||
WatchListScanResult scanResult | ||
) { | ||
this.identityPublicId = identityPublicId; | ||
this.messageBody = messageBody; | ||
this.trigger = trigger; | ||
this.terminalSerialNumber = terminalSerialNumber; | ||
this.matchScore = matchScore; | ||
this.scanResult = scanResult; | ||
} | ||
|
||
public String getIdentityPublicId() { | ||
return identityPublicId; | ||
} | ||
|
||
public String getMessageBody() { | ||
return messageBody; | ||
} | ||
|
||
public WatchListTrigger getTrigger() { | ||
return trigger; | ||
} | ||
|
||
public String getTerminalSerialNumber() { | ||
return terminalSerialNumber; | ||
} | ||
|
||
public Integer getMatchScore() { | ||
return matchScore; | ||
} | ||
|
||
public WatchListScanResult getScanResult() { | ||
return scanResult; | ||
} | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
.../src/main/java/com/generalbytes/batm/server/extensions/watchlist/WatchListScanResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/************************************************************************************* | ||
* 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("OK"), | ||
PARTIAL_MATCH("Partial Match"), | ||
FULL_MATCH("Full Match"); | ||
|
||
private final String title; | ||
|
||
WatchListScanResult(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
} |
37 changes: 37 additions & 0 deletions
37
...api/src/main/java/com/generalbytes/batm/server/extensions/watchlist/WatchListTrigger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/************************************************************************************* | ||
* 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("Manual"), | ||
PRE_TRANSACTION("Pre-Transaction"), | ||
PERIODIC("Periodic"), | ||
EXTENSION("Extension"); | ||
|
||
private final String title; | ||
|
||
WatchListTrigger(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
} |