| 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
|
10 |
to_t_attribute, to_t_rechargeTransaction, to_t_frc, to_t_hotspot
|
| 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 63... |
Line 63... |
| 63 |
update_amount_in_wallet, get_recharge_orders_for_device, \
|
63 |
update_amount_in_wallet, get_recharge_orders_for_device, \
|
| 64 |
get_recharge_orders_for_status, get_plans_for_operator, get_recharge_statistics, \
|
64 |
get_recharge_orders_for_status, get_plans_for_operator, get_recharge_statistics, \
|
| 65 |
validate_recharge, get_recharge_denominations, update_availability_status, \
|
65 |
validate_recharge, get_recharge_denominations, update_availability_status, \
|
| 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, get_frcs
|
68 |
change_shipping_address, get_recharge_transactions, get_recharge_transaction, get_frcs, \
|
| - |
|
69 |
get_hotspot_store, get_circle
|
| 69 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
70 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 70 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
71 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 71 |
DigitalTransaction
|
72 |
DigitalTransaction
|
| 72 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
73 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
| 73 |
MobileRechargeOrder
|
74 |
MobileRechargeOrder
|
| Line 1935... |
Line 1936... |
| 1935 |
try:
|
1936 |
try:
|
| 1936 |
return [to_t_frc(frc) for frc in get_frcs(circleId, operatorId)]
|
1937 |
return [to_t_frc(frc) for frc in get_frcs(circleId, operatorId)]
|
| 1937 |
finally:
|
1938 |
finally:
|
| 1938 |
self.closeSession()
|
1939 |
self.closeSession()
|
| 1939 |
|
1940 |
|
| - |
|
1941 |
def getHotspotStore(self, id, hotspotid):
|
| - |
|
1942 |
try:
|
| - |
|
1943 |
return to_t_hotspot(get_hotspot_store(id, hotspotid))
|
| - |
|
1944 |
finally:
|
| - |
|
1945 |
self.closeSession()
|
| - |
|
1946 |
|
| - |
|
1947 |
def getTelecomCircle(self, id, code):
|
| - |
|
1948 |
try:
|
| - |
|
1949 |
return get_circle(id, code).to_thrift_object()
|
| - |
|
1950 |
finally:
|
| - |
|
1951 |
self.closeSession()
|
| - |
|
1952 |
|
| 1940 |
def closeSession(self, ):
|
1953 |
def closeSession(self, ):
|
| 1941 |
close_session()
|
1954 |
close_session()
|
| 1942 |
|
1955 |
|
| 1943 |
def isAlive(self, ):
|
1956 |
def isAlive(self, ):
|
| 1944 |
"""
|
1957 |
"""
|