Subversion Repositories SmartDukaan

Rev

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

Rev 7938 Rev 7967
Line 7... Line 7...
7
from shop2020.model.v1.order.impl import DataService, RedExpressUpdateService,\
7
from shop2020.model.v1.order.impl import DataService, RedExpressUpdateService,\
8
    RechargeService
8
    RechargeService
9
from shop2020.model.v1.order.impl.Convertors import to_t_transaction, to_t_alert, \
9
from shop2020.model.v1.order.impl.Convertors import to_t_transaction, to_t_alert, \
10
    to_t_order, to_t_lineitem, to_t_payment_settlement, to_t_verification_agent, \
10
    to_t_order, to_t_lineitem, to_t_payment_settlement, to_t_verification_agent, \
11
    to_t_attribute, to_t_rechargeTransaction, to_t_frc, to_t_hotspot, to_t_sourcedetail, \
11
    to_t_attribute, to_t_rechargeTransaction, to_t_frc, to_t_hotspot, to_t_sourcedetail, \
12
    to_t_amazonorder, to_t_storeOrderDetail, to_t_storeOrderCollection, to_t_storeOrderCollection
12
    to_t_amazonorder, to_t_storeOrderDetail, to_t_storeOrderCollection, \
-
 
13
    to_t_hotspotServiceMatrix
13
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
14
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
14
    get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
15
    get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
15
    get_transaction, get_transactions_for_shopping_cart_id, \
16
    get_transaction, get_transactions_for_shopping_cart_id, \
16
    change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
17
    change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
17
    get_order, get_returnable_orders_for_customer, \
18
    get_order, get_returnable_orders_for_customer, \
Line 76... Line 77...
76
    get_amazon_orders_cancelled, get_orders_for_store, get_store_order_advance_invoice, add_frc, \
77
    get_amazon_orders_cancelled, get_orders_for_store, get_store_order_advance_invoice, add_frc, \
77
    add_series, get_store_order_detail, save_store_order_detail, get_all_edc_banks, \
78
    add_series, get_store_order_detail, save_store_order_detail, get_all_edc_banks, \
78
    save_refund_amounts_for_store_order, get_collections_for_store,get_amazon_orders_to_acknowledge, \
79
    save_refund_amounts_for_store_order, get_collections_for_store,get_amazon_orders_to_acknowledge, \
79
    change_amazon_order_status,update_timestamp_for_amazon_order,update_source_detail_timestamp, \
80
    change_amazon_order_status,update_timestamp_for_amazon_order,update_source_detail_timestamp, \
80
    get_amazon_order_by_amazonorderid, get_orders_by_mobile_number, get_orders_by_amazon_id, \
81
    get_amazon_order_by_amazonorderid, get_orders_by_mobile_number, get_orders_by_amazon_id, \
81
    change_courier_provider, convert_store_to_normal, update_freebie_item, update_order_AWB
82
    change_courier_provider, convert_store_to_normal, update_freebie_item, update_order_AWB, \
-
 
83
    get_hotspot_service_matrices
-
 
84
 
82
 
85
 
83
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
86
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
84
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
87
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
85
    DigitalTransaction
88
    DigitalTransaction
86
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
89
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
Line 2210... Line 2213...
2210
        try:
2213
        try:
2211
            return to_t_order(update_freebie_item(orderId, newFreebieItemId))
2214
            return to_t_order(update_freebie_item(orderId, newFreebieItemId))
2212
        finally:
2215
        finally:
2213
            self.closeSession()
2216
            self.closeSession()
2214
            
2217
            
-
 
2218
    def getHotspotServiceMatrices(self):
-
 
2219
        try:
-
 
2220
            return [to_t_hotspotServiceMatrix(hotpotServiceMatrix) for hotpotServiceMatrix in get_hotspot_service_matrices()]
-
 
2221
        finally:
-
 
2222
            self.closeSession()
-
 
2223
            
2215
    def updateOrderAWB(self, orderId, airwayBillNo):
2224
    def updateOrderAWB(self, orderId, airwayBillNo):
2216
        try:
2225
        try:
2217
            return update_order_AWB(orderId, airwayBillNo)
2226
            return update_order_AWB(orderId, airwayBillNo)
2218
        finally:
2227
        finally:
2219
            close_session()
2228
            close_session()