| 10689 |
manish.sha |
1 |
package in.shop2020.warehouse.domain;
|
|
|
2 |
|
|
|
3 |
import java.util.Date;
|
|
|
4 |
|
|
|
5 |
public class AmazonTransferredSkuDetail{
|
|
|
6 |
private long itemId;
|
|
|
7 |
private long purchaseId;
|
|
|
8 |
private Date purchaseDate;
|
|
|
9 |
private long quantity;
|
|
|
10 |
private double unitPrice;
|
| 12357 |
manish.sha |
11 |
private double nlc;
|
| 10689 |
manish.sha |
12 |
private String brand;
|
|
|
13 |
private String modelName;
|
|
|
14 |
private String modelNumber;
|
|
|
15 |
private String category;
|
|
|
16 |
private String color;
|
| 12357 |
manish.sha |
17 |
private String taxType;
|
| 10689 |
manish.sha |
18 |
|
|
|
19 |
public static AmazonTransferredSkuDetail create(in.shop2020.warehouse.AmazonTransferredSkuDetail thriftAmazonSkuDetail) {
|
|
|
20 |
AmazonTransferredSkuDetail amazonSkuDetail = new AmazonTransferredSkuDetail();
|
|
|
21 |
amazonSkuDetail.itemId = thriftAmazonSkuDetail.getItemId();
|
|
|
22 |
amazonSkuDetail.purchaseId = thriftAmazonSkuDetail.getPurchaseId();
|
|
|
23 |
amazonSkuDetail.purchaseDate = new Date(thriftAmazonSkuDetail.getPurchaseDate());
|
|
|
24 |
amazonSkuDetail.quantity = thriftAmazonSkuDetail.getQuantity();
|
|
|
25 |
amazonSkuDetail.unitPrice = thriftAmazonSkuDetail.getUnitPrice();
|
| 12357 |
manish.sha |
26 |
amazonSkuDetail.nlc = thriftAmazonSkuDetail.getNlc();
|
| 10689 |
manish.sha |
27 |
amazonSkuDetail.brand = thriftAmazonSkuDetail.getBrand();
|
|
|
28 |
if(thriftAmazonSkuDetail.isSetModelName()){
|
|
|
29 |
amazonSkuDetail.modelName = thriftAmazonSkuDetail.getModelName();
|
|
|
30 |
}
|
|
|
31 |
if(thriftAmazonSkuDetail.isSetModelNumber()){
|
|
|
32 |
amazonSkuDetail.modelNumber = thriftAmazonSkuDetail.getModelNumber();
|
|
|
33 |
}
|
|
|
34 |
amazonSkuDetail.category = thriftAmazonSkuDetail.getCategory();
|
|
|
35 |
amazonSkuDetail.color = thriftAmazonSkuDetail.getColor();
|
| 12357 |
manish.sha |
36 |
amazonSkuDetail.taxType = thriftAmazonSkuDetail.getTaxType();
|
| 10689 |
manish.sha |
37 |
return amazonSkuDetail;
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
public in.shop2020.warehouse.AmazonTransferredSkuDetail convert() {
|
|
|
42 |
in.shop2020.warehouse.AmazonTransferredSkuDetail thriftAmazonSkuDetail = new in.shop2020.warehouse.AmazonTransferredSkuDetail();
|
|
|
43 |
thriftAmazonSkuDetail.setItemId(itemId);
|
|
|
44 |
thriftAmazonSkuDetail.setPurchaseId(purchaseId);
|
|
|
45 |
if(purchaseDate!=null){
|
|
|
46 |
thriftAmazonSkuDetail.setPurchaseDate(purchaseDate.getTime());
|
|
|
47 |
}
|
|
|
48 |
thriftAmazonSkuDetail.setQuantity(quantity);
|
|
|
49 |
thriftAmazonSkuDetail.setUnitPrice(unitPrice);
|
| 12357 |
manish.sha |
50 |
thriftAmazonSkuDetail.setNlc(nlc);
|
| 10689 |
manish.sha |
51 |
thriftAmazonSkuDetail.setBrand(brand);
|
|
|
52 |
if(modelName!=null){
|
|
|
53 |
thriftAmazonSkuDetail.setModelName(modelName);
|
|
|
54 |
}
|
|
|
55 |
if(modelNumber!=null){
|
|
|
56 |
thriftAmazonSkuDetail.setModelNumber(modelNumber);
|
|
|
57 |
}
|
|
|
58 |
thriftAmazonSkuDetail.setCategory(category);
|
|
|
59 |
thriftAmazonSkuDetail.setColor(color);
|
| 12357 |
manish.sha |
60 |
thriftAmazonSkuDetail.setTaxType(taxType);
|
| 10689 |
manish.sha |
61 |
return thriftAmazonSkuDetail;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
public long getItemId() {
|
|
|
65 |
return itemId;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
public void setItemId(long itemId) {
|
|
|
69 |
this.itemId = itemId;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
public long getPurchaseId() {
|
|
|
73 |
return purchaseId;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
public void setPurchaseId(long purchaseId) {
|
|
|
77 |
this.purchaseId = purchaseId;
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
public Date getPurchaseDate() {
|
|
|
81 |
return purchaseDate;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
public void setPurchaseDate(Date purchaseDate) {
|
|
|
85 |
this.purchaseDate = purchaseDate;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
public long getQuantity() {
|
|
|
89 |
return quantity;
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
public void setQuantity(long quantity) {
|
|
|
93 |
this.quantity = quantity;
|
|
|
94 |
}
|
|
|
95 |
|
|
|
96 |
public double getUnitPrice() {
|
|
|
97 |
return unitPrice;
|
|
|
98 |
}
|
|
|
99 |
|
|
|
100 |
public void setUnitPrice(double unitPrice) {
|
|
|
101 |
this.unitPrice = unitPrice;
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
public String getBrand() {
|
|
|
105 |
return brand;
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
public void setBrand(String brand) {
|
|
|
110 |
this.brand = brand;
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
public String getModelName() {
|
|
|
115 |
return modelName;
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
public void setModelName(String modelName) {
|
|
|
120 |
this.modelName = modelName;
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
|
|
|
124 |
public String getModelNumber() {
|
|
|
125 |
return modelNumber;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
public void setModelNumber(String modelNumber) {
|
|
|
130 |
this.modelNumber = modelNumber;
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
public String getCategory() {
|
|
|
135 |
return category;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
public void setCategory(String category) {
|
|
|
140 |
this.category = category;
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
public String getColor() {
|
|
|
145 |
return color;
|
|
|
146 |
}
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
public void setColor(String color) {
|
|
|
150 |
this.color = color;
|
|
|
151 |
}
|
| 12357 |
manish.sha |
152 |
|
|
|
153 |
|
|
|
154 |
public double getNlc() {
|
|
|
155 |
return nlc;
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
public void setNlc(double nlc) {
|
|
|
160 |
this.nlc = nlc;
|
|
|
161 |
}
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
public String getTaxType() {
|
|
|
165 |
return taxType;
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
public void setTaxType(String taxType) {
|
|
|
170 |
this.taxType = taxType;
|
|
|
171 |
}
|
| 10689 |
manish.sha |
172 |
|
|
|
173 |
}
|