| Line 67... |
Line 67... |
| 67 |
set_order_attributes, get_orders_collection_at_store, get_order_attribute_value, \
|
67 |
set_order_attributes, get_orders_collection_at_store, get_order_attribute_value, \
|
| 68 |
change_jacket_number, mark_order_as_rto_in_transit, get_recharge_order, \
|
68 |
change_jacket_number, mark_order_as_rto_in_transit, get_recharge_order, \
|
| 69 |
get_recharge_orders, update_recharge_order_status, activate_recharge_txn, \
|
69 |
get_recharge_orders, update_recharge_order_status, activate_recharge_txn, \
|
| 70 |
get_user_wallet, get_user_wallet_history, get_service_providers, \
|
70 |
get_user_wallet, get_user_wallet_history, get_service_providers, \
|
| 71 |
get_service_provider_for_device, get_recharge_orders_for_transaction, \
|
71 |
get_service_provider_for_device, get_recharge_orders_for_transaction, \
|
| 72 |
update_amount_in_wallet, get_recharge_orders_for_device, \
|
72 |
get_recharge_orders_for_device, \
|
| 73 |
get_recharge_orders_for_status, get_plans_for_operator, get_recharge_statistics, \
|
73 |
get_recharge_orders_for_status, get_plans_for_operator, get_recharge_statistics, \
|
| 74 |
validate_recharge, get_recharge_denominations, update_availability_status, \
|
74 |
validate_recharge, get_recharge_denominations, update_availability_status, \
|
| 75 |
get_misc_charges, get_available_emi_schemes, refund_recharge_order, \
|
75 |
get_misc_charges, get_available_emi_schemes, refund_recharge_order, \
|
| 76 |
create_recharge_transaction, get_physical_orders, get_document, retrieve_invoice, \
|
76 |
create_recharge_transaction, get_physical_orders, get_document, retrieve_invoice, \
|
| 77 |
change_shipping_address, get_recharge_transactions, get_recharge_transaction, \
|
77 |
change_shipping_address, get_recharge_transactions, get_recharge_transaction, \
|
| Line 1923... |
Line 1923... |
| 1923 |
return [plan.to_thrift_object() for plan in get_plans_for_operator(operatorId)]
|
1923 |
return [plan.to_thrift_object() for plan in get_plans_for_operator(operatorId)]
|
| 1924 |
finally:
|
1924 |
finally:
|
| 1925 |
self.closeSession()
|
1925 |
self.closeSession()
|
| 1926 |
|
1926 |
|
| 1927 |
|
1927 |
|
| 1928 |
def addAmountToWallet(self, userId, orderId, amount):
|
1928 |
# def addAmountToWallet(self, userId, orderId, amount):
|
| 1929 |
"""
|
1929 |
# """
|
| 1930 |
Parameters:
|
1930 |
# Parameters:
|
| 1931 |
- userId
|
1931 |
# - userId
|
| 1932 |
- orderId
|
1932 |
# - orderId
|
| 1933 |
- amount
|
1933 |
# - amount
|
| 1934 |
"""
|
1934 |
# """
|
| 1935 |
try:
|
1935 |
# try:
|
| 1936 |
update_amount_in_wallet(userId, amount, orderId, 0)
|
1936 |
# update_amount_in_wallet(userId, amount, orderId, 0)
|
| 1937 |
finally:
|
1937 |
# finally:
|
| 1938 |
self.closeSession()
|
1938 |
# self.closeSession()
|
| 1939 |
|
1939 |
|
| 1940 |
def getRechargeStatistics(self):
|
1940 |
def getRechargeStatistics(self):
|
| 1941 |
"""
|
1941 |
"""
|
| 1942 |
Parameters:
|
1942 |
Parameters:
|
| 1943 |
"""
|
1943 |
"""
|