Subversion Repositories SmartDukaan

Rev

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

Rev 6988 Rev 7027
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
77
 
78
 
78
 
79
 
79
 
80
 
80
class OrderServiceHandler:
81
class OrderServiceHandler:
81
    
82
    
Line 1896... Line 1897...
1896
        try:
1897
        try:
1897
            return retrieve_invoice(orderId)
1898
            return retrieve_invoice(orderId)
1898
        finally:
1899
        finally:
1899
            self.closeSession()
1900
            self.closeSession()
1900
    
1901
    
-
 
1902
    def receiveUpdatesForRedExpress(self, awbNumber):
-
 
1903
        try:
-
 
1904
            return RedExpressLogisticsReconciliation.get_updates_for_user(awbNumber)
-
 
1905
        finally:
-
 
1906
            self.closeSession()
-
 
1907
    
1901
    def changeShippingAddress(self, orderId, line1, line2, city, state, pin):
1908
    def changeShippingAddress(self, orderId, line1, line2, city, state, pin):
1902
        try:
1909
        try:
1903
            return change_shipping_address(orderId, line1, line2, city, state, pin)
1910
            return change_shipping_address(orderId, line1, line2, city, state, pin)
1904
        finally:
1911
        finally:
1905
            self.closeSession()
1912
            self.closeSession()