com.meiglobal.ebds.api.pub
Class Bill

java.lang.Object
  extended by com.meiglobal.ebds.api.pub.Bill

public class Bill
extends java.lang.Object

Class that represents a bill document.


Constructor Summary
Bill()
          Empty constructor.
Bill(java.lang.String country, double value, byte series, byte type, byte compatibility, byte version)
          Full parameters constructor.
 
Method Summary
 byte getCompatibility()
          Getter for bill compatibility.
 java.lang.String getCountry()
          Getter for bill country.
 byte getSeries()
          Getter for bill series.
 byte getType()
          Getter for bill type.
 double getValue()
          Getter for bill value.
 byte getVersion()
          Getter for bill version.
 void setCompatibility(byte compatibility)
          Setter for bill compatibility.
 void setCountry(java.lang.String country)
          Setter for bill country
 void setSeries(byte series)
          Setter for bill series.
 void setType(byte type)
          Setter for bill type.
 void setValue(double value)
          Setter for value.
 void setVersion(byte version)
          Setter for bill version.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bill

public Bill()
Empty constructor.


Bill

public Bill(java.lang.String country,
            double value,
            byte series,
            byte type,
            byte compatibility,
            byte version)
Full parameters constructor.

Parameters:
country - Bill country.
value - Bill value.
series - Bill series.
type - Bill type.
compatibility - Bill compatibility.
version - Bill version.
Method Detail

getCountry

public java.lang.String getCountry()
Getter for bill country.

Returns:
3 letter country code. Ex: USD.

setCountry

public void setCountry(java.lang.String country)
Setter for bill country

Parameters:
country - The country code to set.

getValue

public double getValue()
Getter for bill value.

Returns:
Bill value.

setValue

public void setValue(double value)
Setter for value.

Parameters:
value - Value to set.

getSeries

public byte getSeries()
Getter for bill series.

Returns:
Bill series.

setSeries

public void setSeries(byte series)
Setter for bill series.

Parameters:
series - The series to set.

getType

public byte getType()
Getter for bill type.

Returns:
The bill type.

setType

public void setType(byte type)
Setter for bill type.

Parameters:
type - The type to set.

getCompatibility

public byte getCompatibility()
Getter for bill compatibility.

Returns:
The bill compatibility

setCompatibility

public void setCompatibility(byte compatibility)
Setter for bill compatibility.

Parameters:
compatibility - Value to set.

getVersion

public byte getVersion()
Getter for bill version.

Returns:
Version.

setVersion

public void setVersion(byte version)
Setter for bill version.

Parameters:
version - Bill version to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object