| Line 10... |
Line 10... |
| 10 |
from shop2020.model.v1.order.impl.Convertors import to_t_transaction, to_t_alert, \
|
10 |
from shop2020.model.v1.order.impl.Convertors import to_t_transaction, to_t_alert, \
|
| 11 |
to_t_order, to_t_lineitem, to_t_payment_settlement, to_t_verification_agent, \
|
11 |
to_t_order, to_t_lineitem, to_t_payment_settlement, to_t_verification_agent, \
|
| 12 |
to_t_attribute, to_t_rechargeTransaction, to_t_frc, to_t_hotspot, \
|
12 |
to_t_attribute, to_t_rechargeTransaction, to_t_frc, to_t_hotspot, \
|
| 13 |
to_t_sourcedetail, to_t_amazonorder, to_t_storeOrderDetail, \
|
13 |
to_t_sourcedetail, to_t_amazonorder, to_t_storeOrderDetail, \
|
| 14 |
to_t_storeOrderCollection, to_t_hotspotServiceMatrix, to_t_ebayOrder, \
|
14 |
to_t_storeOrderCollection, to_t_hotspotServiceMatrix, to_t_ebayOrder, \
|
| 15 |
to_t_amazonFbaSalesSnapshot, to_t_snapdealOrder, to_t_flipkartOrder
|
15 |
to_t_amazonFbaSalesSnapshot, to_t_snapdealOrder, to_t_flipkartOrder, to_t_amazonFbaOrderReturn
|
| 16 |
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
|
16 |
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
|
| 17 |
get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
|
17 |
get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
|
| 18 |
get_transaction, get_transactions_for_shopping_cart_id, \
|
18 |
get_transaction, get_transactions_for_shopping_cart_id, \
|
| 19 |
change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
|
19 |
change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
|
| 20 |
get_order, get_returnable_orders_for_customer, \
|
20 |
get_order, get_returnable_orders_for_customer, \
|
| Line 94... |
Line 94... |
| 94 |
get_flipkart_order_by_subOrderId, update_flipkart_order_dates_and_awb, \
|
94 |
get_flipkart_order_by_subOrderId, update_flipkart_order_dates_and_awb, \
|
| 95 |
get_order_for_airwayBillNo, get_orders_count_created_after_timestamp_for_source, \
|
95 |
get_order_for_airwayBillNo, get_orders_count_created_after_timestamp_for_source, \
|
| 96 |
get_min_created_timestamp_undelivered_orders_for_source, \
|
96 |
get_min_created_timestamp_undelivered_orders_for_source, \
|
| 97 |
update_snapdeal_orders_status, update_flipkart_orders_status, \
|
97 |
update_snapdeal_orders_status, update_flipkart_orders_status, \
|
| 98 |
bulk_add_or_update_amazon_fba_sales_snapshot, get_created_orders_for_flipkart, \
|
98 |
bulk_add_or_update_amazon_fba_sales_snapshot, get_created_orders_for_flipkart, \
|
| 99 |
is_private_deal_transaction
|
99 |
is_private_deal_transaction, change_easyship_mfn_order_txn_status, \
|
| - |
|
100 |
update_amazon_fba_order_returns, get_all_amazon_fba_order_returns, \
|
| - |
|
101 |
get_total_sale_returns_fba_skus_curent_time
|
| 100 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
102 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 101 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
103 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 102 |
DigitalTransaction
|
104 |
DigitalTransaction
|
| 103 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
105 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
| 104 |
MobileRechargeOrder
|
106 |
MobileRechargeOrder
|
| Line 2427... |
Line 2429... |
| 2427 |
except:
|
2429 |
except:
|
| 2428 |
return False
|
2430 |
return False
|
| 2429 |
finally:
|
2431 |
finally:
|
| 2430 |
close_session()
|
2432 |
close_session()
|
| 2431 |
|
2433 |
|
| - |
|
2434 |
def changeEasyshipMfnOrderTxnStatus(self, transactionId, status, description, pickUp, orderType, source, shipTimestamp, deliveryTimeStamp):
|
| - |
|
2435 |
try:
|
| - |
|
2436 |
return change_easyship_mfn_order_txn_status(transactionId, status, description, pickUp, orderType, source, shipTimestamp, deliveryTimeStamp)
|
| - |
|
2437 |
finally:
|
| - |
|
2438 |
close_session()
|
| - |
|
2439 |
|
| - |
|
2440 |
def updateAmazonFbaOrdersReturns(self, fbaOrderReturns):
|
| - |
|
2441 |
try:
|
| - |
|
2442 |
update_amazon_fba_order_returns(fbaOrderReturns)
|
| - |
|
2443 |
finally:
|
| - |
|
2444 |
close_session()
|
| - |
|
2445 |
|
| - |
|
2446 |
def getAllAmazonFbaOrderReturnsByCurrentTime(self, insertionTimestamp):
|
| - |
|
2447 |
try:
|
| - |
|
2448 |
ret_order_returns= []
|
| - |
|
2449 |
returns = get_all_amazon_fba_order_returns(insertionTimestamp)
|
| - |
|
2450 |
for order_return in returns:
|
| - |
|
2451 |
ret_order_returns.append(to_t_amazonFbaOrderReturn(order_return))
|
| - |
|
2452 |
return ret_order_returns
|
| - |
|
2453 |
finally:
|
| - |
|
2454 |
close_session()
|
| - |
|
2455 |
|
| - |
|
2456 |
def getTotalSaleReturnsFbaSkusCurentTime(self, insertionTimestamp):
|
| - |
|
2457 |
try:
|
| - |
|
2458 |
return get_total_sale_returns_fba_skus_curent_time(insertionTimestamp)
|
| - |
|
2459 |
finally:
|
| - |
|
2460 |
close_session()
|
| - |
|
2461 |
|
| 2432 |
def closeSession(self, ):
|
2462 |
def closeSession(self, ):
|
| 2433 |
close_session()
|
2463 |
close_session()
|
| 2434 |
|
2464 |
|
| 2435 |
def isAlive(self, ):
|
2465 |
def isAlive(self, ):
|
| 2436 |
"""
|
2466 |
"""
|