| Line 7... |
Line 7... |
| 7 |
from shop2020.thriftpy.model.v1.catalog.ttypes import Item, Category, \
|
7 |
from shop2020.thriftpy.model.v1.catalog.ttypes import Item, Category, \
|
| 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
|
| 13 |
from shop2020.utils.Utils import to_java_date
|
14 |
from shop2020.utils.Utils import to_java_date
|
| 14 |
|
15 |
|
| 15 |
def to_t_item(item):
|
16 |
def to_t_item(item):
|
| 16 |
t_item = Item()
|
17 |
t_item = Item()
|
| 17 |
if item is None:
|
18 |
if item is None:
|
| Line 182... |
Line 183... |
| 182 |
t_amazonlisted.fbaPriceLastUpdatedOnSc = to_java_date(Amazonlisted.fbaPriceLastUpdatedOnSc)
|
183 |
t_amazonlisted.fbaPriceLastUpdatedOnSc = to_java_date(Amazonlisted.fbaPriceLastUpdatedOnSc)
|
| 183 |
t_amazonlisted.suppressMfnPriceUpdate = Amazonlisted.suppressMfnPriceUpdate
|
184 |
t_amazonlisted.suppressMfnPriceUpdate = Amazonlisted.suppressMfnPriceUpdate
|
| 184 |
t_amazonlisted.suppressFbaPriceUpdate = Amazonlisted.suppressFbaPriceUpdate
|
185 |
t_amazonlisted.suppressFbaPriceUpdate = Amazonlisted.suppressFbaPriceUpdate
|
| 185 |
return t_amazonlisted
|
186 |
return t_amazonlisted
|
| 186 |
|
187 |
|
| - |
|
188 |
def to_t_ebay_item(ebay_item):
|
| - |
|
189 |
t_ebay_item = TEbayItem()
|
| - |
|
190 |
t_ebay_item.ebayListingId = ebay_item.ebayListingId
|
| - |
|
191 |
t_ebay_item.itemId = ebay_item.itemId
|
| - |
|
192 |
t_ebay_item.listingName = ebay_item.listingName
|
| - |
|
193 |
t_ebay_item.listingPrice = ebay_item.listingPrice
|
| - |
|
194 |
t_ebay_item.listingExpiryDate = to_java_date(ebay_item.listingExpiryDate)
|
| - |
|
195 |
t_ebay_item.subsidy = ebay_item.subsidy
|
| - |
|
196 |
return t_ebay_item
|
| 187 |
|
197 |
|