Subversion Repositories SmartDukaan

Rev

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

Rev 7027 Rev 7032
Line 2... Line 2...
2
Created on 29-Mar-2010
2
Created on 29-Mar-2010
3
 
3
 
4
@author: ashish
4
@author: ashish
5
'''
5
'''
6
from elixir import session
6
from elixir import session
7
from shop2020.model.v1.order.impl import DataService
7
from shop2020.model.v1.order.impl import DataService, RedExpressUpdateService
8
from shop2020.model.v1.order.impl.Convertors import to_t_transaction, to_t_alert, \
8
from shop2020.model.v1.order.impl.Convertors import to_t_transaction, to_t_alert, \
9
    to_t_order, to_t_lineitem, to_t_payment_settlement, to_t_verification_agent, \
9
    to_t_order, to_t_lineitem, to_t_payment_settlement, to_t_verification_agent, \
10
    to_t_attribute
10
    to_t_attribute
11
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
11
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
12
    get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
12
    get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
Line 72... Line 72...
72
    MobileRechargeOrder
72
    MobileRechargeOrder
73
from shop2020.thriftpy.model.v1.order.ttypes import TransactionServiceException, \
73
from shop2020.thriftpy.model.v1.order.ttypes import TransactionServiceException, \
74
    RechargeType
74
    RechargeType
75
from shop2020.utils.Utils import to_py_date, get_fdate_tdate, to_java_date
75
from shop2020.utils.Utils import to_py_date, get_fdate_tdate, to_java_date
76
import datetime
76
import datetime
77
from shop2020.model.v1.order.script import RedExpressLogisticsReconciliation
-
 
78
 
77
 
79
 
78
 
80
 
79
 
81
class OrderServiceHandler:
80
class OrderServiceHandler:
82
    
81
    
Line 1899... Line 1898...
1899
        finally:
1898
        finally:
1900
            self.closeSession()
1899
            self.closeSession()
1901
    
1900
    
1902
    def receiveUpdatesForRedExpress(self, awbNumber):
1901
    def receiveUpdatesForRedExpress(self, awbNumber):
1903
        try:
1902
        try:
1904
            return RedExpressLogisticsReconciliation.get_updates_for_user(awbNumber)
1903
            return RedExpressUpdateService.get_updates_for_user(awbNumber)
1905
        finally:
1904
        finally:
1906
            self.closeSession()
1905
            self.closeSession()
1907
    
1906
    
1908
    def changeShippingAddress(self, orderId, line1, line2, city, state, pin):
1907
    def changeShippingAddress(self, orderId, line1, line2, city, state, pin):
1909
        try:
1908
        try: