View Javadoc

1   /*
2    * $Id: CustomerQuoteRequest.java 20321 2010-11-24 15:21:24Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.example.loanbroker.messages;
12  
13  import java.io.Serializable;
14  
15  /**
16   * <code>CustomerQuoteRequest</code> is the request sent by the the LoanBroker
17   */
18  public class CustomerQuoteRequest implements Serializable
19  {
20      /**
21       * Serial version
22       */
23      private static final long serialVersionUID = 6365612435470800746L;
24  
25      /** The customer that requested the quote */
26      private Customer customer;
27  
28      /** The requested loan Amount */
29      private double loanAmount;
30  
31      /** the duration of the loan */
32      private int loanDuration;
33  
34      public CustomerQuoteRequest()
35      {
36          super();
37      }
38  
39      public CustomerQuoteRequest(Customer customer, double loanAmount, int loanDuration)
40      {
41          this.customer = customer;
42          this.loanAmount = loanAmount;
43          this.loanDuration = loanDuration;
44      }
45  
46      public Customer getCustomer()
47      {
48          return customer;
49      }
50  
51      public void setCustomer(Customer customer)
52      {
53          this.customer = customer;
54      }
55  
56      public double getLoanAmount()
57      {
58          return loanAmount;
59      }
60  
61      public void setLoanAmount(double loanAmount)
62      {
63          this.loanAmount = loanAmount;
64      }
65  
66      public int getLoanDuration()
67      {
68          return loanDuration;
69      }
70  
71      public void setLoanDuration(int loanDuration)
72      {
73          this.loanDuration = loanDuration;
74      }
75  }