| Line 2... |
Line 2... |
| 2 |
Created on 29-Mar-2010
|
2 |
Created on 29-Mar-2010
|
| 3 |
|
3 |
|
| 4 |
@author: ashish
|
4 |
@author: ashish
|
| 5 |
'''
|
5 |
'''
|
| 6 |
from elixir import session
|
6 |
from elixir import session
|
| - |
|
7 |
from shop2020.helpers.impl.DataAccessor import close_session
|
| 7 |
from shop2020.model.v1.order.impl import DataService, RedExpressUpdateService,\
|
8 |
from shop2020.model.v1.order.impl import DataService, RedExpressUpdateService, \
|
| 8 |
RechargeService
|
9 |
RechargeService
|
| 9 |
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, \
|
| 10 |
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, \
|
| 11 |
to_t_attribute, to_t_rechargeTransaction, to_t_frc, to_t_hotspot, to_t_sourcedetail, \
|
12 |
to_t_attribute, to_t_rechargeTransaction, to_t_frc, to_t_hotspot, \
|
| 12 |
to_t_amazonorder, to_t_storeOrderDetail, to_t_storeOrderCollection, \
|
13 |
to_t_sourcedetail, to_t_amazonorder, to_t_storeOrderDetail, \
|
| 13 |
to_t_hotspotServiceMatrix, to_t_ebayOrder, to_t_amazonFbaSalesSnapshot, \
|
14 |
to_t_storeOrderCollection, to_t_hotspotServiceMatrix, to_t_ebayOrder, \
|
| 14 |
to_t_snapdealOrder, to_t_flipkartOrder
|
15 |
to_t_amazonFbaSalesSnapshot, to_t_snapdealOrder, to_t_flipkartOrder
|
| 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, \
|
| 20 |
get_order, get_returnable_orders_for_customer, \
|
20 |
get_order, get_returnable_orders_for_customer, \
|
| Line 71... |
Line 71... |
| 71 |
get_misc_charges, get_available_emi_schemes, refund_recharge_order, \
|
71 |
get_misc_charges, get_available_emi_schemes, refund_recharge_order, \
|
| 72 |
create_recharge_transaction, get_physical_orders, get_document, retrieve_invoice, \
|
72 |
create_recharge_transaction, get_physical_orders, get_document, retrieve_invoice, \
|
| 73 |
change_shipping_address, get_recharge_transactions, get_recharge_transaction, \
|
73 |
change_shipping_address, get_recharge_transactions, get_recharge_transaction, \
|
| 74 |
get_frcs, get_hotspot_store, get_circle, retrieve_hotspot_recharge_invoice, \
|
74 |
get_frcs, get_hotspot_store, get_circle, retrieve_hotspot_recharge_invoice, \
|
| 75 |
get_recharge_trans, split_freebie_order, get_recharge_transactions_by_number, \
|
75 |
get_recharge_trans, split_freebie_order, get_recharge_transactions_by_number, \
|
| 76 |
update_hotspot_store_password, get_source_detail, get_all_circles, delete_frcs,\
|
76 |
update_hotspot_store_password, get_source_detail, get_all_circles, delete_frcs, \
|
| 77 |
topup_company_wallet, get_wallet_balance_for_company, \
|
77 |
topup_company_wallet, get_wallet_balance_for_company, add_amazon_order, \
|
| 78 |
add_amazon_order, update_amazon_order_status,get_amazon_order, get_amazon_orders_shipped, \
|
78 |
update_amazon_order_status, get_amazon_order, get_amazon_orders_shipped, \
|
| 79 |
get_amazon_orders_cancelled, get_orders_for_store, get_store_order_advance_invoice, add_frc, \
|
79 |
get_amazon_orders_cancelled, get_orders_for_store, \
|
| 80 |
add_series, get_store_order_detail, save_store_order_detail, get_all_edc_banks, \
|
80 |
get_store_order_advance_invoice, add_frc, add_series, get_store_order_detail, \
|
| - |
|
81 |
save_store_order_detail, get_all_edc_banks, save_refund_amounts_for_store_order, \
|
| 81 |
save_refund_amounts_for_store_order, get_collections_for_store,get_amazon_orders_to_acknowledge, \
|
82 |
get_collections_for_store, get_amazon_orders_to_acknowledge, \
|
| 82 |
change_amazon_order_status,update_timestamp_for_amazon_order,update_source_detail_timestamp, \
|
83 |
change_amazon_order_status, update_timestamp_for_amazon_order, \
|
| - |
|
84 |
update_source_detail_timestamp, get_amazon_order_by_amazonorderid, \
|
| 83 |
get_amazon_order_by_amazonorderid, get_orders_by_mobile_number, get_orders_by_amazon_id, \
|
85 |
get_orders_by_mobile_number, get_orders_by_amazon_id, change_courier_provider, \
|
| 84 |
change_courier_provider, convert_store_to_normal, update_freebie_item, update_order_AWB, \
|
86 |
convert_store_to_normal, update_freebie_item, update_order_AWB, \
|
| 85 |
get_hotspot_service_matrices, get_orders_by_vendor, create_ebay_order, \
|
87 |
get_hotspot_service_matrices, get_orders_by_vendor, create_ebay_order, \
|
| 86 |
get_ebay_order_by_sales_rec_number, get_ebay_order_by_orderId, update_ebay_order, \
|
88 |
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, \
|
89 |
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, \
|
90 |
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, \
|
91 |
get_amazon_fba_sales_latest_snapshot_for_item, create_snapdeal_order, \
|
| 90 |
get_snapdeal_order, snapdeal_order_exists, update_latest_fba_prices_for_item , \
|
92 |
get_snapdeal_order, snapdeal_order_exists, update_latest_fba_prices_for_item, \
|
| 91 |
flipkart_order_exists, create_flipkart_order, get_flipkart_order, get_flipkart_order_by_subOrderId, \
|
93 |
flipkart_order_exists, create_flipkart_order, get_flipkart_order, \
|
| 92 |
update_flipkart_order_dates_and_awb,get_order_for_airwayBillNo, \
|
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, \
|
| 93 |
get_orders_count_created_after_timestamp_for_source, get_min_created_timestamp_undelivered_orders_for_source, \
|
96 |
get_min_created_timestamp_undelivered_orders_for_source, \
|
| 94 |
update_snapdeal_orders_status, update_flipkart_orders_status, bulk_add_or_update_amazon_fba_sales_snapshot, \
|
97 |
update_snapdeal_orders_status, update_flipkart_orders_status, \
|
| - |
|
98 |
bulk_add_or_update_amazon_fba_sales_snapshot, get_created_orders_for_flipkart, \
|
| 95 |
get_created_orders_for_flipkart
|
99 |
is_private_deal_transaction
|
| 96 |
|
- |
|
| 97 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
100 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 98 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
101 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 99 |
DigitalTransaction
|
102 |
DigitalTransaction
|
| 100 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
103 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
| 101 |
MobileRechargeOrder
|
104 |
MobileRechargeOrder
|
| - |
|
105 |
from shop2020.model.v1.user.impl.Converters import to_t_address
|
| 102 |
from shop2020.thriftpy.model.v1.order.ttypes import TransactionServiceException, \
|
106 |
from shop2020.thriftpy.model.v1.order.ttypes import TransactionServiceException, \
|
| 103 |
RechargeType,AmazonOrdersToAcknowledge
|
107 |
RechargeType, AmazonOrdersToAcknowledge
|
| 104 |
from shop2020.utils.Utils import to_py_date, get_fdate_tdate, to_java_date
|
108 |
from shop2020.utils.Utils import to_py_date, get_fdate_tdate, to_java_date
|
| 105 |
import datetime
|
109 |
import datetime
|
| 106 |
from shop2020.helpers.impl.DataAccessor import close_session
|
- |
|
| 107 |
from shop2020.model.v1.user.impl.Converters import to_t_address
|
- |
|
| - |
|
110 |
|
| - |
|
111 |
|
| 108 |
|
112 |
|
| 109 |
|
113 |
|
| 110 |
|
114 |
|
| 111 |
class OrderServiceHandler:
|
115 |
class OrderServiceHandler:
|
| 112 |
|
116 |
|