Subversion Repositories SmartDukaan

Rev

Rev 7967 | Rev 8247 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7967 Rev 8182
Line 8... Line 8...
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
    HotspotServiceMatrix as T_HotspotServiceMatrix, EbayOrder as T_EbayOrder
14
from shop2020.utils.Utils import to_java_date
14
from shop2020.utils.Utils import to_java_date
15
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
15
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
16
 
16
 
17
def to_t_transaction(transaction):
17
def to_t_transaction(transaction):
18
    t_transaction = T_Transaction()
18
    t_transaction = T_Transaction()
Line 319... Line 319...
319
        t_hotspotServiceMatrix.hotspotId = hotspotServiceMatrix.hotspotId
319
        t_hotspotServiceMatrix.hotspotId = hotspotServiceMatrix.hotspotId
320
        t_hotspotServiceMatrix.rechargeService = hotspotServiceMatrix.rechargeService
320
        t_hotspotServiceMatrix.rechargeService = hotspotServiceMatrix.rechargeService
321
        t_hotspotServiceMatrix.storeWebsiteService = hotspotServiceMatrix.storeWebsiteService
321
        t_hotspotServiceMatrix.storeWebsiteService = hotspotServiceMatrix.storeWebsiteService
322
        t_hotspotServiceMatrix.pickupFromStoreService = hotspotServiceMatrix.pickupFromStoreService
322
        t_hotspotServiceMatrix.pickupFromStoreService = hotspotServiceMatrix.pickupFromStoreService
323
    return t_hotspotServiceMatrix
323
    return t_hotspotServiceMatrix
-
 
324
 
-
 
325
def to_t_ebayOrder(ebayOrder):
-
 
326
    t_ebayOrder = T_EbayOrder()
-
 
327
    t_ebayOrder.orderId = ebayOrder.orderId
-
 
328
    t_ebayOrder.salesRecordNumber = ebayOrder.salesRecordNumber
-
 
329
    t_ebayOrder.paisaPayId = ebayOrder.paisaPayId
-
 
330
    t_ebayOrder.ebayListingId = ebayOrder.ebayListingId
-
 
331
    t_ebayOrder.subsidyAmount = ebayOrder.subsidyAmount
-
 
332
    t_ebayOrder.ebayTxnDate = to_java_date(ebayOrder.ebayTxnDate)
-
 
333
    t_ebayOrder.transactionId = ebayOrder.transactionId
-
 
334
    t_ebayOrder.listingName = ebayOrder.listingName
-
 
335
    t_ebayOrder.listingPrice = ebayOrder.listingPrice
-
 
336
    return t_ebayOrder 
324
    
337
    
325
338