| Line 10... |
Line 10... |
| 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, SnapdealItemDetails as TSnapdealItemDetails,ProductFeedSubmit as TProductFeedSubmit, \
|
14 |
SnapdealItem as TSnapdealItem, SnapdealItemDetails as TSnapdealItemDetails,ProductFeedSubmit as TProductFeedSubmit, \
|
| 15 |
MarketplaceItems as TMarketplaceItems
|
15 |
MarketplaceItems as TMarketplaceItems, MarketPlaceItemPrice as TMarketPlaceItemPrice
|
| 16 |
from shop2020.utils.Utils import to_java_date
|
16 |
from shop2020.utils.Utils import to_java_date
|
| 17 |
|
17 |
|
| 18 |
def to_t_item(item):
|
18 |
def to_t_item(item):
|
| 19 |
t_item = Item()
|
19 |
t_item = Item()
|
| 20 |
if item is None:
|
20 |
if item is None:
|
| Line 322... |
Line 322... |
| 322 |
t_marketplace_item.currentTp = marketplaceItem.currentTp
|
322 |
t_marketplace_item.currentTp = marketplaceItem.currentTp
|
| 323 |
t_marketplace_item.minimumPossibleSp = marketplaceItem.minimumPossibleSp
|
323 |
t_marketplace_item.minimumPossibleSp = marketplaceItem.minimumPossibleSp
|
| 324 |
t_marketplace_item.minimumPossibleTp = marketplaceItem.minimumPossibleTp
|
324 |
t_marketplace_item.minimumPossibleTp = marketplaceItem.minimumPossibleTp
|
| 325 |
t_marketplace_item.lastCheckedTimestamp = to_java_date(marketplaceItem.lastCheckedTimestamp)
|
325 |
t_marketplace_item.lastCheckedTimestamp = to_java_date(marketplaceItem.lastCheckedTimestamp)
|
| 326 |
return t_marketplace_item
|
326 |
return t_marketplace_item
|
| 327 |
|
327 |
|
| - |
|
328 |
def to_t_marketplace_itemprice(marketplaceitemprice):
|
| - |
|
329 |
t_marketplace_priceitem = TMarketPlaceItemPrice()
|
| - |
|
330 |
t_marketplace_priceitem.item_id = marketplaceitemprice.item_id
|
| - |
|
331 |
t_marketplace_priceitem.source = marketplaceitemprice.source
|
| - |
|
332 |
t_marketplace_priceitem.sellingPrice = marketplaceitemprice.sellingPrice
|
| - |
|
333 |
t_marketplace_priceitem.lastUpdatedOn = to_java_date(marketplaceitemprice.lastUpdatedOn)
|
| - |
|
334 |
t_marketplace_priceitem.lastUpdatedOnMarketplace = to_java_date(marketplaceitemprice.lastUpdatedOnMarketplace)
|
| - |
|
335 |
t_marketplace_priceitem.isPriceOverride = marketplaceitemprice.suppressPriceFeed
|
| - |
|
336 |
t_marketplace_priceitem.isListedOnSource = marketplaceitemprice.isListedOnSource
|
| 328 |
|
337 |
return t_marketplace_priceitem
|
| 329 |
|
338 |
|
| 330 |
|
339 |
|
| 331 |
|
340 |
|
| 332 |
|
341 |
|
| 333 |
|
342 |
|