| Line 11... |
Line 11... |
| 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, MarketplacePercentage as TMarketplacePercentage, \
|
15 |
MarketplaceItems as TMarketplaceItems, MarketplacePercentage as TMarketplacePercentage, \
|
| 16 |
MarketPlaceItemPrice as TMarketPlaceItemPrice
|
16 |
MarketPlaceItemPrice as TMarketPlaceItemPrice, FlipkartItem as TFlipkartItem
|
| 17 |
from shop2020.utils.Utils import to_java_date
|
17 |
from shop2020.utils.Utils import to_java_date
|
| 18 |
|
18 |
|
| 19 |
def to_t_item(item):
|
19 |
def to_t_item(item):
|
| 20 |
t_item = Item()
|
20 |
t_item = Item()
|
| 21 |
if item is None:
|
21 |
if item is None:
|
| Line 348... |
Line 348... |
| 348 |
t_marketplacepercentage.closingFee = marketplacePercentage.closingFee
|
348 |
t_marketplacepercentage.closingFee = marketplacePercentage.closingFee
|
| 349 |
t_marketplacepercentage.returnProvision = marketplacePercentage.returnProvision
|
349 |
t_marketplacepercentage.returnProvision = marketplacePercentage.returnProvision
|
| 350 |
t_marketplacepercentage.commission = marketplacePercentage.commission
|
350 |
t_marketplacepercentage.commission = marketplacePercentage.commission
|
| 351 |
t_marketplacepercentage.serviceTax = marketplacePercentage.serviceTax
|
351 |
t_marketplacepercentage.serviceTax = marketplacePercentage.serviceTax
|
| 352 |
return t_marketplacepercentage
|
352 |
return t_marketplacepercentage
|
| - |
|
353 |
|
| - |
|
354 |
def to_t_flipkart_item(flipkartItem):
|
| - |
|
355 |
t_flipkartitem = TFlipkartItem()
|
| - |
|
356 |
if flipkartItem is None:
|
| - |
|
357 |
return t_flipkartitem
|
| - |
|
358 |
t_flipkartitem.item_id = flipkartItem.item_id
|
| - |
|
359 |
t_flipkartitem.exceptionPrice = flipkartItem.exceptionPrice
|
| - |
|
360 |
t_flipkartitem.warehouseId = flipkartItem.warehouseId
|
| - |
|
361 |
t_flipkartitem.commissionValue = flipkartItem.commissionValue
|
| - |
|
362 |
t_flipkartitem.serviceTaxValue = flipkartItem.serviceTaxValue
|
| - |
|
363 |
t_flipkartitem.maxNlc = flipkartItem.maxNlc
|
| - |
|
364 |
t_flipkartitem.skuAtFlipkart = flipkartItem.skuAtFlipkart
|
| - |
|
365 |
t_flipkartitem.isListedOnFlipkart = flipkartItem.isListedOnFlipkart
|
| - |
|
366 |
t_flipkartitem.suppressPriceFeed = flipkartItem.suppressPriceFeed
|
| - |
|
367 |
t_flipkartitem.suppressInventoryFeed = flipkartItem.suppressInventoryFeed
|
| - |
|
368 |
t_flipkartitem.updatedOn = to_java_date(flipkartItem.updatedOn)
|
| - |
|
369 |
t_flipkartitem.updatedBy = flipkartItem.updatedBy
|
| - |
|
370 |
return t_flipkartitem
|
| - |
|
371 |
|
| - |
|
372 |
|
| - |
|
373 |
|
| 353 |
|
374 |
|
| 354 |
|
375 |
|
| 355 |
|
376 |
|
| 356 |
|
377 |
|
| 357 |
|
378 |
|