1 10 11 package org.mule.samples.voipservice.to; 12 13 import java.io.Serializable ; 14 15 18 public class CreditProfileTO implements Serializable 19 { 20 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 super(); 37 } 38 39 public CreditProfileTO(CustomerTO customerTO) 40 { 41 this.customerTO = customerTO; 42 43 } 44 45 public CustomerTO getCustomer() 46 { 47 return customerTO; 48 } 49 50 public void setCustomer(CustomerTO customerTO) 51 { 52 this.customerTO = customerTO; 53 } 54 55 public int getCreditScore() 56 { 57 return creditScore; 58 } 59 60 public void setCreditScore(int creditScore) 61 { 62 this.creditScore = creditScore; 63 } 64 65 public boolean isValid() 66 { 67 return valid; 68 } 69 70 public void setValid(boolean valid) 71 { 72 this.valid = valid; 73 } 74 75 public int getCreditAuthorisedStatus() 76 { 77 return creditAuthorisedStatus; 78 } 79 80 public void setCreditAuthorisedStatus(int creditAuthorisedStatus) 81 { 82 this.creditAuthorisedStatus = creditAuthorisedStatus; 83 } 84 85 } 86 | Popular Tags |