| Line 5... |
Line 5... |
| 5 |
'''
|
5 |
'''
|
| 6 |
from elixir import session
|
6 |
from elixir import session
|
| 7 |
from shop2020.model.v1.order.impl import DataService, RedExpressUpdateService
|
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, to_t_rechargeTransaction, to_t_frc, to_t_hotspot
|
10 |
to_t_attribute, to_t_rechargeTransaction, to_t_frc, to_t_hotspot, to_t_sourcedetail
|
| 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, \
|
| 13 |
get_transaction, get_transactions_for_shopping_cart_id, \
|
13 |
get_transaction, get_transactions_for_shopping_cart_id, \
|
| 14 |
change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
|
14 |
change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
|
| 15 |
get_order, get_returnable_orders_for_customer, \
|
15 |
get_order, get_returnable_orders_for_customer, \
|
| Line 66... |
Line 66... |
| 66 |
get_misc_charges, get_available_emi_schemes, refund_recharge_order, \
|
66 |
get_misc_charges, get_available_emi_schemes, refund_recharge_order, \
|
| 67 |
create_recharge_transaction, get_physical_orders, get_document, retrieve_invoice, \
|
67 |
create_recharge_transaction, get_physical_orders, get_document, retrieve_invoice, \
|
| 68 |
change_shipping_address, get_recharge_transactions, get_recharge_transaction, \
|
68 |
change_shipping_address, get_recharge_transactions, get_recharge_transaction, \
|
| 69 |
get_frcs, get_hotspot_store, get_circle, retrieve_hotspot_recharge_invoice, \
|
69 |
get_frcs, get_hotspot_store, get_circle, retrieve_hotspot_recharge_invoice, \
|
| 70 |
get_recharge_trans, split_freebie_order, get_recharge_transactions_by_number, \
|
70 |
get_recharge_trans, split_freebie_order, get_recharge_transactions_by_number, \
|
| 71 |
update_hotspot_store_password
|
71 |
update_hotspot_store_password, get_source_detail
|
| 72 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
72 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 73 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
73 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 74 |
DigitalTransaction
|
74 |
DigitalTransaction
|
| 75 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
75 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
| 76 |
MobileRechargeOrder
|
76 |
MobileRechargeOrder
|
| Line 1979... |
Line 1979... |
| 1979 |
try:
|
1979 |
try:
|
| 1980 |
return update_hotspot_store_password(storeId, password)
|
1980 |
return update_hotspot_store_password(storeId, password)
|
| 1981 |
finally:
|
1981 |
finally:
|
| 1982 |
self.closeSession()
|
1982 |
self.closeSession()
|
| 1983 |
|
1983 |
|
| - |
|
1984 |
def getSourceDetail(self, source):
|
| - |
|
1985 |
try:
|
| - |
|
1986 |
return to_t_sourcedetail(get_source_detail(source))
|
| - |
|
1987 |
finally:
|
| - |
|
1988 |
self.closeSession()
|
| - |
|
1989 |
|
| - |
|
1990 |
|
| 1984 |
def closeSession(self, ):
|
1991 |
def closeSession(self, ):
|
| 1985 |
close_session()
|
1992 |
close_session()
|
| 1986 |
|
1993 |
|
| 1987 |
def isAlive(self, ):
|
1994 |
def isAlive(self, ):
|
| 1988 |
"""
|
1995 |
"""
|