| 31007 |
amit.gupta |
1 |
package com.spice.profitmandi.service;
|
|
|
2 |
|
|
|
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
4 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
| 37822 |
amit |
5 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 31007 |
amit.gupta |
6 |
import org.springframework.stereotype.Service;
|
|
|
7 |
|
|
|
8 |
@Service
|
|
|
9 |
public interface SellerService {
|
|
|
10 |
|
|
|
11 |
CustomRetailer convertToSeller(String sellerPrefix) throws ProfitMandiBusinessException;
|
| 37652 |
amit |
12 |
|
|
|
13 |
/**
|
|
|
14 |
* Realign every active INTERNAL store on this warehouse with the warehouse's own address.
|
|
|
15 |
* Returns how many stores were updated.
|
|
|
16 |
*/
|
|
|
17 |
int syncInternalStoreAddresses(int warehouseId) throws ProfitMandiBusinessException;
|
| 37822 |
amit |
18 |
|
|
|
19 |
/**
|
|
|
20 |
* Realign one INTERNAL store with the address of the warehouse it is on - used when a store is moved.
|
|
|
21 |
*/
|
|
|
22 |
void syncInternalStoreAddress(FofoStore store) throws ProfitMandiBusinessException;
|
| 31007 |
amit.gupta |
23 |
}
|