/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
 * Schema.
 * $Id$
 */

package nz.co.cks.tms.xml;

  //---------------------------------/
 //- Imported classes and packages -/
//---------------------------------/

import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import java.math.BigDecimal;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;

/**
 * Class TransactionAuthType.
 * 
 * @version $Revision$ $Date$
 */
public abstract class TransactionAuthType implements java.io.Serializable {


      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field _paymentAmount
     */
    private java.math.BigDecimal _paymentAmount;

    /**
     * Field _paymentCurrencyCode
     */
    private java.lang.String _paymentCurrencyCode;

    /**
     * Field _ncbId
     */
    private int _ncbId;

    /**
     * keeps track of state for field: _ncbId
     */
    private boolean _has_ncbId;

    /**
     * Field _cardInfo
     */
    private nz.co.cks.tms.xml.CardInfo _cardInfo;


      //----------------/
     //- Constructors -/
    //----------------/

    public TransactionAuthType() {
        super();
    } //-- nz.co.cks.tms.xml.TransactionAuthType()


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method getCardInfoReturns the value of field 'cardInfo'.
     * 
     * @return the value of field 'cardInfo'.
     */
    public nz.co.cks.tms.xml.CardInfo getCardInfo()
    {
        return this._cardInfo;
    } //-- nz.co.cks.tms.xml.CardInfo getCardInfo() 

    /**
     * Method getNcbIdReturns the value of field 'ncbId'.
     * 
     * @return the value of field 'ncbId'.
     */
    public int getNcbId()
    {
        return this._ncbId;
    } //-- int getNcbId() 

    /**
     * Method getPaymentAmountReturns the value of field
     * 'paymentAmount'.
     * 
     * @return the value of field 'paymentAmount'.
     */
    public java.math.BigDecimal getPaymentAmount()
    {
        return this._paymentAmount;
    } //-- java.math.BigDecimal getPaymentAmount() 

    /**
     * Method getPaymentCurrencyCodeReturns the value of field
     * 'paymentCurrencyCode'.
     * 
     * @return the value of field 'paymentCurrencyCode'.
     */
    public java.lang.String getPaymentCurrencyCode()
    {
        return this._paymentCurrencyCode;
    } //-- java.lang.String getPaymentCurrencyCode() 

    /**
     * Method hasNcbId
     */
    public boolean hasNcbId()
    {
        return this._has_ncbId;
    } //-- boolean hasNcbId() 

    /**
     * Method isValid
     */
    public boolean isValid()
    {
        try {
            validate();
        }
        catch (org.exolab.castor.xml.ValidationException vex) {
            return false;
        }
        return true;
    } //-- boolean isValid() 

    /**
     * Method setCardInfoSets the value of field 'cardInfo'.
     * 
     * @param cardInfo the value of field 'cardInfo'.
     */
    public void setCardInfo(nz.co.cks.tms.xml.CardInfo cardInfo)
    {
        this._cardInfo = cardInfo;
    } //-- void setCardInfo(nz.co.cks.tms.xml.CardInfo) 

    /**
     * Method setNcbIdSets the value of field 'ncbId'.
     * 
     * @param ncbId the value of field 'ncbId'.
     */
    public void setNcbId(int ncbId)
    {
        this._ncbId = ncbId;
        this._has_ncbId = true;
    } //-- void setNcbId(int) 

    /**
     * Method setPaymentAmountSets the value of field
     * 'paymentAmount'.
     * 
     * @param paymentAmount the value of field 'paymentAmount'.
     */
    public void setPaymentAmount(java.math.BigDecimal paymentAmount)
    {
        this._paymentAmount = paymentAmount;
    } //-- void setPaymentAmount(java.math.BigDecimal) 

    /**
     * Method setPaymentCurrencyCodeSets the value of field
     * 'paymentCurrencyCode'.
     * 
     * @param paymentCurrencyCode the value of field
     * 'paymentCurrencyCode'.
     */
    public void setPaymentCurrencyCode(java.lang.String paymentCurrencyCode)
    {
        this._paymentCurrencyCode = paymentCurrencyCode;
    } //-- void setPaymentCurrencyCode(java.lang.String) 

    /**
     * Method validate
     */
    public void validate()
        throws org.exolab.castor.xml.ValidationException
    {
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
        validator.validate(this);
    } //-- void validate() 

}
