com.meiglobal.ebds.api.pub
Class Coupon

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

public class Coupon
extends java.lang.Object

Class that represents a coupon document.


Constructor Summary
Coupon(int owner, double value)
          Creates a coupon object based on the ownerID (from the data) and the value.
 
Method Summary
 int getOwnerId()
          Getter for owner id.
 double getValue()
          Getter for value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Coupon

public Coupon(int owner,
              double value)
Creates a coupon object based on the ownerID (from the data) and the value.

Parameters:
owner -
value -
Method Detail

getOwnerId

public int getOwnerId()
Getter for owner id.

Returns:
Owner id.

getValue

public double getValue()
Getter for value.

Returns:
The coupon value.