estamp.transaction
Class PurchaseInfo

java.lang.Object
  extended byestamp.transaction.PurchaseInfo

public class PurchaseInfo
extends java.lang.Object

Title: PurhcaseInfo.java

Description: Represents information about purchasing estamps

Copyright: Copyright (c) 2003

Company: segy


Field Summary
(package private) static int AMEX
          Payment Type: Americane Express
(package private) static int CHECKING
          Payment Type: Checking
(package private) static int DISCOVER
          Payment Type: Discover
(package private) static int MASTER
          Payment Type: Master
(package private) static int VISA
          Payment Type: Visa
 
Constructor Summary
PurchaseInfo()
          Default constructor
 
Method Summary
(package private)  int getAccountNumber()
          Gets the account number of credit card or checking account.
(package private)  java.util.Calendar getExpireDate()
          Gets the creidt card expiration date.
(package private)  java.lang.String getFirstName()
          Gets the buyer's first name
(package private)  java.lang.String getLastName()
          Gets the buyer's last name
(package private)  int getPaymentType()
          Get the payment type.
(package private)  int getRoutNumber()
          Gets the rout number of checking account
(package private)  void setAccountNumber(int accountNumber)
          Sets the account number of credit card or checking account.
(package private)  void setExpireDate(java.util.Calendar expireDate)
          Sets the creidt card expiration date.
(package private)  void setFirstName(java.lang.String firstName)
          Sets the buyer's first name
(package private)  void setLastName(java.lang.String lastName)
          Sets the buyer's last name
(package private)  void setPaymentType(int paymentType)
          Sets the payment type.
(package private)  void setRoutNumber(int routNumber)
          Sets the rout number of checking account
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VISA

static final int VISA
Payment Type: Visa

See Also:
Constant Field Values

MASTER

static final int MASTER
Payment Type: Master

See Also:
Constant Field Values

AMEX

static final int AMEX
Payment Type: Americane Express

See Also:
Constant Field Values

DISCOVER

static final int DISCOVER
Payment Type: Discover

See Also:
Constant Field Values

CHECKING

static final int CHECKING
Payment Type: Checking

See Also:
Constant Field Values
Constructor Detail

PurchaseInfo

public PurchaseInfo()
Default constructor

Method Detail

getAccountNumber

int getAccountNumber()
Gets the account number of credit card or checking account.

Returns:
the account number of credit card or checking account.

getExpireDate

java.util.Calendar getExpireDate()
Gets the creidt card expiration date.

Returns:
the credit card expiration date.

getFirstName

java.lang.String getFirstName()
Gets the buyer's first name

Returns:
the buyer's first name

getLastName

java.lang.String getLastName()
Gets the buyer's last name

Returns:
the buyer's last name

getPaymentType

int getPaymentType()
Get the payment type. The payment type could be one of: VISA, MASTER, AMEX, DISCOVER, CHECKING.

Returns:
the payment type.

getRoutNumber

int getRoutNumber()
Gets the rout number of checking account

Returns:
the rout number of checking account

setAccountNumber

void setAccountNumber(int accountNumber)
Sets the account number of credit card or checking account.


setExpireDate

void setExpireDate(java.util.Calendar expireDate)
Sets the creidt card expiration date.

Parameters:
expireDate - the credit card expiration date.

setFirstName

void setFirstName(java.lang.String firstName)
Sets the buyer's first name

Parameters:
firstName - the buyer's first name

setLastName

void setLastName(java.lang.String lastName)
Sets the buyer's last name

Parameters:
lastName - the buyer's last name

setPaymentType

void setPaymentType(int paymentType)
Sets the payment type. The payment type could be one of: VISA, MASTER, AMEX, DISCOVER, CHECKING.

Parameters:
paymentType - the payment type.

setRoutNumber

void setRoutNumber(int routNumber)
Sets the rout number of checking account

Parameters:
routNumber - the rout number of checking account