All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.samples.voipservice.to.CreditProfileTO Maven / Gradle / Ivy

/*
 * $Id: CreditProfileTO.java 7963 2007-08-21 08:53:15Z dirk.olmes $
 * --------------------------------------------------------------------------------------
 * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */

package org.mule.samples.voipservice.to;

import java.io.Serializable;

public class CreditProfileTO implements Serializable
{
    /**
     * Serial version
     */
    private static final long serialVersionUID = 629990262350300037L;

    public static final int CREDIT_NOT_AUTHORISED = -1;
    public static final int CREDIT_AUTHORISED = 1;
    public static final int CREDIT_LIMIT = 1000;

    private CustomerTO customerTO;
    private int creditScore;
    private int creditAuthorisedStatus;
    private boolean valid;

    public CreditProfileTO()
    {
        super();
    }

    public CreditProfileTO(CustomerTO customerTO)
    {
        this.customerTO = customerTO;

    }

    public CustomerTO getCustomer()
    {
        return customerTO;
    }

    public void setCustomer(CustomerTO customerTO)
    {
        this.customerTO = customerTO;
    }

    public int getCreditScore()
    {
        return creditScore;
    }

    public void setCreditScore(int creditScore)
    {
        this.creditScore = creditScore;
    }

    public boolean isValid()
    {
        return valid;
    }

    public void setValid(boolean valid)
    {
        this.valid = valid;
    }

    public int getCreditAuthorisedStatus()
    {
        return creditAuthorisedStatus;
    }

    public void setCreditAuthorisedStatus(int creditAuthorisedStatus)
    {
        this.creditAuthorisedStatus = creditAuthorisedStatus;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy