Package com.skava.foundation.service
Interface StoreServicePropertyService
- All Known Implementing Classes:
StoreServicePropertyServiceImpl
public interface StoreServicePropertyService
This class provides methods for store service property related APIs. All APIs require accessToken to authenticate the request.
- Since:
- 8.0
- Version:
- 8.0
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionfindById
(long id) getStoreServiceProperties
(long businessid, long storeId) getStoreServiceProperty
(long businessid, long storeId, long id) replaceStoreServiceProperties
(long businessid, long storeId, List<StoreServicePropertyDTO> properties) void
updateCreatedBy
(List<StoreServicePropertyDTO> properties, String userId) updateStoreServiceProperty
(long businessid, long storeId, long id, StoreServicePropertyDTO dtoProperty) void
updateUpdatedBy
(List<StoreServicePropertyDTO> properties, String userId)
-
Method Details
-
replaceStoreServiceProperties
Response<List<StoreServicePropertyDTO>> replaceStoreServiceProperties(long businessid, long storeId, List<StoreServicePropertyDTO> properties) - Parameters:
businessid
- Unique ID of the entity StoreServiceProperty See alsoStoreServicePropertyDTO
storeId
- Unique ID of the Storeproperties
- list of StoreServicePropertyDTO objects to create- Returns:
- List of StoreServicePropertyDTO of saved StoreServiceProperty entity.
-
getStoreServiceProperties
- Parameters:
businessid
- Unique ID of the BusinessstoreId
- Unique ID of the Store- Returns:
- List of StoreServicePropertyDTO for the Business ID and Store ID.
-
getStoreServiceProperty
- Parameters:
businessid
- Unique ID of the BusinessstoreId
- storeId Unique ID of the Storeid
- Unique ID of Store Service Property- Returns:
- instance of StoreServicePropertyDTO for the StoreServiceProperty ID.
-
updateStoreServiceProperty
Response<StoreServicePropertyDTO> updateStoreServiceProperty(long businessid, long storeId, long id, StoreServicePropertyDTO dtoProperty) - Parameters:
businessid
- Unique ID of the BusinessstoreId
- storeId Unique ID of the Storeid
- StoreServiceProperty ID.dtoProperty
- StoreServicePropertyDTO object for update.- Returns:
- StoreServicePropertyDTO object of saved StoreServiceProperty entity.
-
findById
- Parameters:
id
- StoreServiceProperty ID- Returns:
- StoreServiceProperty object if exists else it throws
BusinessNotFoundException
-
find
- Parameters:
id
- Unique ID StoreServicePropertyDTO.- Returns:
- StoreServicePropertyDTO object if exists else throws
BusinessNotFoundException
-
updateCreatedBy
- Parameters:
properties
- List ofStoreServiceProperty
objectuserId
- User id
-
updateUpdatedBy
- Parameters:
properties
- List ofStoreServiceProperty
objectuserId
- User id
-