Skip to content

Commit

Permalink
Merge branch 'GENERALBYTESCOM:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
verumcoin authored Jul 23, 2024
2 parents 2646f2c + 824b411 commit 0ce009a
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 2 deletions.
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.6.3
projectVersion=1.7.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 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 0ce009a

Please sign in to comment.