| 37244 |
amit |
1 |
package com.spice.profitmandi.service.catalog;
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* The five mandatory informational attributes captured when a model is marked
|
|
|
5 |
* as a hot deal. All fields are wrapper types so "not provided" is detectable —
|
|
|
6 |
* the form has no defaults and the service rejects any null.
|
|
|
7 |
*/
|
|
|
8 |
public class HotDealAttributes {
|
|
|
9 |
|
|
|
10 |
private Integer warrantyMonths;
|
|
|
11 |
private String condition;
|
|
|
12 |
private Boolean activated;
|
|
|
13 |
private Boolean financeMapping;
|
|
|
14 |
private Boolean affordability;
|
|
|
15 |
|
|
|
16 |
public HotDealAttributes() {
|
|
|
17 |
}
|
|
|
18 |
|
|
|
19 |
public HotDealAttributes(Integer warrantyMonths, String condition, Boolean activated,
|
|
|
20 |
Boolean financeMapping, Boolean affordability) {
|
|
|
21 |
this.warrantyMonths = warrantyMonths;
|
|
|
22 |
this.condition = condition;
|
|
|
23 |
this.activated = activated;
|
|
|
24 |
this.financeMapping = financeMapping;
|
|
|
25 |
this.affordability = affordability;
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
public Integer getWarrantyMonths() {
|
|
|
29 |
return warrantyMonths;
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
public void setWarrantyMonths(Integer warrantyMonths) {
|
|
|
33 |
this.warrantyMonths = warrantyMonths;
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
public String getCondition() {
|
|
|
37 |
return condition;
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
public void setCondition(String condition) {
|
|
|
41 |
this.condition = condition;
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
public Boolean getActivated() {
|
|
|
45 |
return activated;
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
public void setActivated(Boolean activated) {
|
|
|
49 |
this.activated = activated;
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
public Boolean getFinanceMapping() {
|
|
|
53 |
return financeMapping;
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
public void setFinanceMapping(Boolean financeMapping) {
|
|
|
57 |
this.financeMapping = financeMapping;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
public Boolean getAffordability() {
|
|
|
61 |
return affordability;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
public void setAffordability(Boolean affordability) {
|
|
|
65 |
this.affordability = affordability;
|
|
|
66 |
}
|
|
|
67 |
}
|