| Line 12... |
Line 12... |
| 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, 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 |
from shop2020.utils.Utils import to_java_date
|
19 |
from shop2020.utils.Utils import to_java_date
|
| 19 |
|
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:
|
| 24 |
return t_item
|
24 |
return t_item
|
| 25 |
t_item.id = item.id
|
25 |
t_item.id = item.id
|
| Line 508... |
Line 508... |
| 508 |
t_marketplace_history.toGroup = marketplaceHistory.toGroup
|
508 |
t_marketplace_history.toGroup = marketplaceHistory.toGroup
|
| 509 |
t_marketplace_history.decision = marketplaceHistory.decision
|
509 |
t_marketplace_history.decision = marketplaceHistory.decision
|
| 510 |
t_marketplace_history.reason = marketplaceHistory.reason
|
510 |
t_marketplace_history.reason = marketplaceHistory.reason
|
| 511 |
return t_marketplace_history
|
511 |
return t_marketplace_history
|
| 512 |
|
512 |
|
| - |
|
513 |
def to_t_private_deal(private_deal_item):
|
| - |
|
514 |
if private_deal_item is None:
|
| - |
|
515 |
t_private_deal_item = TPrivateDeal()
|
| 513 |
|
516 |
return t_private_deal_item
|
| - |
|
517 |
t_private_deal_item = TPrivateDeal()
|
| - |
|
518 |
t_private_deal_item.item_id = private_deal_item.item_id
|
| - |
|
519 |
t_private_deal_item.dealPrice = private_deal_item.dealPrice
|
| - |
|
520 |
t_private_deal_item.dealFreebieItemId = private_deal_item.dealFreebieItemId
|
| - |
|
521 |
t_private_deal_item.startDate = private_deal_item.startDate
|
| - |
|
522 |
t_private_deal_item.endDate = private_deal_item.endDate
|
| - |
|
523 |
t_private_deal_item.isDealTextIdentical = private_deal_item.isDealTextIdentical
|
| - |
|
524 |
t_private_deal_item.dealText = private_deal_item.dealText
|
| - |
|
525 |
t_private_deal_item.isCod = private_deal_item.isCod
|
| - |
|
526 |
t_private_deal_item.rank = private_deal_item.rank
|
| - |
|
527 |
return t_private_deal_item
|
| 514 |
|
528 |
|