| Line 13... |
Line 13... |
| 13 |
EbayItem as TEbayItem, BannerUriMapping as TBannerUriMapping, Campaign as TCampaign, \
|
13 |
EbayItem as TEbayItem, BannerUriMapping as TBannerUriMapping, Campaign as TCampaign, \
|
| 14 |
SnapdealItem as TSnapdealItem, SnapdealItemDetails as TSnapdealItemDetails,ProductFeedSubmit as TProductFeedSubmit, \
|
14 |
SnapdealItem as TSnapdealItem, SnapdealItemDetails as TSnapdealItemDetails,ProductFeedSubmit as TProductFeedSubmit, \
|
| 15 |
MarketplaceItems as TMarketplaceItems, MarketplacePercentage as TMarketplacePercentage, \
|
15 |
MarketplaceItems as TMarketplaceItems, MarketplacePercentage as TMarketplacePercentage, \
|
| 16 |
MarketPlaceItemPrice as TMarketPlaceItemPrice, FlipkartItem as TFlipkartItem,\
|
16 |
MarketPlaceItemPrice as TMarketPlaceItemPrice, FlipkartItem as TFlipkartItem,\
|
| 17 |
FlipkartItemDetails as TFlipkartItemDetails,MarketplaceHistory as TMarketplaceHistory,\
|
17 |
FlipkartItemDetails as TFlipkartItemDetails,MarketplaceHistory as TMarketplaceHistory,\
|
| 18 |
PrivateDeal as TPrivateDeal
|
18 |
PrivateDeal as TPrivateDeal, AmazonOutOfSync as TAmazonOutOfSync, PdPriceComp as TPdPriceComp
|
| 19 |
from shop2020.utils.Utils import to_java_date
|
19 |
from shop2020.utils.Utils import to_java_date
|
| 20 |
|
20 |
|
| 21 |
def to_t_item(item):
|
21 |
def to_t_item(item):
|
| 22 |
t_item = Item()
|
22 |
t_item = Item()
|
| 23 |
if item is None:
|
23 |
if item is None:
|
| Line 527... |
Line 527... |
| 527 |
t_private_deal_item.dealText = private_deal_item.dealText
|
527 |
t_private_deal_item.dealText = private_deal_item.dealText
|
| 528 |
t_private_deal_item.isCod = private_deal_item.isCod
|
528 |
t_private_deal_item.isCod = private_deal_item.isCod
|
| 529 |
t_private_deal_item.rank = private_deal_item.rank
|
529 |
t_private_deal_item.rank = private_deal_item.rank
|
| 530 |
t_private_deal_item.dealFreebieOption = private_deal_item.dealFreebieOption
|
530 |
t_private_deal_item.dealFreebieOption = private_deal_item.dealFreebieOption
|
| 531 |
t_private_deal_item.isActive = private_deal_item.isActive
|
531 |
t_private_deal_item.isActive = private_deal_item.isActive
|
| 532 |
return t_private_deal_item
|
- |
|
| 533 |
|
532 |
return t_private_deal_item
|
| - |
|
533 |
|
| - |
|
534 |
def to_t_amazonoutofsync(amazonOutOfSync):
|
| - |
|
535 |
t_amazonoutofsync = TAmazonOutOfSync()
|
| - |
|
536 |
if amazonOutOfSync is None:
|
| - |
|
537 |
return t_amazonoutofsync
|
| - |
|
538 |
else:
|
| - |
|
539 |
t_amazonoutofsync.item_id = amazonOutOfSync.item_id
|
| - |
|
540 |
t_amazonoutofsync.mfn = amazonOutOfSync.mfn
|
| - |
|
541 |
t_amazonoutofsync.fba = amazonOutOfSync.fba
|
| - |
|
542 |
t_amazonoutofsync.fbb = amazonOutOfSync.fbb
|
| - |
|
543 |
return t_amazonoutofsync
|
| - |
|
544 |
|
| - |
|
545 |
def to_t_private_deals_comparison(item):
|
| - |
|
546 |
xstr = lambda s: s or ""
|
| - |
|
547 |
t_pdcomp = TPdPriceComp()
|
| - |
|
548 |
pdComp = item[0]
|
| - |
|
549 |
catItem = item[1]
|
| - |
|
550 |
t_pdcomp.item_id = pdComp.item_id
|
| - |
|
551 |
t_pdcomp.dealPrice = pdComp.dealPrice
|
| - |
|
552 |
t_pdcomp.saholicPrice = pdComp.saholicPrice
|
| - |
|
553 |
t_pdcomp.sdPrice = pdComp.sdPrice
|
| - |
|
554 |
t_pdcomp.fkPrice = pdComp.fkPrice
|
| - |
|
555 |
t_pdcomp.amazonPrice = pdComp.amazonPrice
|
| - |
|
556 |
t_pdcomp.productName = xstr(catItem.brand)+" "+xstr(catItem.model_name)+" "+xstr(catItem.model_number)+" "+xstr(catItem.color)
|
| - |
|
557 |
return t_pdcomp
|
| - |
|
558 |
|
| - |
|
559 |
|