| Line 8... |
Line 8... |
| 8 |
SourceItemPricing, Source, ItemType, \
|
8 |
SourceItemPricing, Source, ItemType, \
|
| 9 |
ProductNotificationRequest as TProductNotificationRequest, \
|
9 |
ProductNotificationRequest as TProductNotificationRequest, \
|
| 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
|
| 14 |
from shop2020.utils.Utils import to_java_date
|
15 |
from shop2020.utils.Utils import to_java_date
|
| 15 |
|
16 |
|
| 16 |
def to_t_item(item):
|
17 |
def to_t_item(item):
|
| 17 |
t_item = Item()
|
18 |
t_item = Item()
|
| 18 |
if item is None:
|
19 |
if item is None:
|
| Line 227... |
Line 228... |
| 227 |
|
228 |
|
| 228 |
def to_t_brand_info(brand_info):
|
229 |
def to_t_brand_info(brand_info):
|
| 229 |
t_brand_info = TBrandInfo()
|
230 |
t_brand_info = TBrandInfo()
|
| 230 |
t_brand_info.name = brand_info.name
|
231 |
t_brand_info.name = brand_info.name
|
| 231 |
t_brand_info.serviceCenterLocatorUrl = brand_info.serviceCenterLocatorUrl
|
232 |
t_brand_info.serviceCenterLocatorUrl = brand_info.serviceCenterLocatorUrl
|
| 232 |
return t_brand_info
|
- |
|
| 233 |
|
233 |
return t_brand_info
|
| - |
|
234 |
|
| - |
|
235 |
def to_t_snapdeal_item(snapdealitem):
|
| - |
|
236 |
t_snapdeal_item = TSnapdealItem()
|
| - |
|
237 |
if snapdealitem is None:
|
| - |
|
238 |
return t_snapdeal_item
|
| - |
|
239 |
t_snapdeal_item.item_id = snapdealitem[0].item_id
|
| - |
|
240 |
t_snapdeal_item.warehouseId = snapdealitem[0].warehouseId
|
| - |
|
241 |
t_snapdeal_item.exceptionPrice = snapdealitem[0].exceptionPrice
|
| - |
|
242 |
t_snapdeal_item.isListedOnSnapdeal = snapdealitem[1]
|
| - |
|
243 |
return t_snapdeal_item
|
| - |
|
244 |
|