| 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;
|
|
|
7 |
import com.spice.profitmandi.dao.model.external.ExternalPage;
|
|
|
8 |
import com.spice.profitmandi.dao.model.external.ExternalStoreModel;
|
|
|
9 |
import com.spice.profitmandi.dao.model.external.StoreSkuModel;
|
|
|
10 |
|
|
|
11 |
import java.util.Collection;
|
|
|
12 |
import java.util.List;
|
|
|
13 |
import java.util.Map;
|
|
|
14 |
|
|
|
15 |
/**
|
|
|
16 |
* Backing service for the third-party /external/v1 APIs. Store scoping is
|
|
|
17 |
* enforced here: every stock/store read is intersected with the calling
|
|
|
18 |
* client's mapped stores.
|
|
|
19 |
*/
|
|
|
20 |
public interface ExternalApiService {
|
|
|
21 |
|
|
|
22 |
ExternalPage<CatalogContentModel> getCatalogMaster(Long updatedSince, int offset, int limit);
|
|
|
23 |
|
|
|
24 |
ExternalPage<CatalogSkuModel> getCatalogSkuMaster(Long updatedSince, int offset, int limit);
|
|
|
25 |
|
|
|
26 |
ExternalPage<StoreSkuModel> getSkuMaster(int apiClientId, Integer storeId, Long updatedSince, int offset,
|
|
|
27 |
int limit) throws ProfitMandiBusinessException;
|
|
|
28 |
|
|
|
29 |
List<ExternalStoreModel> getStoreMaster(int apiClientId);
|
|
|
30 |
|
|
|
31 |
Map<Long, ContentPojo> getCatalogsByIds(List<Long> catalogIds);
|
|
|
32 |
|
|
|
33 |
List<CatalogSkuModel> getCatalogSkusByIds(List<Integer> catalogIds);
|
|
|
34 |
|
|
|
35 |
List<StoreSkuModel> getStock(int apiClientId, int storeId, Collection<Integer> itemIds)
|
|
|
36 |
throws ProfitMandiBusinessException;
|
|
|
37 |
}
|