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