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
  • Loading branch information
Maros Silady committed Nov 2, 2023
1 parent 620f92a commit c795a35
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 c795a35

Please sign in to comment.