| Line 117... |
Line 117... |
| 117 |
client = CatalogClient().get_client()
|
117 |
client = CatalogClient().get_client()
|
| 118 |
fulfilmentWarehouseId, expected_delay, billingWarehouseId, sellingPrice = client.getItemAvailabilityAtLocation(itemId)
|
118 |
fulfilmentWarehouseId, expected_delay, billingWarehouseId, sellingPrice = client.getItemAvailabilityAtLocation(itemId)
|
| 119 |
except Exception as ex:
|
119 |
except Exception as ex:
|
| 120 |
raise LogisticsServiceException(103, "Unable to fetch inventory information about this item.")
|
120 |
raise LogisticsServiceException(103, "Unable to fetch inventory information about this item.")
|
| 121 |
|
121 |
|
| 122 |
delivery_estimate = get_logistics_estimation(destination_pin, sellingPrice, None, type)
|
122 |
delivery_estimate = get_logistics_estimation(destination_pin, sellingPrice, type)
|
| 123 |
if delivery_estimate is None:
|
123 |
if delivery_estimate is None:
|
| 124 |
raise LogisticsServiceException(104, "Unable to fetch delivery estimate for this pincode.")
|
124 |
raise LogisticsServiceException(104, "Unable to fetch delivery estimate for this pincode.")
|
| 125 |
|
125 |
|
| 126 |
|
126 |
|
| 127 |
## Commented below part as we have only Delhi as warehouse city. If we will add some more warehouses in different cities, this could be useful.
|
127 |
## Commented below part as we have only Delhi as warehouse city. If we will add some more warehouses in different cities, this could be useful.
|