public class Assurance {
public enum AssuranceType {
- FACE_TO_FACE("Face to Face Meeting"), TOPUP("TOPUP"), TTP_ASSISTED("TTP-Assisted");
+ FACE_TO_FACE("Face to Face Meeting"), TOPUP("TOPUP"), TTP_ASSISTED("TTP-Assisted"), NUCLEUS("Nucleus Bonus");
private final String description;
private User from;
- private User to;
+ private Name to;
private String location;
private String date;
- public Assurance(int id, User from, User to, String location, String method, int points, String date) {
+ private CountryCode country;
+
+ public Assurance(int id, User from, Name to, String location, String method, int points, String date, CountryCode country) {
this.id = id;
this.from = from;
this.to = to;
this.method = method;
this.points = points;
this.date = date;
+ this.country = country;
}
return points;
}
- public User getTo() {
+ public Name getTo() {
return to;
}
return date;
}
+ public CountryCode getCountry() {
+ return country;
+ }
}