com.ibm.retail.saf.provider
Class DefaultTransactionTotals

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.ibm.retail.saf.provider.POSInfoImpl
                    |
                    +--com.ibm.retail.saf.provider.DefaultTransactionTotals
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, POSInfo, java.io.Serializable, TransactionTotals

public class DefaultTransactionTotals
extends POSInfoImpl
implements TransactionTotals

Provides a base implementation of a TransactionTotals.

See Also:
Serialized Form

Field Summary
(package private)  java.lang.String balanceDue
           
(package private)  java.lang.String changeDue
           
(package private)  java.lang.String couponCount
           
(package private)  java.lang.String itemCount
           
(package private)  java.lang.String subTotal
           
(package private)  java.lang.String tax
           
(package private)  java.lang.String total
           
(package private)  java.lang.String totalCouponAmount
           
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
DefaultTransactionTotals()
          Constructor
DefaultTransactionTotals(java.lang.String ttl, java.lang.String subT, java.lang.String tx, java.lang.String balDue, java.lang.String chDue, java.lang.String cpnCnt, java.lang.String itmCnt, java.lang.String ttlCpnAmt)
          Constructor for setting all data variables at once
 
Method Summary
 java.lang.String getBalanceDue()
          Get the balance due.
 java.lang.String getChangeDue()
          Get the change due.
 java.lang.String getCouponCount()
          Get the coupon count .
 java.lang.String getItemCount()
          Get the number of items.
 java.lang.String getSubTotal()
          Get the subtotal amount due.
 java.lang.String getTax()
          Get the tax amount due.
 java.lang.String getTotal()
          Get the transaction total amount due.
 java.lang.String getTotalCouponAmount()
          Get the total value of all coupons (ignoring taxes).
 void setBalanceDue(java.lang.String string)
          Set the balance due
 void setChangeDue(java.lang.String string)
          Set the change due
 void setCouponCount(java.lang.String string)
          Set the coupon amount
 void setItemCount(java.lang.String string)
          Set the item count
 void setSubTotal(java.lang.String string)
          Set the sub total
 void setTax(java.lang.String string)
          Set the tax
 void setTotal(java.lang.String string)
          Set the total
 void setTotalCouponAmount(java.lang.String string)
          Set the total coupon amount
 
Methods inherited from class com.ibm.retail.saf.provider.POSInfoImpl
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.retail.saf.provider.POSInfo
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

total

java.lang.String total

subTotal

java.lang.String subTotal

tax

java.lang.String tax

balanceDue

java.lang.String balanceDue

changeDue

java.lang.String changeDue

couponCount

java.lang.String couponCount

itemCount

java.lang.String itemCount

totalCouponAmount

java.lang.String totalCouponAmount
Constructor Detail

DefaultTransactionTotals

public DefaultTransactionTotals()
Constructor


DefaultTransactionTotals

public DefaultTransactionTotals(java.lang.String ttl,
                                java.lang.String subT,
                                java.lang.String tx,
                                java.lang.String balDue,
                                java.lang.String chDue,
                                java.lang.String cpnCnt,
                                java.lang.String itmCnt,
                                java.lang.String ttlCpnAmt)
Constructor for setting all data variables at once

Parameters:
ttl - Total
subT - SubTotal
tx - Tax
balDue - BalanceDue
chDue - Change Due
cpnCnt - Coupon Count
itmCnt - Item Count
ttlCpnAmt - Total Coupon Amount
Method Detail

getBalanceDue

public java.lang.String getBalanceDue()
Description copied from interface: TransactionTotals
Get the balance due.

Specified by:
getBalanceDue in interface TransactionTotals
Returns:
amt due

getChangeDue

public java.lang.String getChangeDue()
Description copied from interface: TransactionTotals
Get the change due.

Specified by:
getChangeDue in interface TransactionTotals
Returns:
change due

getCouponCount

public java.lang.String getCouponCount()
Description copied from interface: TransactionTotals
Get the coupon count .

Specified by:
getCouponCount in interface TransactionTotals
Returns:
coupon total

getItemCount

public java.lang.String getItemCount()
Description copied from interface: TransactionTotals
Get the number of items.

Specified by:
getItemCount in interface TransactionTotals
Returns:
total items

getSubTotal

public java.lang.String getSubTotal()
Description copied from interface: TransactionTotals
Get the subtotal amount due.

Specified by:
getSubTotal in interface TransactionTotals
Returns:
subtotal

getTax

public java.lang.String getTax()
Description copied from interface: TransactionTotals
Get the tax amount due.

Specified by:
getTax in interface TransactionTotals
Returns:
tax

getTotal

public java.lang.String getTotal()
Description copied from interface: TransactionTotals
Get the transaction total amount due.

Specified by:
getTotal in interface TransactionTotals
Returns:
total

getTotalCouponAmount

public java.lang.String getTotalCouponAmount()
Description copied from interface: TransactionTotals
Get the total value of all coupons (ignoring taxes).

Specified by:
getTotalCouponAmount in interface TransactionTotals
Returns:
total coupons' value

setBalanceDue

public void setBalanceDue(java.lang.String string)
Set the balance due

Parameters:
string - balance due

setChangeDue

public void setChangeDue(java.lang.String string)
Set the change due

Parameters:
string - change due

setCouponCount

public void setCouponCount(java.lang.String string)
Set the coupon amount

Parameters:
string - coupon amount

setItemCount

public void setItemCount(java.lang.String string)
Set the item count

Parameters:
string - item count

setSubTotal

public void setSubTotal(java.lang.String string)
Set the sub total

Parameters:
string - subtotal

setTax

public void setTax(java.lang.String string)
Set the tax

Parameters:
string - tax

setTotal

public void setTotal(java.lang.String string)
Set the total

Parameters:
string - total

setTotalCouponAmount

public void setTotalCouponAmount(java.lang.String string)
Set the total coupon amount

Parameters:
string - coupon amount