01: package epayment.framework;
02:
03: import java.io.Serializable;
04:
05: /**
06: * The <code>IPaymentRequest</code> interface defines
07: * the interface for payment request information.
08: * <p>
09: * 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 {
16:
17: /**
18: * Sets the user id.
19: *
20: * @param id User id.
21: */
22: public void setUserId(String id);
23:
24: /**
25: * Sets the user password.
26: *
27: * @param password User password.
28: */
29: public void setUserPassword(String password);
30:
31: /**
32: * Sets the cardholder name.
33: *
34: * @param name Cardholder name.
35: */
36: public void setAccountName(String 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 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 comment);
63: }
|