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 | |
|
16 | |
|
17 | |
|
18 | |
public class CreditProfileTO implements Serializable |
19 | |
{ |
20 | |
|
21 | |
|
22 | |
|
23 | |
private static final long serialVersionUID = 629990262350300037L; |
24 | |
|
25 | |
public static final int CREDIT_NOT_AUTHORISED = -1; |
26 | |
public static final int CREDIT_AUTHORISED = 1; |
27 | |
public static final int CREDIT_LIMIT = 1000; |
28 | |
|
29 | |
private CustomerTO customerTO; |
30 | |
private int creditScore; |
31 | |
private int creditAuthorisedStatus; |
32 | |
private boolean valid; |
33 | |
|
34 | |
public CreditProfileTO() |
35 | |
{ |
36 | 0 | super(); |
37 | 0 | } |
38 | |
|
39 | |
public CreditProfileTO(CustomerTO customerTO) |
40 | 0 | { |
41 | 0 | this.customerTO = customerTO; |
42 | |
|
43 | 0 | } |
44 | |
|
45 | |
public CustomerTO getCustomer() |
46 | |
{ |
47 | 0 | return customerTO; |
48 | |
} |
49 | |
|
50 | |
public void setCustomer(CustomerTO customerTO) |
51 | |
{ |
52 | 0 | this.customerTO = customerTO; |
53 | 0 | } |
54 | |
|
55 | |
public int getCreditScore() |
56 | |
{ |
57 | 0 | return creditScore; |
58 | |
} |
59 | |
|
60 | |
public void setCreditScore(int creditScore) |
61 | |
{ |
62 | 0 | this.creditScore = creditScore; |
63 | 0 | } |
64 | |
|
65 | |
public boolean isValid() |
66 | |
{ |
67 | 0 | return valid; |
68 | |
} |
69 | |
|
70 | |
public void setValid(boolean valid) |
71 | |
{ |
72 | 0 | this.valid = valid; |
73 | 0 | } |
74 | |
|
75 | |
public int getCreditAuthorisedStatus() |
76 | |
{ |
77 | 0 | return creditAuthorisedStatus; |
78 | |
} |
79 | |
|
80 | |
public void setCreditAuthorisedStatus(int creditAuthorisedStatus) |
81 | |
{ |
82 | 0 | this.creditAuthorisedStatus = creditAuthorisedStatus; |
83 | 0 | } |
84 | |
|
85 | |
} |