| 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
|
10 |
to_t_attribute, to_t_rechargeTransaction
|
| 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 62... |
Line 62... |
| 62 |
get_service_provider_for_device, get_recharge_orders_for_transaction, \
|
62 |
get_service_provider_for_device, get_recharge_orders_for_transaction, \
|
| 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 |
get_physical_orders, get_document, retrieve_invoice, change_shipping_address
|
67 |
create_recharge_transaction, get_physical_orders, get_document, retrieve_invoice, \
|
| - |
|
68 |
change_shipping_address
|
| 68 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
69 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 69 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
70 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 70 |
DigitalTransaction
|
71 |
DigitalTransaction
|
| 71 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
72 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
| 72 |
MobileRechargeOrder
|
73 |
MobileRechargeOrder
|
| Line 1908... |
Line 1909... |
| 1908 |
try:
|
1909 |
try:
|
| 1909 |
return change_shipping_address(orderId, line1, line2, city, state, pin)
|
1910 |
return change_shipping_address(orderId, line1, line2, city, state, pin)
|
| 1910 |
finally:
|
1911 |
finally:
|
| 1911 |
self.closeSession()
|
1912 |
self.closeSession()
|
| 1912 |
|
1913 |
|
| - |
|
1914 |
def createRechargeTransaction(self, t_rechargeTransaction):
|
| - |
|
1915 |
try:
|
| - |
|
1916 |
return to_t_rechargeTransaction(create_recharge_transaction(t_rechargeTransaction))
|
| - |
|
1917 |
finally:
|
| - |
|
1918 |
self.closeSession()
|
| - |
|
1919 |
|
| 1913 |
def closeSession(self, ):
|
1920 |
def closeSession(self, ):
|
| 1914 |
close_session()
|
1921 |
close_session()
|
| 1915 |
|
1922 |
|
| 1916 |
def isAlive(self, ):
|
1923 |
def isAlive(self, ):
|
| 1917 |
"""
|
1924 |
"""
|