1 /* 2 * Copyright 2009 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.kuali.ole.fp.document.validation.event; 17 18 import org.kuali.ole.fp.businessobject.CashDrawer; 19 import org.kuali.ole.fp.businessobject.CashieringTransaction; 20 import org.kuali.rice.krad.rules.rule.event.DocumentEvent; 21 import org.kuali.rice.krad.rules.rule.event.DocumentEventBase; 22 23 /** 24 * An event generated when a cash management document is about to apply a cashiering transaction 25 */ 26 public interface CashieringTransactionApplicationEvent extends DocumentEvent { 27 28 /** 29 * Returns the cashiering transaction to be validated 30 * @return the cashiering transaction to be validated 31 */ 32 public abstract CashieringTransaction getCashieringTransaction(); 33 34 /** 35 * Returns the cash drawer that the cashiering transaction to validate will be applied to 36 * @return the cash drawer's current state on the cash management document initiating the cashiering transaction 37 */ 38 public abstract CashDrawer getCashDrawer(); 39 }