| Line 97... |
Line 97... |
| 97 |
get_min_created_timestamp_undelivered_orders_for_source, \
|
97 |
get_min_created_timestamp_undelivered_orders_for_source, \
|
| 98 |
update_snapdeal_orders_status, update_flipkart_orders_status, \
|
98 |
update_snapdeal_orders_status, update_flipkart_orders_status, \
|
| 99 |
bulk_add_or_update_amazon_fba_sales_snapshot, get_created_orders_for_flipkart, \
|
99 |
bulk_add_or_update_amazon_fba_sales_snapshot, get_created_orders_for_flipkart, \
|
| 100 |
is_private_deal_transaction, change_easyship_mfn_order_txn_status, \
|
100 |
is_private_deal_transaction, change_easyship_mfn_order_txn_status, \
|
| 101 |
update_amazon_fba_order_returns, get_all_amazon_fba_order_returns, \
|
101 |
update_amazon_fba_order_returns, get_all_amazon_fba_order_returns, \
|
| - |
|
102 |
get_total_sale_returns_fba_skus_curent_time, \
|
| 102 |
get_total_sale_returns_fba_skus_curent_time,get_amazon_fba_sales_latest_snapshot_for_item_location_wise, \
|
103 |
get_amazon_fba_sales_latest_snapshot_for_item_location_wise, \
|
| 103 |
get_verification_pending_orders_fk, add_invoice_details_to_orders, get_fa_order_by_fk_order_id, \
|
104 |
get_verification_pending_orders_fk, add_invoice_details_to_orders, \
|
| 104 |
get_all_fa_orders_list, add_update_fa_orders_bulk, flipkart_fa_order_exists, get_recharge_order_status, \
|
105 |
get_fa_order_by_fk_order_id, get_all_fa_orders_list, add_update_fa_orders_bulk, \
|
| - |
|
106 |
flipkart_fa_order_exists, get_recharge_order_status, \
|
| 105 |
get_recharge_transaction_status, accept_package_orders, get_group_orders_by_logistics_txn_id, \
|
107 |
get_recharge_transaction_status, accept_package_orders, \
|
| - |
|
108 |
get_group_orders_by_logistics_txn_id, add_billing_details_for_groupped_orders, \
|
| 106 |
add_billing_details_for_groupped_orders, get_invoice_format_logistics_txn_id, homeshop_order_exists, \
|
109 |
get_invoice_format_logistics_txn_id, homeshop_order_exists, \
|
| 107 |
create_homeshop_order, get_homeshop_order
|
110 |
create_homeshop_order, get_homeshop_order
|
| 108 |
|
111 |
|
| 109 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
112 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 110 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
113 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 111 |
DigitalTransaction
|
114 |
DigitalTransaction
|
| Line 114... |
Line 117... |
| 114 |
from shop2020.model.v1.user.impl.Converters import to_t_address
|
117 |
from shop2020.model.v1.user.impl.Converters import to_t_address
|
| 115 |
from shop2020.thriftpy.model.v1.order.ttypes import TransactionServiceException, \
|
118 |
from shop2020.thriftpy.model.v1.order.ttypes import TransactionServiceException, \
|
| 116 |
RechargeType, AmazonOrdersToAcknowledge
|
119 |
RechargeType, AmazonOrdersToAcknowledge
|
| 117 |
from shop2020.utils.Utils import to_py_date, get_fdate_tdate, to_java_date
|
120 |
from shop2020.utils.Utils import to_py_date, get_fdate_tdate, to_java_date
|
| 118 |
import datetime
|
121 |
import datetime
|
| - |
|
122 |
import json
|
| - |
|
123 |
|
| 119 |
|
124 |
|
| 120 |
|
125 |
|
| 121 |
|
126 |
|
| 122 |
|
127 |
|
| 123 |
|
128 |
|
| Line 2595... |
Line 2600... |
| 2595 |
"""
|
2600 |
"""
|
| 2596 |
try:
|
2601 |
try:
|
| 2597 |
return is_alive()
|
2602 |
return is_alive()
|
| 2598 |
finally:
|
2603 |
finally:
|
| 2599 |
close_session()
|
2604 |
close_session()
|
| - |
|
2605 |
|
| - |
|
2606 |
def creditBatch(self, batchId, userAmount):
|
| - |
|
2607 |
for key, amount in json.loads(userAmount).iteritems():
|
| - |
|
2608 |
userId = int(key)
|
| - |
|
2609 |
print userId
|
| - |
|
2610 |
print amount
|
| - |
|
2611 |
|
| 2600 |
|
2612 |
|