| Line 8... |
Line 8... |
| 8 |
RechargeService
|
8 |
RechargeService
|
| 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
|
13 |
to_t_hotspotServiceMatrix, to_t_ebayOrder, to_t_amazonFbaSalesSnapshot
|
| - |
|
14 |
|
| 14 |
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
|
15 |
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
|
| 15 |
get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
|
16 |
get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
|
| 16 |
get_transaction, get_transactions_for_shopping_cart_id, \
|
17 |
get_transaction, get_transactions_for_shopping_cart_id, \
|
| 17 |
change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
|
18 |
change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
|
| 18 |
get_order, get_returnable_orders_for_customer, \
|
19 |
get_order, get_returnable_orders_for_customer, \
|
| Line 80... |
Line 81... |
| 80 |
change_amazon_order_status,update_timestamp_for_amazon_order,update_source_detail_timestamp, \
|
81 |
change_amazon_order_status,update_timestamp_for_amazon_order,update_source_detail_timestamp, \
|
| 81 |
get_amazon_order_by_amazonorderid, get_orders_by_mobile_number, get_orders_by_amazon_id, \
|
82 |
get_amazon_order_by_amazonorderid, get_orders_by_mobile_number, get_orders_by_amazon_id, \
|
| 82 |
change_courier_provider, convert_store_to_normal, update_freebie_item, update_order_AWB, \
|
83 |
change_courier_provider, convert_store_to_normal, update_freebie_item, update_order_AWB, \
|
| 83 |
get_hotspot_service_matrices, get_orders_by_vendor, create_ebay_order, \
|
84 |
get_hotspot_service_matrices, get_orders_by_vendor, create_ebay_order, \
|
| 84 |
get_ebay_order_by_sales_rec_number, get_ebay_order_by_orderId, update_ebay_order, \
|
85 |
get_ebay_order_by_sales_rec_number, get_ebay_order_by_orderId, update_ebay_order, \
|
| 85 |
ebay_order_exists, update_order_for_ebay, get_ebay_order, split_ebay_order
|
86 |
ebay_order_exists, update_order_for_ebay, get_ebay_order, split_ebay_order,add_or_update_amazon_fba_sales_snapshot, \
|
| 86 |
|
- |
|
| - |
|
87 |
get_amazon_fba_sales_snapshot_for_days,get_amazon_fba_sales_latest_snapshot_for_item
|
| 87 |
|
88 |
|
| 88 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
89 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 89 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
90 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 90 |
DigitalTransaction
|
91 |
DigitalTransaction
|
| 91 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
92 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
| Line 2279... |
Line 2280... |
| 2279 |
def splitEbayOrder(self, orderId, splitOrderQty, splitOrderItemId, usePowerShip):
|
2280 |
def splitEbayOrder(self, orderId, splitOrderQty, splitOrderItemId, usePowerShip):
|
| 2280 |
try:
|
2281 |
try:
|
| 2281 |
return to_t_order(split_ebay_order(orderId, splitOrderQty, splitOrderItemId, usePowerShip))
|
2282 |
return to_t_order(split_ebay_order(orderId, splitOrderQty, splitOrderItemId, usePowerShip))
|
| 2282 |
finally:
|
2283 |
finally:
|
| 2283 |
close_session()
|
2284 |
close_session()
|
| - |
|
2285 |
|
| - |
|
2286 |
def addOrUpdateAmazonFbaSalesSnapshot(self,amazonfbasalessnapshot):
|
| - |
|
2287 |
try:
|
| - |
|
2288 |
add_or_update_amazon_fba_sales_snapshot(amazonfbasalessnapshot)
|
| - |
|
2289 |
finally:
|
| - |
|
2290 |
close_session()
|
| - |
|
2291 |
|
| - |
|
2292 |
def getAmazonFbaSalesSnapshotForDays(self,days):
|
| - |
|
2293 |
fbasalessnapshot = []
|
| - |
|
2294 |
try:
|
| - |
|
2295 |
snapshots = get_amazon_fba_sales_snapshot_for_days(days)
|
| - |
|
2296 |
for snapshot in snapshots:
|
| - |
|
2297 |
fbasalessnapshot.append(to_t_amazonFbaSalesSnapshot(snapshot))
|
| - |
|
2298 |
return fbasalessnapshot
|
| - |
|
2299 |
except:
|
| - |
|
2300 |
return None
|
| - |
|
2301 |
finally:
|
| - |
|
2302 |
close_session()
|
| - |
|
2303 |
|
| - |
|
2304 |
def getAmazonFbaSalesLatestSnapshotForItem(self,item_id):
|
| - |
|
2305 |
try:
|
| - |
|
2306 |
return to_t_amazonFbaSalesSnapshot(get_amazon_fba_sales_latest_snapshot_for_item(item_id)[1])
|
| - |
|
2307 |
except:
|
| - |
|
2308 |
return None
|
| - |
|
2309 |
finally:
|
| - |
|
2310 |
close_session()
|
| - |
|
2311 |
|
| 2284 |
|
2312 |
|
| 2285 |
def closeSession(self, ):
|
2313 |
def closeSession(self, ):
|
| 2286 |
close_session()
|
2314 |
close_session()
|
| 2287 |
|
2315 |
|
| 2288 |
def isAlive(self, ):
|
2316 |
def isAlive(self, ):
|