| Line 76... |
Line 76... |
| 76 |
private static final int FLIPKARTSOURCE = 8;
|
76 |
private static final int FLIPKARTSOURCE = 8;
|
| 77 |
private static final int HOMESHOP18SOURCE = 4;
|
77 |
private static final int HOMESHOP18SOURCE = 4;
|
| 78 |
|
78 |
|
| 79 |
private static final long DEFAULTQUANTIYSTEP = 1;
|
79 |
private static final long DEFAULTQUANTIYSTEP = 1;
|
| 80 |
private static final long DEFAULTMINBUYQTY =1;
|
80 |
private static final long DEFAULTMINBUYQTY =1;
|
| - |
|
81 |
private static final long DEFAULTMAXBUYQTY = 0;
|
| 81 |
|
82 |
|
| 82 |
List<Item> privateDealitemList;
|
83 |
List<Item> privateDealitemList;
|
| 83 |
|
84 |
|
| 84 |
static {
|
85 |
static {
|
| 85 |
try {
|
86 |
try {
|
| Line 673... |
Line 674... |
| 673 |
InventoryClient inventoryServiceClient = new InventoryClient();
|
674 |
InventoryClient inventoryServiceClient = new InventoryClient();
|
| 674 |
in.shop2020.model.v1.inventory.InventoryService.Client inventoryClient = inventoryServiceClient.getClient();
|
675 |
in.shop2020.model.v1.inventory.InventoryService.Client inventoryClient = inventoryServiceClient.getClient();
|
| 675 |
in.shop2020.model.v1.catalog.Item tItem = new in.shop2020.model.v1.catalog.Item();
|
676 |
in.shop2020.model.v1.catalog.Item tItem = new in.shop2020.model.v1.catalog.Item();
|
| 676 |
item.setQuantityStep(DEFAULTQUANTIYSTEP);
|
677 |
item.setQuantityStep(DEFAULTQUANTIYSTEP);
|
| 677 |
item.setMinimumBuyQuantity(DEFAULTMINBUYQTY);
|
678 |
item.setMinimumBuyQuantity(DEFAULTMINBUYQTY);
|
| - |
|
679 |
item.setMaximumBuyQuantity(DEFAULTMAXBUYQTY);
|
| 678 |
setThriftItemParams(tItem, item);
|
680 |
setThriftItemParams(tItem, item);
|
| 679 |
itemId = catalogClient.addItem(tItem);
|
681 |
itemId = catalogClient.addItem(tItem);
|
| 680 |
tItem.setId(itemId);
|
682 |
tItem.setId(itemId);
|
| 681 |
Client catalogClientProd = new CatalogClient("catalog_service_server_host_prod","catalog_service_server_port").getClient();
|
683 |
Client catalogClientProd = new CatalogClient("catalog_service_server_host_prod","catalog_service_server_port").getClient();
|
| 682 |
catalogClientProd.addItem(tItem);
|
684 |
catalogClientProd.addItem(tItem);
|
| Line 841... |
Line 843... |
| 841 |
|
843 |
|
| 842 |
tItem.setUpdatedOn(Calendar.getInstance().getTimeInMillis());
|
844 |
tItem.setUpdatedOn(Calendar.getInstance().getTimeInMillis());
|
| 843 |
tItem.setPackQuantity(item.getPackQuantity());
|
845 |
tItem.setPackQuantity(item.getPackQuantity());
|
| 844 |
tItem.setQuantityStep(item.getQuantityStep());
|
846 |
tItem.setQuantityStep(item.getQuantityStep());
|
| 845 |
tItem.setMinimumBuyQuantity(item.getMinimumBuyQuantity());
|
847 |
tItem.setMinimumBuyQuantity(item.getMinimumBuyQuantity());
|
| - |
|
848 |
tItem.setMaximumBuyQuantity(item.getMaximumBuyQuantity());
|
| 846 |
}
|
849 |
}
|
| 847 |
|
850 |
|
| 848 |
@Override
|
851 |
@Override
|
| 849 |
public void pauseItem(long itemId) {
|
852 |
public void pauseItem(long itemId) {
|
| 850 |
try {
|
853 |
try {
|
| Line 1001... |
Line 1004... |
| 1001 |
}
|
1004 |
}
|
| 1002 |
|
1005 |
|
| 1003 |
if(it.getSellingPrice() != null) {
|
1006 |
if(it.getSellingPrice() != null) {
|
| 1004 |
tItem.setSellingPrice(it.getSellingPrice());
|
1007 |
tItem.setSellingPrice(it.getSellingPrice());
|
| 1005 |
}
|
1008 |
}
|
| 1006 |
|
1009 |
|
| 1007 |
tItem.setPackQuantity(it.getPackQuantity());
|
1010 |
tItem.setPackQuantity(it.getPackQuantity());
|
| - |
|
1011 |
tItem.setQuantityStep(it.getQuantityStep());
|
| - |
|
1012 |
tItem.setMinimumBuyQuantity(it.getMinimumBuyQuantity());
|
| - |
|
1013 |
tItem.setMaximumBuyQuantity(it.getMaximumBuyQuantity());
|
| 1008 |
|
1014 |
|
| 1009 |
tItem.setBestDealText(it.getBestDealsText());
|
1015 |
tItem.setBestDealText(it.getBestDealsText());
|
| 1010 |
|
1016 |
|
| 1011 |
if (it.getItemStatusValue() == ItemStatus.ACTIVE.getValue() || it.getItemStatusValue() == ItemStatus.PAUSED.getValue()) {
|
1017 |
if (it.getItemStatusValue() == ItemStatus.ACTIVE.getValue() || it.getItemStatusValue() == ItemStatus.PAUSED.getValue()) {
|
| 1012 |
tItem.setItemStatus(status.findByValue(it.getItemStatusValue()));
|
1018 |
tItem.setItemStatus(status.findByValue(it.getItemStatusValue()));
|
| Line 1899... |
Line 1905... |
| 1899 |
saleHistory,
|
1905 |
saleHistory,
|
| 1900 |
freebieItemId,
|
1906 |
freebieItemId,
|
| 1901 |
thriftItem.getAsin(),
|
1907 |
thriftItem.getAsin(),
|
| 1902 |
thriftItem.getHoldInventory(),
|
1908 |
thriftItem.getHoldInventory(),
|
| 1903 |
thriftItem.getDefaultInventory(),stateNameVatPercentageMap,privateDeal, thriftItem.getPackQuantity(),
|
1909 |
thriftItem.getDefaultInventory(),stateNameVatPercentageMap,privateDeal, thriftItem.getPackQuantity(),
|
| 1904 |
thriftItem.getQuantityStep(),thriftItem.getMinimumBuyQuantity());
|
1910 |
thriftItem.getQuantityStep(),thriftItem.getMinimumBuyQuantity(),thriftItem.getMaximumBuyQuantity());
|
| 1905 |
return item;
|
1911 |
return item;
|
| 1906 |
}
|
1912 |
}
|
| 1907 |
|
1913 |
|
| 1908 |
@Override
|
1914 |
@Override
|
| 1909 |
public Map<Long, Double> getVatRates(long itemId, long categoryId) {
|
1915 |
public Map<Long, Double> getVatRates(long itemId, long categoryId) {
|