com.brihaspathee.zeus.helper.interfaces.ChangeTransactionHelper Maven / Gradle / Ivy
package com.brihaspathee.zeus.helper.interfaces;
import com.brihaspathee.zeus.domain.entity.Account;
import com.brihaspathee.zeus.dto.account.AccountDto;
import com.brihaspathee.zeus.dto.transaction.TransactionDto;
import com.brihaspathee.zeus.validator.result.ProcessingValidationResult;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* Created in Intellij IDEA
* User: Balaji Varadharajan
* Date: 27, November 2023
* Time: 5:32 AM
* Project: Zeus
* Package Name: com.brihaspathee.zeus.helper.interfaces
* To change this template use File | Settings | File and Code Template
*/
public interface ChangeTransactionHelper {
/**
* Update the account based on the transaction details
* @param accountDto account information that was retrieved from MMS
* @param account Account that needs to be updated
* @param transactionDto the dto object that was received for processing the account
*/
void updateAccount(AccountDto accountDto,
Account account,
TransactionDto transactionDto) throws JsonProcessingException;
/**
* Continue to process the transaction once the validations are completed
* @param processingValidationResult
* @return account
*/
Account postValidationProcessing(ProcessingValidationResult processingValidationResult)
throws JsonProcessingException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy