| Line 9... |
Line 9... |
| 9 |
from shop2020.model.v1.order.impl.Convertors import to_t_transaction, to_t_alert, \
|
9 |
from shop2020.model.v1.order.impl.Convertors import to_t_transaction, to_t_alert, \
|
| 10 |
to_t_order, to_t_lineitem, to_t_payment_settlement, to_t_verification_agent, \
|
10 |
to_t_order, to_t_lineitem, to_t_payment_settlement, to_t_verification_agent, \
|
| 11 |
to_t_attribute, to_t_rechargeTransaction, to_t_frc, to_t_hotspot, to_t_sourcedetail, \
|
11 |
to_t_attribute, to_t_rechargeTransaction, to_t_frc, to_t_hotspot, to_t_sourcedetail, \
|
| 12 |
to_t_amazonorder, to_t_storeOrderDetail, to_t_storeOrderCollection, \
|
12 |
to_t_amazonorder, to_t_storeOrderDetail, to_t_storeOrderCollection, \
|
| 13 |
to_t_hotspotServiceMatrix, to_t_ebayOrder, to_t_amazonFbaSalesSnapshot, \
|
13 |
to_t_hotspotServiceMatrix, to_t_ebayOrder, to_t_amazonFbaSalesSnapshot, \
|
| 14 |
to_t_snapdealOrder
|
14 |
to_t_snapdealOrder, to_t_flipkartOrder
|
| 15 |
|
15 |
|
| 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, \
|
| Line 86... |
Line 86... |
| 86 |
get_ebay_order_by_sales_rec_number, get_ebay_order_by_orderId, update_ebay_order, \
|
86 |
get_ebay_order_by_sales_rec_number, get_ebay_order_by_orderId, update_ebay_order, \
|
| 87 |
ebay_order_exists, update_order_for_ebay, get_ebay_order, split_ebay_order, \
|
87 |
ebay_order_exists, update_order_for_ebay, get_ebay_order, split_ebay_order, \
|
| 88 |
add_or_update_amazon_fba_sales_snapshot, get_amazon_fba_sales_snapshot_for_days, \
|
88 |
add_or_update_amazon_fba_sales_snapshot, get_amazon_fba_sales_snapshot_for_days, \
|
| 89 |
get_amazon_fba_sales_latest_snapshot_for_item, create_snapdeal_order, \
|
89 |
get_amazon_fba_sales_latest_snapshot_for_item, create_snapdeal_order, \
|
| 90 |
get_snapdeal_order, snapdeal_order_exists, update_latest_fba_prices_for_item , \
|
90 |
get_snapdeal_order, snapdeal_order_exists, update_latest_fba_prices_for_item , \
|
| 91 |
flipkart_order_exists , create_flipkart_order
|
91 |
flipkart_order_exists, create_flipkart_order, get_flipkart_order
|
| 92 |
|
92 |
|
| 93 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
93 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 94 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
94 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 95 |
DigitalTransaction
|
95 |
DigitalTransaction
|
| 96 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
96 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
| Line 2346... |
Line 2346... |
| 2346 |
|
2346 |
|
| 2347 |
def createFlipkartOrder(self,flipkartOrder):
|
2347 |
def createFlipkartOrder(self,flipkartOrder):
|
| 2348 |
try:
|
2348 |
try:
|
| 2349 |
create_flipkart_order(flipkartOrder)
|
2349 |
create_flipkart_order(flipkartOrder)
|
| 2350 |
finally:
|
2350 |
finally:
|
| 2351 |
self.closeSession()
|
2351 |
self.closeSession()
|
| - |
|
2352 |
|
| - |
|
2353 |
def getFlipkartOrder(self,orderId):
|
| - |
|
2354 |
try:
|
| - |
|
2355 |
return to_t_flipkartOrder(get_flipkart_order(orderId))
|
| - |
|
2356 |
finally:
|
| - |
|
2357 |
self.closeSession()
|
| - |
|
2358 |
|
| 2352 |
|
2359 |
|
| 2353 |
def closeSession(self, ):
|
2360 |
def closeSession(self, ):
|
| 2354 |
close_session()
|
2361 |
close_session()
|
| 2355 |
|
2362 |
|
| 2356 |
def isAlive(self, ):
|
2363 |
def isAlive(self, ):
|