| Line 42... |
Line 42... |
| 42 |
import org.springframework.web.bind.annotation.RequestMapping;
|
42 |
import org.springframework.web.bind.annotation.RequestMapping;
|
| 43 |
import org.springframework.web.bind.annotation.RequestMethod;
|
43 |
import org.springframework.web.bind.annotation.RequestMethod;
|
| 44 |
import org.springframework.web.bind.annotation.RequestParam;
|
44 |
import org.springframework.web.bind.annotation.RequestParam;
|
| 45 |
|
45 |
|
| 46 |
import com.eclipsesource.json.JsonObject;
|
46 |
import com.eclipsesource.json.JsonObject;
|
| 47 |
import com.fasterxml.jackson.annotation.JsonProperty;
|
- |
|
| 48 |
import com.google.gson.Gson;
|
47 |
import com.google.gson.Gson;
|
| 49 |
import com.google.gson.reflect.TypeToken;
|
48 |
import com.google.gson.reflect.TypeToken;
|
| 50 |
import com.spice.profitmandi.common.enumuration.MessageType;
|
49 |
import com.spice.profitmandi.common.enumuration.MessageType;
|
| 51 |
import com.spice.profitmandi.common.enumuration.SchemeType;
|
50 |
import com.spice.profitmandi.common.enumuration.SchemeType;
|
| 52 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
51 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| Line 86... |
Line 85... |
| 86 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
85 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
| 87 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
86 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
| 88 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
87 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
| 89 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
88 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
| 90 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
89 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
| 91 |
import com.spice.profitmandi.dao.repository.user.UserRepository;
|
- |
|
| 92 |
import com.spice.profitmandi.dao.repository.dtr.WebListingRepository;
|
90 |
import com.spice.profitmandi.dao.repository.dtr.WebListingRepository;
|
| 93 |
import com.spice.profitmandi.dao.repository.dtr.WebOfferRepository;
|
91 |
import com.spice.profitmandi.dao.repository.dtr.WebOfferRepository;
|
| 94 |
import com.spice.profitmandi.dao.repository.dtr.WebProductListingRepository;
|
92 |
import com.spice.profitmandi.dao.repository.dtr.WebProductListingRepository;
|
| 95 |
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
|
93 |
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
|
| 96 |
import com.spice.profitmandi.dao.repository.fofo.CustomerAddressRepository;
|
94 |
import com.spice.profitmandi.dao.repository.fofo.CustomerAddressRepository;
|
| Line 100... |
Line 98... |
| 100 |
import com.spice.profitmandi.dao.repository.fofo.PendingOrderItemRepository;
|
98 |
import com.spice.profitmandi.dao.repository.fofo.PendingOrderItemRepository;
|
| 101 |
import com.spice.profitmandi.dao.repository.fofo.PendingOrderRepository;
|
99 |
import com.spice.profitmandi.dao.repository.fofo.PendingOrderRepository;
|
| 102 |
import com.spice.profitmandi.dao.repository.fofo.PendingOrderService;
|
100 |
import com.spice.profitmandi.dao.repository.fofo.PendingOrderService;
|
| 103 |
import com.spice.profitmandi.dao.repository.fofo.PincodePartnerRepository;
|
101 |
import com.spice.profitmandi.dao.repository.fofo.PincodePartnerRepository;
|
| 104 |
import com.spice.profitmandi.dao.repository.inventory.ItemAvailabilityCacheRepository;
|
102 |
import com.spice.profitmandi.dao.repository.inventory.ItemAvailabilityCacheRepository;
|
| - |
|
103 |
import com.spice.profitmandi.dao.repository.user.UserRepository;
|
| 105 |
import com.spice.profitmandi.service.CustomerService;
|
104 |
import com.spice.profitmandi.service.CustomerService;
|
| 106 |
import com.spice.profitmandi.service.EmailService;
|
105 |
import com.spice.profitmandi.service.EmailService;
|
| 107 |
import com.spice.profitmandi.service.NotificationService;
|
106 |
import com.spice.profitmandi.service.NotificationService;
|
| 108 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
107 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
| 109 |
import com.spice.profitmandi.service.inventory.AvailabilityModel;
|
108 |
import com.spice.profitmandi.service.inventory.AvailabilityModel;
|
| Line 112... |
Line 111... |
| 112 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
111 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
| 113 |
import com.spice.profitmandi.service.inventory.SaholicInventoryService;
|
112 |
import com.spice.profitmandi.service.inventory.SaholicInventoryService;
|
| 114 |
import com.spice.profitmandi.service.order.OrderService;
|
113 |
import com.spice.profitmandi.service.order.OrderService;
|
| 115 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
114 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
| 116 |
import com.spice.profitmandi.service.user.RetailerService;
|
115 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 117 |
|
- |
|
| 118 |
import com.spice.profitmandi.web.processor.OtpProcessor;
|
116 |
import com.spice.profitmandi.web.processor.OtpProcessor;
|
| 119 |
import com.spice.profitmandi.web.res.DealBrands;
|
117 |
import com.spice.profitmandi.web.res.DealBrands;
|
| 120 |
import com.spice.profitmandi.web.res.DealObjectResponse;
|
118 |
import com.spice.profitmandi.web.res.DealObjectResponse;
|
| 121 |
import com.spice.profitmandi.web.res.DealsResponse;
|
119 |
import com.spice.profitmandi.web.res.DealsResponse;
|
| 122 |
import com.spice.profitmandi.web.res.ValidateCartResponse;
|
120 |
import com.spice.profitmandi.web.res.ValidateCartResponse;
|
| Line 1114... |
Line 1112... |
| 1114 |
}
|
1112 |
}
|
| 1115 |
|
1113 |
|
| 1116 |
return responseSender.ok(true);
|
1114 |
return responseSender.ok(true);
|
| 1117 |
|
1115 |
|
| 1118 |
}
|
1116 |
}
|
| 1119 |
|
- |
|
| 1120 |
class UserModel {
|
- |
|
| 1121 |
@JsonProperty(required = true)
|
- |
|
| 1122 |
private String mobile;
|
- |
|
| 1123 |
@JsonProperty(required = true)
|
- |
|
| 1124 |
private String password;
|
- |
|
| 1125 |
@JsonProperty(required = false)
|
- |
|
| 1126 |
private String firstName;
|
- |
|
| 1127 |
@JsonProperty(required = false)
|
- |
|
| 1128 |
private String lastName;
|
- |
|
| 1129 |
@JsonProperty(required = false)
|
- |
|
| 1130 |
private String email;
|
- |
|
| 1131 |
|
- |
|
| 1132 |
@Override
|
- |
|
| 1133 |
public String toString() {
|
- |
|
| 1134 |
return "UserModel [mobile=" + mobile + ", password=" + password + "]";
|
- |
|
| 1135 |
}
|
- |
|
| 1136 |
|
- |
|
| 1137 |
public String getMobile() {
|
- |
|
| 1138 |
return mobile;
|
- |
|
| 1139 |
}
|
- |
|
| 1140 |
|
- |
|
| 1141 |
public void setMobile(String mobile) {
|
- |
|
| 1142 |
this.mobile = mobile;
|
- |
|
| 1143 |
}
|
- |
|
| 1144 |
|
- |
|
| 1145 |
public String getPassword() {
|
- |
|
| 1146 |
return password;
|
- |
|
| 1147 |
}
|
- |
|
| 1148 |
|
- |
|
| 1149 |
public void setPassword(String password) {
|
- |
|
| 1150 |
this.password = password;
|
- |
|
| 1151 |
}
|
- |
|
| 1152 |
|
- |
|
| 1153 |
public String getFirstName() {
|
- |
|
| 1154 |
return firstName;
|
- |
|
| 1155 |
}
|
- |
|
| 1156 |
|
- |
|
| 1157 |
public void setFirstName(String firstName) {
|
- |
|
| 1158 |
this.firstName = firstName;
|
- |
|
| 1159 |
}
|
- |
|
| 1160 |
|
- |
|
| 1161 |
public String getLastName() {
|
- |
|
| 1162 |
return lastName;
|
- |
|
| 1163 |
}
|
- |
|
| 1164 |
|
- |
|
| 1165 |
public void setLastName(String lastName) {
|
- |
|
| 1166 |
this.lastName = lastName;
|
- |
|
| 1167 |
}
|
- |
|
| 1168 |
|
- |
|
| 1169 |
public String getEmail() {
|
- |
|
| 1170 |
return email;
|
- |
|
| 1171 |
}
|
- |
|
| 1172 |
|
- |
|
| 1173 |
public void setEmail(String email) {
|
- |
|
| 1174 |
this.email = email;
|
- |
|
| 1175 |
}
|
- |
|
| 1176 |
|
- |
|
| 1177 |
}
|
- |
|
| 1178 |
|
- |
|
| 1179 |
class CustomerModel {
|
- |
|
| 1180 |
|
- |
|
| 1181 |
@JsonProperty(required = false)
|
- |
|
| 1182 |
private Customer customer;
|
- |
|
| 1183 |
@JsonProperty(required = true)
|
- |
|
| 1184 |
private boolean exists;
|
- |
|
| 1185 |
|
- |
|
| 1186 |
public CustomerModel(boolean exists, Customer customer) {
|
- |
|
| 1187 |
super();
|
- |
|
| 1188 |
this.customer = customer;
|
- |
|
| 1189 |
this.exists = exists;
|
- |
|
| 1190 |
}
|
- |
|
| 1191 |
|
- |
|
| 1192 |
@Override
|
- |
|
| 1193 |
public String toString() {
|
- |
|
| 1194 |
return "CustomerModel [customer=" + customer + ", exists=" + exists + "]";
|
- |
|
| 1195 |
}
|
- |
|
| 1196 |
|
- |
|
| 1197 |
public Customer getCustomer() {
|
- |
|
| 1198 |
return customer;
|
- |
|
| 1199 |
}
|
- |
|
| 1200 |
|
- |
|
| 1201 |
public void setCustomer(Customer customer) {
|
- |
|
| 1202 |
this.customer = customer;
|
- |
|
| 1203 |
}
|
- |
|
| 1204 |
|
- |
|
| 1205 |
public boolean isExists() {
|
- |
|
| 1206 |
return exists;
|
- |
|
| 1207 |
}
|
- |
|
| 1208 |
|
- |
|
| 1209 |
public void setExists(boolean exists) {
|
- |
|
| 1210 |
this.exists = exists;
|
- |
|
| 1211 |
}
|
- |
|
| 1212 |
}
|
- |
|
| 1213 |
}
|
1117 |
}
|
| 1214 |
|
1118 |
|