001: /*
002: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
003: *
004: * Redistribution and use in source and binary forms, with or without
005: * modification, are permitted provided that the following conditions
006: * are met:
007: *
008: * - Redistributions of source code must retain the above copyright
009: * notice, this list of conditions and the following disclaimer.
010: *
011: * - Redistribution in binary form must reproduce the above copyright
012: * notice, this list of conditions and the following disclaimer in
013: * the documentation and/or other materials provided with the
014: * distribution.
015: *
016: * Neither the name of Sun Microsystems, Inc. or the names of
017: * contributors may be used to endorse or promote products derived
018: * from this software without specific prior written permission.
019: *
020: * This software is provided "AS IS," without a warranty of any
021: * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
022: * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
023: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
024: * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
025: * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
026: * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
027: * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
028: * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
029: * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
030: * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
031: * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
032: *
033: * You acknowledge that Software is not designed, licensed or intended
034: * for use in the design, construction, operation or maintenance of
035: * any nuclear facility.
036: */
037:
038: package com.sun.portal.oracleportlet.util;
039:
040: import java.lang.*;
041: import java.util.*;
042: import java.io.Serializable;
043:
044: /**
045: * This is a bean that holds summary info of a receipt
046: *
047: * @author Zahid Syed
048: */
049:
050: public class ReceiptsBean extends Object implements Serializable {
051: String receiptNumber;
052: String receiptDate;
053: String amount;
054: String currency;
055: String status;
056:
057: public ReceiptsBean() {
058: }
059:
060: public void setReceiptNumber(String recNo) {
061: this .receiptNumber = recNo;
062: }
063:
064: public String getReceiptNumber() {
065: return (this .receiptNumber);
066: }
067:
068: public void setReceiptDate(String recDate) {
069: this .receiptDate = recDate;
070: }
071:
072: public String getReceiptDate() {
073: return (this .receiptDate);
074: }
075:
076: public void setAmount(String amnt) {
077:
078: this .amount = amnt;
079: }
080:
081: public String getAmount() {
082: return (this .amount);
083: }
084:
085: public void setCurrency(String curr) {
086:
087: this .currency = curr;
088: }
089:
090: public String getCurrency() {
091: return (this .currency);
092: }
093:
094: public void setStatus(String stat) {
095:
096: if (stat.equalsIgnoreCase("APP")) {
097: this .status = "Cleared";
098: } else if (stat.equalsIgnoreCase("UNAPP")) {
099: this .status = "Unapplied";
100: } else if (stat.equalsIgnoreCase("UNID")) {
101: this .status = "Unidentified";
102: } else if (stat.equalsIgnoreCase("NSF")) {
103: this .status = "Non-Sufficient Funds";
104: } else if (stat.equalsIgnoreCase("REV")) {
105: this .status = "Reversed";
106: } else if (stat.equalsIgnoreCase("STOP")) {
107: this .status = "Stop Payment";
108: } else
109: this .status = stat;
110: }
111:
112: public String getStatus() {
113: return (this.status);
114: }
115:
116: }
|