Skip to content

Commit

Permalink
BATM-6033 Improve IDepositX API to return similar data as ITransactio…
Browse files Browse the repository at this point in the history
…nX interfaces
  • Loading branch information
Filip Ocelka committed May 31, 2024
1 parent f25a19f commit 61030bc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public interface IDepositDetails {
String getDepositCode();

/**
* Identity of the customer who made the deposit.
* Identity public ID of the customer who made the deposit.
*/
IIdentity getIdentity();
String getIdentityPublicId();

/**
* Amount of cash deposited.
Expand All @@ -63,8 +63,4 @@ public interface IDepositDetails {
*/
String getLocalTransactionId();

/**
* List of banknotes deposited in the transaction.
*/
List<IBanknoteCounts> getBanknotes();
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public interface IDepositPreparation {
String getCashCurrency();

/**
* Identity of the customer who made the deposit.
* Identity public ID of the customer who made the deposit.
*/
IIdentity getIdentity();
String getIdentityPublicId();

/**
* Error message in case of error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public interface IDepositRequest {
String getCashCurrency();

/**
* Identity of the customer who made the deposit.
* Identity public ID of the customer who made the deposit.
*/
IIdentity getIdentity();
String getIdentityPublicId();

/**
* Error message in case of error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ default IDepositPreparation overrideDepositPreparation(IDepositPreparation prepa
*
* @return result of the approval
*/
default boolean isTransactionApproved(IDepositRequest depositRequest) {
default boolean isDepositApproved(IDepositRequest request) {
return true;
}

Expand All @@ -166,7 +166,7 @@ default boolean isTransactionApproved(IDepositRequest depositRequest) {
* @param request The transaction request initialized by server
* @return {@link ITransactionRequest} that may contain modified transaction request.
*/
default IDepositRequest overrideTransactionRequest(IDepositRequest request) {
default IDepositRequest overrideDepositRequest(IDepositRequest request) {
return request;
}

Expand Down

0 comments on commit 61030bc

Please sign in to comment.