1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
package epayment.framework;
import java.io.Serializable;
/**
* The <code>IPaymentRequest</code> interface defines
* the interface for payment request information.
* <p>
* This class is strictly an example.
*
* @author <a href="mailto:mike@clarkware.com">Mike Clark</a>
* @author <a href="http://www.clarkware.com">Clarkware Consulting</a>
*/
public interface IPaymentRequest extends Serializable {
/**
* Sets the user id.
*
* @param id User id.
*/
public void setUserId(String id);
/**
* Sets the user password.
*
* @param password User password.
*/
public void setUserPassword(String password);
/**
* Sets the cardholder name.
*
* @param name Cardholder name.
*/
public void setAccountName(String name);
/**
* Sets the cardholder's account number.
* <p>
* This number will be stripped of all spaces,
* non-numeric characters, and dashes.
*
* @param number Card account number.
*/
public void setAccountNumber(String number);
/**
* Sets the amount of the transaction.
* <p>
* The format is xxx.yy.
*
* @param amount Amount in dollars.
*/
public void setAmount(double amount);
/**
* Sets the reporting comment.
*
* @param comment Reporting comment.
*/
public void setComment(String comment);
}
|