| Line 7... |
Line 7... |
| 7 |
from shop2020.thriftpy.model.v1.order.ttypes import Transaction as T_Transaction,\
|
7 |
from shop2020.thriftpy.model.v1.order.ttypes import Transaction as T_Transaction,\
|
| 8 |
LineItem as T_LineItem, Order as T_Order, Alert as T_Alert, OrderStatus, DelayReason, \
|
8 |
LineItem as T_LineItem, Order as T_Order, Alert as T_Alert, OrderStatus, DelayReason, \
|
| 9 |
PaymentSettlement as T_PaymentSettlement, CODVerificationAgent as T_CODVerificationAgent, \
|
9 |
PaymentSettlement as T_PaymentSettlement, CODVerificationAgent as T_CODVerificationAgent, \
|
| 10 |
Attribute as T_Attribute, EmiScheme as T_EmiScheme, RechargeTransaction as T_rechargeTransaction, \
|
10 |
Attribute as T_Attribute, EmiScheme as T_EmiScheme, RechargeTransaction as T_rechargeTransaction, \
|
| 11 |
FRC as T_FRC, HotspotStore as T_HotSpotStore, SourceDetail as T_SourceDetail , \
|
11 |
FRC as T_FRC, HotspotStore as T_HotSpotStore, SourceDetail as T_SourceDetail , \
|
| 12 |
AmazonOrder as T_AmazonOrder, StoreOrderDetail as T_StoreOrderDetail, StoreOrderCollection as T_StoreOrderCollection
|
12 |
AmazonOrder as T_AmazonOrder, StoreOrderDetail as T_StoreOrderDetail, StoreOrderCollection as T_StoreOrderCollection, \
|
| - |
|
13 |
HotspotServiceMatrix as T_HotspotServiceMatrix
|
| 13 |
from shop2020.utils.Utils import to_java_date
|
14 |
from shop2020.utils.Utils import to_java_date
|
| 14 |
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
|
15 |
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
|
| 15 |
|
16 |
|
| 16 |
def to_t_transaction(transaction):
|
17 |
def to_t_transaction(transaction):
|
| 17 |
t_transaction = T_Transaction()
|
18 |
t_transaction = T_Transaction()
|
| Line 307... |
Line 308... |
| 307 |
t_storeOrderCollection.cash = storeOrderCollection.cash
|
308 |
t_storeOrderCollection.cash = storeOrderCollection.cash
|
| 308 |
t_storeOrderCollection.card = storeOrderCollection.card
|
309 |
t_storeOrderCollection.card = storeOrderCollection.card
|
| 309 |
t_storeOrderCollection.addedAt = to_java_date(storeOrderCollection.addedAt)
|
310 |
t_storeOrderCollection.addedAt = to_java_date(storeOrderCollection.addedAt)
|
| 310 |
t_storeOrderCollection.pushedAt = to_java_date(storeOrderCollection.pushedAt)
|
311 |
t_storeOrderCollection.pushedAt = to_java_date(storeOrderCollection.pushedAt)
|
| 311 |
t_storeOrderCollection.pushedToOcr = storeOrderCollection.pushedToOcr
|
312 |
t_storeOrderCollection.pushedToOcr = storeOrderCollection.pushedToOcr
|
| 312 |
return t_storeOrderCollection
|
- |
|
| 313 |
|
313 |
return t_storeOrderCollection
|
| - |
|
314 |
|
| - |
|
315 |
def to_t_hotspotServiceMatrix(hotspotServiceMatrix):
|
| - |
|
316 |
t_hotspotServiceMatrix = T_HotspotServiceMatrix()
|
| - |
|
317 |
if hotspotServiceMatrix:
|
| - |
|
318 |
t_hotspotServiceMatrix.storeId = hotspotServiceMatrix.storeId
|
| - |
|
319 |
t_hotspotServiceMatrix.hotspotId = hotspotServiceMatrix.hotspotId
|
| - |
|
320 |
t_hotspotServiceMatrix.rechargeService = hotspotServiceMatrix.rechargeService
|
| - |
|
321 |
t_hotspotServiceMatrix.storeWebsiteService = hotspotServiceMatrix.storeWebsiteService
|
| - |
|
322 |
t_hotspotServiceMatrix.pickupFromStoreService = hotspotServiceMatrix.pickupFromStoreService
|
| - |
|
323 |
return t_hotspotServiceMatrix
|
| - |
|
324 |
|
| - |
|
325 |
|
| 314 |
|
326 |
|