| Line 5... |
Line 5... |
| 5 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthRequest;
|
5 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthRequest;
|
| 6 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse;
|
6 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse;
|
| 7 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse.NEXT;
|
7 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse.NEXT;
|
| 8 |
import in.shop2020.hotspot.dashbaord.shared.actions.BillingType;
|
8 |
import in.shop2020.hotspot.dashbaord.shared.actions.BillingType;
|
| 9 |
import in.shop2020.hotspot.dashbaord.shared.actions.UserType;
|
9 |
import in.shop2020.hotspot.dashbaord.shared.actions.UserType;
|
| 10 |
import in.shop2020.model.v1.catalog.Warehouse;
|
10 |
import in.shop2020.model.v1.inventory.Warehouse;
|
| 11 |
import in.shop2020.thrift.clients.CatalogClient;
|
11 |
import in.shop2020.thrift.clients.CatalogClient;
|
| 12 |
import in.shop2020.thrift.clients.HelperClient;
|
12 |
import in.shop2020.thrift.clients.HelperClient;
|
| 13 |
import in.shop2020.utils.DashboardUser;
|
13 |
import in.shop2020.utils.DashboardUser;
|
| 14 |
import in.shop2020.utils.HelperService.Client;
|
14 |
import in.shop2020.utils.HelperService.Client;
|
| 15 |
import in.shop2020.utils.HelperServiceException;
|
15 |
import in.shop2020.utils.HelperServiceException;
|
| Line 56... |
Line 56... |
| 56 |
status = true;
|
56 |
status = true;
|
| 57 |
nextScreen = NEXT.INBOX;
|
57 |
nextScreen = NEXT.INBOX;
|
| 58 |
|
58 |
|
| 59 |
warehouseId = dashboardUser.getWarehouseId();
|
59 |
warehouseId = dashboardUser.getWarehouseId();
|
| 60 |
CatalogClient csc = new CatalogClient();
|
60 |
CatalogClient csc = new CatalogClient();
|
| 61 |
in.shop2020.model.v1.catalog.InventoryService.Client iClient = csc.getClient();
|
61 |
in.shop2020.model.v1.catalog.CatalogService.Client iClient = csc.getClient();
|
| 62 |
Warehouse warehouse = iClient.getWarehouse(warehouseId);
|
62 |
Warehouse warehouse = iClient.getWarehouse(warehouseId);
|
| 63 |
switch(warehouse.getBillingType()){
|
63 |
switch(warehouse.getBillingType()){
|
| 64 |
case OURS:
|
64 |
case OURS:
|
| 65 |
billingType = BillingType.OURS;
|
65 |
billingType = BillingType.OURS;
|
| 66 |
break;
|
66 |
break;
|