| 37149 |
amit |
1 |
package com.spice.profitmandi.service.external;
|
|
|
2 |
|
|
|
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
4 |
import com.spice.profitmandi.dao.model.ContentPojo;
|
|
|
5 |
import com.spice.profitmandi.dao.model.external.CatalogContentModel;
|
|
|
6 |
import com.spice.profitmandi.dao.model.external.CatalogSkuModel;
|
| 37206 |
amit |
7 |
import com.spice.profitmandi.dao.model.external.ExternalCategoryModel;
|
| 37149 |
amit |
8 |
import com.spice.profitmandi.dao.model.external.ExternalPage;
|
|
|
9 |
import com.spice.profitmandi.dao.model.external.ExternalStoreModel;
|
|
|
10 |
import com.spice.profitmandi.dao.model.external.StoreSkuModel;
|
|
|
11 |
|
|
|
12 |
import java.util.Collection;
|
|
|
13 |
import java.util.List;
|
|
|
14 |
import java.util.Map;
|
|
|
15 |
|
|
|
16 |
/**
|
| 37206 |
amit |
17 |
* Backing service for the third-party /external/v1 APIs. Store AND category
|
|
|
18 |
* scoping are enforced here: every read is intersected with the calling
|
|
|
19 |
* client's mapped stores and exposed categories.
|
| 37149 |
amit |
20 |
*/
|
|
|
21 |
public interface ExternalApiService {
|
|
|
22 |
|
| 37206 |
amit |
23 |
List<ExternalCategoryModel> getCategoryMaster(int apiClientId);
|
| 37149 |
amit |
24 |
|
| 37206 |
amit |
25 |
ExternalPage<CatalogContentModel> getCatalogMaster(int apiClientId, Long updatedSince, int offset, int limit);
|
| 37149 |
amit |
26 |
|
| 37206 |
amit |
27 |
ExternalPage<CatalogSkuModel> getCatalogSkuMaster(int apiClientId, Long updatedSince, int offset, int limit);
|
|
|
28 |
|
| 37149 |
amit |
29 |
ExternalPage<StoreSkuModel> getSkuMaster(int apiClientId, Integer storeId, Long updatedSince, int offset,
|
|
|
30 |
int limit) throws ProfitMandiBusinessException;
|
|
|
31 |
|
| 37223 |
amit |
32 |
ExternalPage<ExternalStoreModel> getStoreMaster(int apiClientId, int offset, int limit);
|
| 37149 |
amit |
33 |
|
| 37206 |
amit |
34 |
Map<Long, ContentPojo> getCatalogsByIds(int apiClientId, List<Long> catalogIds);
|
| 37149 |
amit |
35 |
|
| 37206 |
amit |
36 |
List<CatalogSkuModel> getCatalogSkusByIds(int apiClientId, List<Integer> catalogIds);
|
| 37149 |
amit |
37 |
|
|
|
38 |
List<StoreSkuModel> getStock(int apiClientId, int storeId, Collection<Integer> itemIds)
|
|
|
39 |
throws ProfitMandiBusinessException;
|
| 37206 |
amit |
40 |
|
|
|
41 |
ExternalPage<StoreSkuModel> getStockPage(int apiClientId, int storeId, int offset, int limit)
|
|
|
42 |
throws ProfitMandiBusinessException;
|
| 37149 |
amit |
43 |
}
|