KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > epayment > framework > IPaymentRequest


1 package epayment.framework;
2
3 import java.io.Serializable JavaDoc;
4
5 /**
6  * The <code>IPaymentRequest</code> interface defines
7  * the interface for payment request information.
8  * <p>
9  * This class is strictly an example.
10  *
11  * @author <a HREF="mailto:mike@clarkware.com">Mike Clark</a>
12  * @author <a HREF="http://www.clarkware.com">Clarkware Consulting</a>
13  */

14
15 public interface IPaymentRequest extends Serializable JavaDoc {
16
17     /**
18      * Sets the user id.
19      *
20      * @param id User id.
21      */

22     public void setUserId(String JavaDoc id);
23     
24     /**
25      * Sets the user password.
26      *
27      * @param password User password.
28      */

29     public void setUserPassword(String JavaDoc password);
30     
31     /**
32      * Sets the cardholder name.
33      *
34      * @param name Cardholder name.
35      */

36     public void setAccountName(String JavaDoc name);
37     
38     /**
39      * Sets the cardholder's account number.
40      * <p>
41      * This number will be stripped of all spaces,
42      * non-numeric characters, and dashes.
43      *
44      * @param number Card account number.
45      */

46     public void setAccountNumber(String JavaDoc number);
47     
48     /**
49      * Sets the amount of the transaction.
50      * <p>
51      * The format is xxx.yy.
52      *
53      * @param amount Amount in dollars.
54      */

55     public void setAmount(double amount);
56     
57     /**
58      * Sets the reporting comment.
59      *
60      * @param comment Reporting comment.
61      */

62     public void setComment(String JavaDoc comment);
63 }
64
Popular Tags