View Javadoc

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