Subversion Repositories SmartDukaan

Rev

Rev 37652 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.common.model.CustomRetailer;
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
import org.springframework.stereotype.Service;

@Service
public interface SellerService {

        CustomRetailer convertToSeller(String sellerPrefix) throws ProfitMandiBusinessException;

        /**
         * Realign every active INTERNAL store on this warehouse with the warehouse's own address.
         * Returns how many stores were updated.
         */
        int syncInternalStoreAddresses(int warehouseId) throws ProfitMandiBusinessException;

        /**
         * Realign one INTERNAL store with the address of the warehouse it is on - used when a store is moved.
         */
        void syncInternalStoreAddress(FofoStore store) throws ProfitMandiBusinessException;
}