| Line 80... |
Line 80... |
| 80 |
get_amazon_promotion, update_amazon_promotion, get_vat_rates, \
|
80 |
get_amazon_promotion, update_amazon_promotion, get_vat_rates, \
|
| 81 |
update_item_state_vat, mark_partially_active, get_ex_affiliate_item_info, \
|
81 |
update_item_state_vat, mark_partially_active, get_ex_affiliate_item_info, \
|
| 82 |
get_all_items_to_list_on_fbg, get_all_fbg_listed_items, check_services, \
|
82 |
get_all_items_to_list_on_fbg, get_all_fbg_listed_items, check_services, \
|
| 83 |
get_items, add_hs_item, get_hs_item, update_hs_item, get_pricing_for_dtr, \
|
83 |
get_items, add_hs_item, get_hs_item, update_hs_item, get_pricing_for_dtr, \
|
| 84 |
get_all_items_to_list_on_fbd, get_all_fbd_listed_items, \
|
84 |
get_all_items_to_list_on_fbd, get_all_fbd_listed_items, \
|
| 85 |
get_bulk_pricing_for_items, add_bulk_pricing_for_item, get_bulk_pricing_by_item_id, \
|
85 |
get_bulk_pricing_for_items, add_bulk_pricing_for_item, \
|
| - |
|
86 |
get_bulk_pricing_by_item_id, delete_bulk_pricing_for_item_by_id, \
|
| 86 |
delete_bulk_pricing_for_item_by_id , delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
|
87 |
delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
|
| 87 |
get_cart_by_value, update_item_pricing, bulk_update_catalog, get_warranty_info_for_item, \
|
88 |
get_cart_by_value, update_item_pricing, bulk_update_catalog, \
|
| 88 |
get_warranty_info_for_item_list
|
89 |
get_warranty_info_for_item, get_warranty_info_for_item_list, \
|
| - |
|
90 |
get_gst_rates_by_state, get_interstate_gst_rates, get_hsn_codes_by_category
|
| 89 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
|
91 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
|
| 90 |
CatalogServiceException
|
92 |
CatalogServiceException
|
| 91 |
from shop2020.utils.Utils import log_entry, to_py_date
|
93 |
from shop2020.utils.Utils import log_entry, to_py_date
|
| 92 |
import datetime
|
94 |
import datetime
|
| 93 |
|
95 |
|
| Line 1871... |
Line 1873... |
| 1871 |
def getWarrantyInfoForItemList(self, catalogItemIds, itemCondition):
|
1873 |
def getWarrantyInfoForItemList(self, catalogItemIds, itemCondition):
|
| 1872 |
try:
|
1874 |
try:
|
| 1873 |
return get_warranty_info_for_item_list(catalogItemIds, itemCondition)
|
1875 |
return get_warranty_info_for_item_list(catalogItemIds, itemCondition)
|
| 1874 |
finally:
|
1876 |
finally:
|
| 1875 |
close_session()
|
1877 |
close_session()
|
| - |
|
1878 |
|
| - |
|
1879 |
def getGstRatesByState(self, stateId):
|
| - |
|
1880 |
try:
|
| - |
|
1881 |
return get_gst_rates_by_state(stateId)
|
| - |
|
1882 |
finally:
|
| - |
|
1883 |
close_session()
|
| - |
|
1884 |
|
| - |
|
1885 |
def getInterStateGstRates(self,):
|
| - |
|
1886 |
try:
|
| - |
|
1887 |
return get_interstate_gst_rates()
|
| - |
|
1888 |
finally:
|
| - |
|
1889 |
close_session()
|
| - |
|
1890 |
|
| - |
|
1891 |
def getHsnCodesByCategory(self, categoryId):
|
| - |
|
1892 |
try:
|
| - |
|
1893 |
return get_hsn_codes_by_category(categoryId)
|
| - |
|
1894 |
finally:
|
| - |
|
1895 |
close_session()
|
| - |
|
1896 |
|
| - |
|
1897 |
|
| 1876 |
|
1898 |
|
| 1877 |
|
1899 |
|
| 1878 |
if __name__ == '__main__':
|
1900 |
if __name__ == '__main__':
|
| 1879 |
c = CatalogServiceHandler()
|
1901 |
c = CatalogServiceHandler()
|
| 1880 |
bulk_items= c.getBulkPricingForItems([21053,1000])
|
1902 |
bulk_items= c.getBulkPricingForItems([21053,1000])
|