1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.examples.loanbroker.messages; |
12 | |
|
13 | |
import java.io.Serializable; |
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
public class CustomerQuoteRequest implements Serializable |
19 | |
{ |
20 | |
|
21 | |
|
22 | |
|
23 | |
private static final long serialVersionUID = 6365612435470800746L; |
24 | |
|
25 | |
|
26 | |
private Customer customer; |
27 | |
|
28 | |
|
29 | |
private double loanAmount; |
30 | |
|
31 | |
|
32 | |
private int loanDuration; |
33 | |
|
34 | |
public CustomerQuoteRequest() |
35 | |
{ |
36 | 0 | super(); |
37 | 0 | } |
38 | |
|
39 | |
public CustomerQuoteRequest(Customer customer, double loanAmount, int loanDuration) |
40 | 0 | { |
41 | 0 | this.customer = customer; |
42 | 0 | this.loanAmount = loanAmount; |
43 | 0 | this.loanDuration = loanDuration; |
44 | 0 | } |
45 | |
|
46 | |
public Customer getCustomer() |
47 | |
{ |
48 | 0 | return customer; |
49 | |
} |
50 | |
|
51 | |
public void setCustomer(Customer customer) |
52 | |
{ |
53 | 0 | this.customer = customer; |
54 | 0 | } |
55 | |
|
56 | |
public double getLoanAmount() |
57 | |
{ |
58 | 0 | return loanAmount; |
59 | |
} |
60 | |
|
61 | |
public void setLoanAmount(double loanAmount) |
62 | |
{ |
63 | 0 | this.loanAmount = loanAmount; |
64 | 0 | } |
65 | |
|
66 | |
public int getLoanDuration() |
67 | |
{ |
68 | 0 | return loanDuration; |
69 | |
} |
70 | |
|
71 | |
public void setLoanDuration(int loanDuration) |
72 | |
{ |
73 | 0 | this.loanDuration = loanDuration; |
74 | 0 | } |
75 | |
} |