| 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, MarketPlaceItemPrice as TMarketPlaceItemPrice
|
15 |
MarketplaceItems as TMarketplaceItems, MarketplacePercentage as TMarketplacePercentage, \
|
| - |
|
16 |
MarketPlaceItemPrice as TMarketPlaceItemPrice
|
| 16 |
from shop2020.utils.Utils import to_java_date
|
17 |
from shop2020.utils.Utils import to_java_date
|
| 17 |
|
18 |
|
| 18 |
def to_t_item(item):
|
19 |
def to_t_item(item):
|
| 19 |
t_item = Item()
|
20 |
t_item = Item()
|
| 20 |
if item is None:
|
21 |
if item is None:
|
| Line 333... |
Line 334... |
| 333 |
t_marketplace_priceitem.lastUpdatedOn = to_java_date(marketplaceitemprice.lastUpdatedOn)
|
334 |
t_marketplace_priceitem.lastUpdatedOn = to_java_date(marketplaceitemprice.lastUpdatedOn)
|
| 334 |
t_marketplace_priceitem.lastUpdatedOnMarketplace = to_java_date(marketplaceitemprice.lastUpdatedOnMarketplace)
|
335 |
t_marketplace_priceitem.lastUpdatedOnMarketplace = to_java_date(marketplaceitemprice.lastUpdatedOnMarketplace)
|
| 335 |
t_marketplace_priceitem.isPriceOverride = marketplaceitemprice.suppressPriceFeed
|
336 |
t_marketplace_priceitem.isPriceOverride = marketplaceitemprice.suppressPriceFeed
|
| 336 |
t_marketplace_priceitem.isListedOnSource = marketplaceitemprice.isListedOnSource
|
337 |
t_marketplace_priceitem.isListedOnSource = marketplaceitemprice.isListedOnSource
|
| 337 |
return t_marketplace_priceitem
|
338 |
return t_marketplace_priceitem
|
| - |
|
339 |
|
| - |
|
340 |
def to_t_marketplacepercentage(marketplacePercentage):
|
| - |
|
341 |
t_marketplacepercentage = TMarketplacePercentage()
|
| - |
|
342 |
if marketplacePercentage is None:
|
| - |
|
343 |
return t_marketplacepercentage
|
| - |
|
344 |
t_marketplacepercentage.source = marketplacePercentage.source
|
| - |
|
345 |
t_marketplacepercentage.emiFee = marketplacePercentage.emiFee
|
| - |
|
346 |
t_marketplacepercentage.closingFee = marketplacePercentage.closingFee
|
| - |
|
347 |
t_marketplacepercentage.returnProvision = marketplacePercentage.returnProvision
|
| - |
|
348 |
t_marketplacepercentage.commission = marketplacePercentage.commission
|
| - |
|
349 |
t_marketplacepercentage.serviceTax = marketplacePercentage.serviceTax
|
| - |
|
350 |
return t_marketplacepercentage
|
| - |
|
351 |
|
| 338 |
|
352 |
|
| 339 |
|
353 |
|
| 340 |
|
354 |
|
| 341 |
|
355 |
|
| 342 |
|
356 |
|