-
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 ITransactionListener#onDepositCreated method
- Loading branch information
Filip Ocelka
committed
May 27, 2024
1 parent
5342e1e
commit 487df85
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
...extensions_api/src/main/java/com/generalbytes/batm/server/extensions/IDepositDetails.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,70 @@ | ||
package com.generalbytes.batm.server.extensions; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.Date; | ||
import java.util.List; | ||
|
||
/** | ||
* Provides details about created deposit transaction. | ||
*/ | ||
public interface IDepositDetails { | ||
|
||
/** | ||
* Serial number of the GB safe where the deposit was made. | ||
*/ | ||
String getSafeSerialNumber(); | ||
|
||
/** | ||
* Status of the deposit transaction. | ||
* <ul> | ||
* <li>0 - completed</li> | ||
* <li>1 - error</li> | ||
* </ul> | ||
*/ | ||
int getStatus(); | ||
|
||
/** | ||
* Server time of the deposit transaction. | ||
*/ | ||
Date getServerTime(); | ||
|
||
/** | ||
* GB Safe time of the deposit transaction. | ||
*/ | ||
Date getSafeTime(); | ||
|
||
/** | ||
* Deposit code of the related order transaction. | ||
*/ | ||
String getDepositCode(); | ||
|
||
/** | ||
* Identity of the customer who made the deposit. | ||
*/ | ||
IIdentity getIdentity(); | ||
|
||
/** | ||
* Amount of cash deposited. | ||
*/ | ||
BigDecimal getCashAmount(); | ||
|
||
/** | ||
* Fiat currency of the cash deposited. | ||
*/ | ||
String getCashCurrency(); | ||
|
||
/** | ||
* Remote transaction ID of the deposit. | ||
*/ | ||
String getRemoteTransactionId(); | ||
|
||
/** | ||
* Local transaction ID of the deposit. | ||
*/ | ||
String getLocalTransactionId(); | ||
|
||
/** | ||
* List of banknotes deposited in the transaction. | ||
*/ | ||
List<IBanknoteCounts> getBanknotes(); | ||
} |
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