/** * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.mifosplatform.accounting.journalentry.service; import java.util.Date; import java.util.Map; import org.mifosplatform.accounting.provisioning.domain.ProvisioningEntry; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; public interface JournalEntryWritePlatformService { CommandProcessingResult createJournalEntry(JsonCommand command); CommandProcessingResult revertJournalEntry(JsonCommand command); void createJournalEntriesForLoan(Map<String, Object> accountingBridgeData); void createJournalEntriesForSavings(Map<String, Object> accountingBridgeData); void createJournalEntriesForClientTransactions(Map<String, Object> accountingBridgeData); CommandProcessingResult defineOpeningBalance(JsonCommand command); public String revertProvisioningJournalEntries(final Date reversalTransactionDate, final Long entityId, final Integer entityType) ; public String createProvisioningJournalEntries(ProvisioningEntry entry) ; }