| 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
|
12 |
to_t_amazonorder, to_t_storeOrderDetail, to_t_storeOrderCollection, to_t_storeOrderCollection
|
| 13 |
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
|
13 |
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
|
| 14 |
get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
|
14 |
get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
|
| 15 |
get_transaction, get_transactions_for_shopping_cart_id, \
|
15 |
get_transaction, get_transactions_for_shopping_cart_id, \
|
| 16 |
change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
|
16 |
change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
|
| 17 |
get_order, get_returnable_orders_for_customer, \
|
17 |
get_order, get_returnable_orders_for_customer, \
|
| Line 73... |
Line 73... |
| 73 |
update_hotspot_store_password, get_source_detail, get_all_circles, delete_frcs,\
|
73 |
update_hotspot_store_password, get_source_detail, get_all_circles, delete_frcs,\
|
| 74 |
topup_company_wallet, get_wallet_balance_for_company, \
|
74 |
topup_company_wallet, get_wallet_balance_for_company, \
|
| 75 |
add_amazon_order, update_amazon_order_status,get_amazon_order, get_amazon_orders_shipped, \
|
75 |
add_amazon_order, update_amazon_order_status,get_amazon_order, get_amazon_orders_shipped, \
|
| 76 |
get_amazon_orders_cancelled, get_orders_for_store, get_store_order_advance_invoice, add_frc, \
|
76 |
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, \
|
77 |
add_series, get_store_order_detail, save_store_order_detail, get_all_edc_banks, \
|
| 78 |
save_refund_amounts_for_store_order
|
78 |
save_refund_amounts_for_store_order, get_collections_for_store
|
| 79 |
|
79 |
|
| 80 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
80 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 81 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
81 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 82 |
DigitalTransaction
|
82 |
DigitalTransaction
|
| 83 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
83 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
| Line 2124... |
Line 2124... |
| 2124 |
try:
|
2124 |
try:
|
| 2125 |
return save_refund_amounts_for_store_order(orderId, storeId, cashRefundAmount, cardRefundAmount)
|
2125 |
return save_refund_amounts_for_store_order(orderId, storeId, cashRefundAmount, cardRefundAmount)
|
| 2126 |
finally:
|
2126 |
finally:
|
| 2127 |
self.closeSession()
|
2127 |
self.closeSession()
|
| 2128 |
|
2128 |
|
| - |
|
2129 |
def getCollectionsForStore(self, storeId, startDate, endDate):
|
| - |
|
2130 |
try:
|
| - |
|
2131 |
return [to_t_storeOrderCollection(collection) for collection in get_collections_for_store(storeId, startDate, endDate)]
|
| - |
|
2132 |
finally:
|
| - |
|
2133 |
self.closeSession()
|
| - |
|
2134 |
|
| - |
|
2135 |
|
| 2129 |
def closeSession(self, ):
|
2136 |
def closeSession(self, ):
|
| 2130 |
close_session()
|
2137 |
close_session()
|
| 2131 |
|
2138 |
|
| 2132 |
def isAlive(self, ):
|
2139 |
def isAlive(self, ):
|
| 2133 |
"""
|
2140 |
"""
|