Subversion Repositories SmartDukaan

Rev

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

Rev 7190 Rev 7263
Line 6... Line 6...
6
 
6
 
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
11
    FRC as T_FRC, HotspotStore as T_HotSpotStore, SourceDetail as T_SourceDetail
12
from shop2020.utils.Utils import to_java_date
12
from shop2020.utils.Utils import to_java_date
13
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
13
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
14
 
14
 
15
def to_t_transaction(transaction):
15
def to_t_transaction(transaction):
16
    t_transaction = T_Transaction()
16
    t_transaction = T_Transaction()
Line 240... Line 240...
240
        t_hotspot.salt = hotspot.salt
240
        t_hotspot.salt = hotspot.salt
241
        t_hotspot.password = hotspot.password
241
        t_hotspot.password = hotspot.password
242
        t_hotspot.isActive = hotspot.isActive
242
        t_hotspot.isActive = hotspot.isActive
243
        t_hotspot.circleId = hotspot.circleId
243
        t_hotspot.circleId = hotspot.circleId
244
        t_hotspot.email = hotspot.email
244
        t_hotspot.email = hotspot.email
245
    return t_hotspot
-
 
246
245
    return t_hotspot
-
 
246
 
-
 
247
def to_t_sourcedetail(detail):
-
 
248
    t_sourcedetail = T_SourceDetail()
-
 
249
    if detail:
-
 
250
        t_sourcedetail.id = detail.id
-
 
251
        t_sourcedetail.name = detail.name
-
 
252
        t_sourcedetail.email = detail.email
-
 
253
    return t_sourcedetail
-
 
254
247
255