com.brihaspathee.zeus.helper.interfaces.CancelTermTransactionHelper 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: 05, April 2024
* Time: 1:28 PM
* Project: Zeus
* Package Name: com.brihaspathee.zeus.helper.interfaces
* To change this template use File | Settings | File and Code Template
*/
public interface CancelTermTransactionHelper {
/**
* 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