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 Details

    • replaceStoreServiceProperties

      Response<List<StoreServicePropertyDTO>> replaceStoreServiceProperties(long businessid, long storeId, List<StoreServicePropertyDTO> properties)
      Parameters:
      businessid - Unique ID of the entity StoreServiceProperty See also StoreServicePropertyDTO
      storeId - Unique ID of the Store
      properties - list of StoreServicePropertyDTO objects to create
      Returns:
      List of StoreServicePropertyDTO of saved StoreServiceProperty entity.
    • getStoreServiceProperties

      Response<List<StoreServicePropertyDTO>> getStoreServiceProperties(long businessid, long storeId)
      Parameters:
      businessid - Unique ID of the Business
      storeId - Unique ID of the Store
      Returns:
      List of StoreServicePropertyDTO for the Business ID and Store ID.
    • getStoreServiceProperty

      Response<StoreServicePropertyDTO> getStoreServiceProperty(long businessid, long storeId, long id)
      Parameters:
      businessid - Unique ID of the Business
      storeId - storeId Unique ID of the Store
      id - 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 Business
      storeId - storeId Unique ID of the Store
      id - StoreServiceProperty ID.
      dtoProperty - StoreServicePropertyDTO object for update.
      Returns:
      StoreServicePropertyDTO object of saved StoreServiceProperty entity.
    • findById

      StoreServiceProperty findById(long id)
      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

      void updateCreatedBy(List<StoreServicePropertyDTO> properties, String userId)
      Parameters:
      properties - List of StoreServiceProperty object
      userId - User id
    • updateUpdatedBy

      void updateUpdatedBy(List<StoreServicePropertyDTO> properties, String userId)
      Parameters:
      properties - List of StoreServiceProperty object
      userId - User id