-
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.
BATM-6033 Add API allowing to approve/override a deposit transaction (#…
…913)
- Loading branch information
1 parent
02861e4
commit f25a19f
Showing
5 changed files
with
193 additions
and
1 deletion.
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
63 changes: 63 additions & 0 deletions
63
...nsions_api/src/main/java/com/generalbytes/batm/server/extensions/IDepositPreparation.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,63 @@ | ||
/************************************************************************************* | ||
* 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 java.math.BigDecimal; | ||
|
||
/** | ||
* Represents a deposit preparation made by a customer before the deposit is submitted by the customer. | ||
*/ | ||
public interface IDepositPreparation { | ||
|
||
/** | ||
* Serial number of the GB Safe where the deposit was made. | ||
*/ | ||
String getSafeSerialNumber(); | ||
|
||
/** | ||
* Deposit code used to identify the deposit. Equals to the RID of the order transaction. | ||
*/ | ||
String getDepositCode(); | ||
|
||
/** | ||
* Local transaction ID of the expected deposit transaction. Generated by GB Safe when preparing deposit. | ||
*/ | ||
String getLocalTransactionId(); | ||
|
||
/** | ||
* Amount of cash deposited. Can be overridden by an extension. | ||
*/ | ||
BigDecimal getCashAmount(); | ||
|
||
/** | ||
* Fiat currency of the cash deposited. | ||
*/ | ||
String getCashCurrency(); | ||
|
||
/** | ||
* Identity of the customer who made the deposit. | ||
*/ | ||
IIdentity getIdentity(); | ||
|
||
/** | ||
* Error message in case of error. | ||
*/ | ||
String getErrorMessage(); | ||
|
||
} |
67 changes: 67 additions & 0 deletions
67
...extensions_api/src/main/java/com/generalbytes/batm/server/extensions/IDepositRequest.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,67 @@ | ||
/************************************************************************************* | ||
* 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 java.math.BigDecimal; | ||
|
||
/** | ||
* Represents a deposit request submitted by a customer. | ||
*/ | ||
public interface IDepositRequest { | ||
|
||
/** | ||
* Serial number of the GB Safe where the deposit was made. | ||
*/ | ||
String getSafeSerialNumber(); | ||
|
||
/** | ||
* Deposit code used to identify the deposit. Equals to the RID of the order transaction. | ||
*/ | ||
String getDepositCode(); | ||
|
||
/** | ||
* Local transaction ID of the deposit transaction. Generated by GB Safe when preparing deposit. | ||
*/ | ||
String getLocalTransactionId(); | ||
|
||
/** | ||
* Remote transaction ID of the deposit transaction. | ||
*/ | ||
String getRemoteTransactionId(); | ||
|
||
/** | ||
* Amount of cash deposited. Can be overridden by an extension. | ||
*/ | ||
BigDecimal getCashAmount(); | ||
|
||
/** | ||
* Fiat currency of the cash deposited. | ||
*/ | ||
String getCashCurrency(); | ||
|
||
/** | ||
* Identity of the customer who made the deposit. | ||
*/ | ||
IIdentity getIdentity(); | ||
|
||
/** | ||
* Error message in case of error. | ||
*/ | ||
String getErrorMessage(); | ||
|
||
} |
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