| Line 9... |
Line 9... |
| 9 |
ProductNotificationRequest as TProductNotificationRequest, \
|
9 |
ProductNotificationRequest as TProductNotificationRequest, \
|
| 10 |
ProductNotificationRequestCount as TProductNotificationRequestCount, \
|
10 |
ProductNotificationRequestCount as TProductNotificationRequestCount, \
|
| 11 |
VoucherItemMapping, EntityTag as TEntityTag, Banner as TBanner, BannerMap as TBannerMap, \
|
11 |
VoucherItemMapping, EntityTag as TEntityTag, Banner as TBanner, BannerMap as TBannerMap, \
|
| 12 |
Insurer as TInsurer, BrandInfo as TBrandInfo, Amazonlisted as TAmazonlisted, \
|
12 |
Insurer as TInsurer, BrandInfo as TBrandInfo, Amazonlisted as TAmazonlisted, \
|
| 13 |
EbayItem as TEbayItem, BannerUriMapping as TBannerUriMapping, Campaign as TCampaign, \
|
13 |
EbayItem as TEbayItem, BannerUriMapping as TBannerUriMapping, Campaign as TCampaign, \
|
| 14 |
SnapdealItem as TSnapdealItem
|
14 |
SnapdealItem as TSnapdealItem, SnapdealItemDetails as TSnapdealItemDetails
|
| 15 |
from shop2020.utils.Utils import to_java_date
|
15 |
from shop2020.utils.Utils import to_java_date
|
| 16 |
|
16 |
|
| 17 |
def to_t_item(item):
|
17 |
def to_t_item(item):
|
| 18 |
t_item = Item()
|
18 |
t_item = Item()
|
| 19 |
if item is None:
|
19 |
if item is None:
|
| Line 70... |
Line 70... |
| 70 |
t_item.activeOnStore = item.activeOnStore
|
70 |
t_item.activeOnStore = item.activeOnStore
|
| 71 |
t_item.showSellingPrice = item.showSellingPrice
|
71 |
t_item.showSellingPrice = item.showSellingPrice
|
| 72 |
t_item.preferredInsurer = item.preferredInsurer
|
72 |
t_item.preferredInsurer = item.preferredInsurer
|
| 73 |
t_item.holdInventory = item.holdInventory
|
73 |
t_item.holdInventory = item.holdInventory
|
| 74 |
t_item.defaultInventory = item.defaultInventory
|
74 |
t_item.defaultInventory = item.defaultInventory
|
| 75 |
t_item.isListedOnSnapdeal = item.isListedOnSnapdeal
|
- |
|
| 76 |
return t_item
|
75 |
return t_item
|
| 77 |
|
76 |
|
| 78 |
def to_t_insurer(insurer):
|
77 |
def to_t_insurer(insurer):
|
| 79 |
t_insurer = TInsurer()
|
78 |
t_insurer = TInsurer()
|
| 80 |
t_insurer.id = insurer.id
|
79 |
t_insurer.id = insurer.id
|
| Line 240... |
Line 239... |
| 240 |
return t_snapdeal_item
|
239 |
return t_snapdeal_item
|
| 241 |
t_snapdeal_item = TSnapdealItem()
|
240 |
t_snapdeal_item = TSnapdealItem()
|
| 242 |
t_snapdeal_item.item_id = snapdealitem[0].item_id
|
241 |
t_snapdeal_item.item_id = snapdealitem[0].item_id
|
| 243 |
t_snapdeal_item.warehouseId = snapdealitem[0].warehouseId
|
242 |
t_snapdeal_item.warehouseId = snapdealitem[0].warehouseId
|
| 244 |
t_snapdeal_item.exceptionPrice = snapdealitem[0].exceptionPrice
|
243 |
t_snapdeal_item.exceptionPrice = snapdealitem[0].exceptionPrice
|
| 245 |
t_snapdeal_item.isListedOnSnapdeal = snapdealitem[1].isListedOnSnapdeal
|
- |
|
| 246 |
return t_snapdeal_item
|
- |
|
| 247 |
|
244 |
t_snapdeal_item.transferPrice = snapdealitem[0].transferPrice
|
| - |
|
245 |
t_snapdeal_item.sellingPrice = snapdealitem[0].sellingPrice
|
| - |
|
246 |
t_snapdeal_item.courierCost = snapdealitem[0].courierCost
|
| - |
|
247 |
t_snapdeal_item.commission = snapdealitem[0].commission
|
| - |
|
248 |
t_snapdeal_item.serviceTax = snapdealitem[0].serviceTax
|
| - |
|
249 |
t_snapdeal_item.isListedOnSnapdeal = snapdealitem[0].isListedOnSnapdeal
|
| - |
|
250 |
t_snapdeal_item.suppressPriceFeed = snapdealitem[0].suppressPriceFeed
|
| - |
|
251 |
t_snapdeal_item.suppressInventoryFeed = snapdealitem[0].suppressInventoryFeed
|
| - |
|
252 |
return t_snapdeal_item
|
| - |
|
253 |
|
| - |
|
254 |
def to_t_snapdeal_item_details(snapdealitem):
|
| - |
|
255 |
if snapdealitem is None:
|
| - |
|
256 |
t_snapdeal_item_details = TSnapdealItemDetails()
|
| - |
|
257 |
return t_snapdeal_item_details
|
| - |
|
258 |
t_snapdeal_item_details = TSnapdealItemDetails()
|
| - |
|
259 |
t_snapdeal_item_details.item_id = snapdealitem[0].item_id
|
| - |
|
260 |
t_snapdeal_item_details.warehouseId = snapdealitem[0].warehouseId
|
| - |
|
261 |
t_snapdeal_item_details.exceptionPrice = snapdealitem[0].exceptionPrice
|
| - |
|
262 |
t_snapdeal_item_details.transferPrice = snapdealitem[0].transferPrice
|
| - |
|
263 |
t_snapdeal_item_details.sellingPrice = snapdealitem[0].sellingPrice
|
| - |
|
264 |
t_snapdeal_item_details.courierCost = snapdealitem[0].courierCost
|
| - |
|
265 |
t_snapdeal_item_details.commission = snapdealitem[0].commission
|
| - |
|
266 |
t_snapdeal_item_details.serviceTax = snapdealitem[0].serviceTax
|
| - |
|
267 |
t_snapdeal_item_details.brand = snapdealitem[1].brand
|
| - |
|
268 |
t_snapdeal_item_details.model_name = snapdealitem[1].model_name
|
| - |
|
269 |
t_snapdeal_item_details.model_number = snapdealitem[1].model_number
|
| - |
|
270 |
t_snapdeal_item_details.color = snapdealitem[1].color
|
| - |
|
271 |
t_snapdeal_item_details.risky = snapdealitem[1].risky
|
| - |
|
272 |
t_snapdeal_item_details.itemStatus = snapdealitem[1].status
|
| - |
|
273 |
t_snapdeal_item_details.isListedOnSnapdeal = snapdealitem[0].isListedOnSnapdeal
|
| - |
|
274 |
t_snapdeal_item_details.weight = snapdealitem[1].weight
|
| - |
|
275 |
t_snapdeal_item_details.mrp = snapdealitem[1].mrp
|
| - |
|
276 |
t_snapdeal_item_details.websiteSellingPrice = snapdealitem[1].sellingPrice
|
| - |
|
277 |
t_snapdeal_item_details.suppressPriceFeed = snapdealitem[0].suppressPriceFeed
|
| - |
|
278 |
t_snapdeal_item_details.suppressInventoryFeed = snapdealitem[0].suppressInventoryFeed
|
| - |
|
279 |
return t_snapdeal_item_details
|
| - |
|
280 |
|