All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.brihaspathee.zeus.helper.interfaces.AddTransactionHelper Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
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: 23, May 2023
 * Time: 2:58 PM
 * Project: Zeus
 * Package Name: com.brihaspathee.zeus.helper.interfaces
 * To change this template use File | Settings | File and Code Template
 */
public interface AddTransactionHelper {

    /**
     * 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
     */
    AccountDto 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