1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.samples.voipservice.to; |
12 | |
|
13 | |
import java.io.Serializable; |
14 | |
|
15 | |
public class CreditProfileTO implements Serializable |
16 | |
{ |
17 | |
|
18 | |
|
19 | |
|
20 | |
private static final long serialVersionUID = 629990262350300037L; |
21 | |
|
22 | |
public static final int CREDIT_NOT_AUTHORISED = -1; |
23 | |
public static final int CREDIT_AUTHORISED = 1; |
24 | |
public static final int CREDIT_LIMIT = 1000; |
25 | |
|
26 | |
private CustomerTO customerTO; |
27 | |
private int creditScore; |
28 | |
private int creditAuthorisedStatus; |
29 | |
private boolean valid; |
30 | |
|
31 | |
public CreditProfileTO() |
32 | |
{ |
33 | 0 | super(); |
34 | 0 | } |
35 | |
|
36 | |
public CreditProfileTO(CustomerTO customerTO) |
37 | 0 | { |
38 | 0 | this.customerTO = customerTO; |
39 | |
|
40 | 0 | } |
41 | |
|
42 | |
public CustomerTO getCustomer() |
43 | |
{ |
44 | 0 | return customerTO; |
45 | |
} |
46 | |
|
47 | |
public void setCustomer(CustomerTO customerTO) |
48 | |
{ |
49 | 0 | this.customerTO = customerTO; |
50 | 0 | } |
51 | |
|
52 | |
public int getCreditScore() |
53 | |
{ |
54 | 0 | return creditScore; |
55 | |
} |
56 | |
|
57 | |
public void setCreditScore(int creditScore) |
58 | |
{ |
59 | 0 | this.creditScore = creditScore; |
60 | 0 | } |
61 | |
|
62 | |
public boolean isValid() |
63 | |
{ |
64 | 0 | return valid; |
65 | |
} |
66 | |
|
67 | |
public void setValid(boolean valid) |
68 | |
{ |
69 | 0 | this.valid = valid; |
70 | 0 | } |
71 | |
|
72 | |
public int getCreditAuthorisedStatus() |
73 | |
{ |
74 | 0 | return creditAuthorisedStatus; |
75 | |
} |
76 | |
|
77 | |
public void setCreditAuthorisedStatus(int creditAuthorisedStatus) |
78 | |
{ |
79 | 0 | this.creditAuthorisedStatus = creditAuthorisedStatus; |
80 | 0 | } |
81 | |
|
82 | |
} |