View Javadoc

1   /*
2    * $Id: CreditProfileTO.java 7976 2007-08-21 14:26:13Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.samples.voipservice.to;
12  
13  import java.io.Serializable;
14  
15  /**
16   * @author Binildas Christudas
17   */
18  public class CreditProfileTO implements Serializable
19  {
20      /**
21       * Serial version
22       */
23      private static final long serialVersionUID = 629990262350300037L;
24  
25      public static final int CREDIT_NOT_AUTHORISED = -1;
26      public static final int CREDIT_AUTHORISED = 1;
27      public static final int CREDIT_LIMIT = 1000;
28  
29      private CustomerTO customerTO;
30      private int creditScore;
31      private int creditAuthorisedStatus;
32      private boolean valid;
33  
34      public CreditProfileTO()
35      {
36          super();
37      }
38  
39      public CreditProfileTO(CustomerTO customerTO)
40      {
41          this.customerTO = customerTO;
42  
43      }
44  
45      public CustomerTO getCustomer()
46      {
47          return customerTO;
48      }
49  
50      public void setCustomer(CustomerTO customerTO)
51      {
52          this.customerTO = customerTO;
53      }
54  
55      public int getCreditScore()
56      {
57          return creditScore;
58      }
59  
60      public void setCreditScore(int creditScore)
61      {
62          this.creditScore = creditScore;
63      }
64  
65      public boolean isValid()
66      {
67          return valid;
68      }
69  
70      public void setValid(boolean valid)
71      {
72          this.valid = valid;
73      }
74  
75      public int getCreditAuthorisedStatus()
76      {
77          return creditAuthorisedStatus;
78      }
79  
80      public void setCreditAuthorisedStatus(int creditAuthorisedStatus)
81      {
82          this.creditAuthorisedStatus = creditAuthorisedStatus;
83      }
84  
85  }