com.ecebs.rtd.enabler.types.itso
Class Amount

java.lang.Object
  extended by com.ecebs.rtd.enabler.types.itso.Amount
All Implemented Interfaces:
Serializable

public class Amount
extends Object
implements Serializable

Associated with an amount found within some ITSO data types

Author:
kyleb
See Also:
Serialized Form

Constructor Summary
Amount(byte mop, short vat, byte cc, int amount)
           
 
Method Summary
 int getAmount()
          Get the amount paid, in pence
 byte getCurrencyCode()
          Get the currency code
 ITSOCodeResolver.PaymentMeansCode getMethodOfPayment()
          Get the method of payment
 short getSalesTax()
          Get the amount of sales tax paid (in 0.01% increments)
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Amount

public Amount(byte mop,
              short vat,
              byte cc,
              int amount)
Parameters:
mop -
vat -
cc -
amount -
Method Detail

getMethodOfPayment

public ITSOCodeResolver.PaymentMeansCode getMethodOfPayment()
Get the method of payment

Returns:
the method of payment

getSalesTax

public short getSalesTax()
Get the amount of sales tax paid (in 0.01% increments)

Returns:
the sales tax paid

getCurrencyCode

public byte getCurrencyCode()
Get the currency code

Returns:
the currency code

getAmount

public int getAmount()
Get the amount paid, in pence

Returns:
the amount

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Ecebs Ltd. All Rights Reserved.