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 super();
34 }
35
36 public CreditProfileTO(CustomerTO customerTO)
37 {
38 this.customerTO = customerTO;
39
40 }
41
42 public CustomerTO getCustomer()
43 {
44 return customerTO;
45 }
46
47 public void setCustomer(CustomerTO customerTO)
48 {
49 this.customerTO = customerTO;
50 }
51
52 public int getCreditScore()
53 {
54 return creditScore;
55 }
56
57 public void setCreditScore(int creditScore)
58 {
59 this.creditScore = creditScore;
60 }
61
62 public boolean isValid()
63 {
64 return valid;
65 }
66
67 public void setValid(boolean valid)
68 {
69 this.valid = valid;
70 }
71
72 public int getCreditAuthorisedStatus()
73 {
74 return creditAuthorisedStatus;
75 }
76
77 public void setCreditAuthorisedStatus(int creditAuthorisedStatus)
78 {
79 this.creditAuthorisedStatus = creditAuthorisedStatus;
80 }
81
82 }