View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.example.loanbroker.messages;
8   
9   import java.io.Serializable;
10  
11  /**
12   * <code>CustomerQuoteRequest</code> is the request sent by the the LoanBroker
13   */
14  public class CustomerQuoteRequest implements Serializable
15  {
16      /**
17       * Serial version
18       */
19      private static final long serialVersionUID = 6365612435470800746L;
20  
21      /** The customer that requested the quote */
22      private Customer customer;
23  
24      /** The requested loan Amount */
25      private double loanAmount;
26  
27      /** the duration of the loan */
28      private int loanDuration;
29  
30      public CustomerQuoteRequest()
31      {
32          super();
33      }
34  
35      public CustomerQuoteRequest(Customer customer, double loanAmount, int loanDuration)
36      {
37          this.customer = customer;
38          this.loanAmount = loanAmount;
39          this.loanDuration = loanDuration;
40      }
41  
42      public Customer getCustomer()
43      {
44          return customer;
45      }
46  
47      public void setCustomer(Customer customer)
48      {
49          this.customer = customer;
50      }
51  
52      public double getLoanAmount()
53      {
54          return loanAmount;
55      }
56  
57      public void setLoanAmount(double loanAmount)
58      {
59          this.loanAmount = loanAmount;
60      }
61  
62      public int getLoanDuration()
63      {
64          return loanDuration;
65      }
66  
67      public void setLoanDuration(int loanDuration)
68      {
69          this.loanDuration = loanDuration;
70      }
71  }