Skip to content

Commit

Permalink
LC-256 - ITransactionSellInfo and ITransactionBuyInfo should include …
Browse files Browse the repository at this point in the history
…servertime and terminaltime (#857)

Co-authored-by: Maros Silady <[email protected]>
  • Loading branch information
SMaros and Maros Silady authored Jan 10, 2024
1 parent a7bc6cc commit fa4e81d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package com.generalbytes.batm.server.extensions;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

public interface ITransactionBuyInfo {
Expand Down Expand Up @@ -67,4 +68,18 @@ public interface ITransactionBuyInfo {
* @return Custom texts that should be written on the ticket. Custom data are usually generated by ITransactionListener
*/
Map<String, String> getCustomData();

/**
* Server time of the transaction
*
* @return {@link Date}
*/
Date getServerTime();

/**
* Terminal time of the transaction - calculated from the terminal location timezone (you may have terminals across multiple time zones)
*
* @return {@link Date}
*/
Date getTerminalTime();
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package com.generalbytes.batm.server.extensions;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

public interface ITransactionSellInfo {
Expand Down Expand Up @@ -93,4 +94,18 @@ public interface ITransactionSellInfo {
* @return
*/
Map<String, String> getCustomData();

/**
* Server time of the transaction
*
* @return {@link Date}
*/
Date getServerTime();

/**
* Terminal time of the transaction - calculated from the terminal location timezone (you may have terminals across multiple time zones)
*
* @return {@link Date}
*/
Date getTerminalTime();
}

0 comments on commit fa4e81d

Please sign in to comment.