| Line 6... |
Line 6... |
| 6 |
from shop2020.model.v1.catalog.impl.DataService import Insurer
|
6 |
from shop2020.model.v1.catalog.impl.DataService import Insurer
|
| 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, \
|
11 |
VoucherItemMapping, EntityTag as TEntityTag, Banner as TBanner, BannerMap as TBannerMap, \
|
| 12 |
BannerMap as TBannerMap, Insurer as TInsurer, BrandInfo as TBrandInfo
|
12 |
Insurer as TInsurer, BrandInfo as TBrandInfo, Amazonlisted as TAmazonlisted
|
| 13 |
from shop2020.utils.Utils import to_java_date
|
13 |
from shop2020.utils.Utils import to_java_date
|
| 14 |
|
14 |
|
| 15 |
def to_t_item(item):
|
15 |
def to_t_item(item):
|
| 16 |
t_item = Item()
|
16 |
t_item = Item()
|
| 17 |
if item is None:
|
17 |
if item is None:
|
| Line 155... |
Line 155... |
| 155 |
|
155 |
|
| 156 |
def to_t_brand_info(brand_info):
|
156 |
def to_t_brand_info(brand_info):
|
| 157 |
t_brand_info = TBrandInfo()
|
157 |
t_brand_info = TBrandInfo()
|
| 158 |
t_brand_info.name = brand_info.name
|
158 |
t_brand_info.name = brand_info.name
|
| 159 |
t_brand_info.serviceCenterLocatorUrl = brand_info.serviceCenterLocatorUrl
|
159 |
t_brand_info.serviceCenterLocatorUrl = brand_info.serviceCenterLocatorUrl
|
| 160 |
return t_brand_info
|
- |
|
| 161 |
|
160 |
return t_brand_info
|
| - |
|
161 |
|
| - |
|
162 |
def to_t_Amazonlisted(Amazonlisted):
|
| - |
|
163 |
t_amazonlisted = TAmazonlisted()
|
| - |
|
164 |
t_amazonlisted.asin = Amazonlisted.asin
|
| - |
|
165 |
t_amazonlisted.brand = Amazonlisted.brand
|
| - |
|
166 |
t_amazonlisted.itemid = Amazonlisted.itemId
|
| - |
|
167 |
t_amazonlisted.model = Amazonlisted.model
|
| - |
|
168 |
t_amazonlisted.manufacturer_name = Amazonlisted.manufacturer_name
|
| - |
|
169 |
t_amazonlisted.upc = Amazonlisted.upc
|
| - |
|
170 |
t_amazonlisted.part_number = Amazonlisted.part_number
|
| - |
|
171 |
t_amazonlisted.name = Amazonlisted.name
|
| - |
|
172 |
t_amazonlisted.ean = Amazonlisted.ean
|
| - |
|
173 |
t_amazonlisted.fbaPrice = Amazonlisted.fbaPrice
|
| - |
|
174 |
t_amazonlisted.sellingPrice = Amazonlisted.sellingPrice
|
| - |
|
175 |
t_amazonlisted.isFba = Amazonlisted.isFba
|
| - |
|
176 |
t_amazonlisted.isNonFba = Amazonlisted.isNonFba
|
| - |
|
177 |
t_amazonlisted.isInventoryOverride = Amazonlisted.isInventoryOverride
|
| - |
|
178 |
t_amazonlisted.color = Amazonlisted.color
|
| - |
|
179 |
t_amazonlisted.category = Amazonlisted.category
|
| - |
|
180 |
return t_amazonlisted
|
| - |
|
181 |
|
| 162 |
|
182 |
|