View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  /*
20   * Created on Mar 9, 2005
21   *
22   */
23  package org.kuali.kfs.module.purap.businessobject;
24  
25  import java.util.LinkedHashMap;
26  
27  import org.kuali.kfs.module.purap.document.ElectronicInvoiceRejectDocument;
28  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
29  
30  public class ElectronicInvoiceRejectReason extends PersistableBusinessObjectBase {
31    
32    private Integer invoiceRejectReasonIdentifier;
33    private Integer purapDocumentIdentifier;
34    private String invoiceFileName;
35    private String invoiceRejectReasonTypeCode;
36    private String invoiceRejectReasonDescription;
37    private ElectronicInvoiceRejectDocument electronicInvoiceRejectDocument;
38    private ElectronicInvoiceRejectReasonType invoiceRejectReasonType;
39    
40    
41    /**
42     * 
43     */
44    public ElectronicInvoiceRejectReason() {
45      super();
46    }
47    
48    public ElectronicInvoiceRejectReason(String electronicInvoiceRejectTypeCode, String invoiceFileName, String description) {
49      super();
50      this.invoiceRejectReasonTypeCode = electronicInvoiceRejectTypeCode;
51      this.invoiceFileName = invoiceFileName;
52      this.invoiceRejectReasonDescription = description;
53    }
54    
55    public ElectronicInvoiceRejectReason(ElectronicInvoiceRejectDocument eir, String electronicInvoiceRejectTypeCode, String invoiceFileName, String description) {
56      super();
57      this.electronicInvoiceRejectDocument = eir;
58      this.invoiceRejectReasonTypeCode = electronicInvoiceRejectTypeCode;
59      this.invoiceFileName = invoiceFileName;
60      this.invoiceRejectReasonDescription = description;
61    }
62    
63    public ElectronicInvoiceRejectReason(Integer purapDocumentIdentifier, String electronicInvoiceRejectTypeCode, String invoiceFileName, String description) {
64        super();
65        this.purapDocumentIdentifier = purapDocumentIdentifier;
66        this.invoiceRejectReasonTypeCode = electronicInvoiceRejectTypeCode;
67        this.invoiceFileName = invoiceFileName;
68        this.invoiceRejectReasonDescription = description;
69    }
70    
71    /**
72     * @return Returns the electronicInvoiceRejectDocument.
73     */
74    public ElectronicInvoiceRejectDocument getElectronicInvoiceRejectDocument() {
75      return electronicInvoiceRejectDocument;
76    }
77    
78    /**
79     * @param electronicInvoiceRejectDocument The electronicInvoiceRejectDocument to set.
80     */
81    public void setElectronicInvoiceRejectDocument(ElectronicInvoiceRejectDocument electronicInvoiceRejectDocument) {
82      this.electronicInvoiceRejectDocument = electronicInvoiceRejectDocument;
83    }
84    
85    /**
86     * @return Returns the invoiceRejectReasonTypeCode.
87     */
88    public String getInvoiceRejectReasonTypeCode() {
89      return invoiceRejectReasonTypeCode;
90    }
91    /**
92     * @param invoiceRejectReasonTypeCode The invoiceRejectReasonTypeCode to set.
93     */
94    public void setInvoiceRejectReasonTypeCode(String electronicInvoiceRejectTypeCode) {
95      this.invoiceRejectReasonTypeCode = electronicInvoiceRejectTypeCode;
96    }
97    
98    /**
99     * @return Returns the invoiceRejectReasonIdentifier.
100    */
101   public Integer getInvoiceRejectReasonIdentifier() {
102     return invoiceRejectReasonIdentifier;
103   }
104   
105   /**
106    * @param invoiceRejectReasonIdentifier The invoiceRejectReasonIdentifier to set.
107    */
108   public void setInvoiceRejectReasonIdentifier(Integer id) {
109     this.invoiceRejectReasonIdentifier = id;
110   }
111   
112   /**
113    * @return Returns the invoiceFileName.
114    */
115   public String getInvoiceFileName() {
116     return invoiceFileName;
117   }
118   
119   /**
120    * @param invoiceFileName The invoiceFileName to set.
121    */
122   public void setInvoiceFileName(String invoiceFileName) {
123     this.invoiceFileName = invoiceFileName;
124   }
125   
126   /**
127    * @return Returns the invoiceRejectReasonDescription.
128    */
129   public String getInvoiceRejectReasonDescription() {
130     return invoiceRejectReasonDescription;
131   }
132   
133   /**
134    * @param invoiceRejectReasonDescription The invoiceRejectReasonDescription to set.
135    */
136   public void setInvoiceRejectReasonDescription(String invoiceRejectReasonDescription) {
137     this.invoiceRejectReasonDescription = invoiceRejectReasonDescription;
138   }
139   
140   public ElectronicInvoiceRejectReasonType getInvoiceRejectReasonType() {
141     return invoiceRejectReasonType;
142   }
143 
144   public void setInvoiceRejectReasonType(ElectronicInvoiceRejectReasonType invoiceRejectReasonType) {
145     this.invoiceRejectReasonType = invoiceRejectReasonType;
146   }
147 
148   /**
149    * @return Returns the purapDocumentIdentifier.
150    */
151   public Integer getPurapDocumentIdentifier() {
152     return purapDocumentIdentifier;
153   }
154   /**
155    * @param purapDocumentIdentifier The purapDocumentIdentifier to set.
156    */
157   public void setPurapDocumentIdentifier(Integer rejectHeaderId) {
158     this.purapDocumentIdentifier = rejectHeaderId;
159   }
160   
161   /**
162    * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
163    */
164   protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
165       
166       LinkedHashMap m = new LinkedHashMap();
167       m.put("invoiceRejectReasonIdentifier", this.invoiceRejectReasonIdentifier);
168       return m;
169   }
170  
171 }