| Line 29... |
Line 29... |
| 29 |
mark_transaction_as_payment_flag_removed, accept_orders_for_item_id,\
|
29 |
mark_transaction_as_payment_flag_removed, accept_orders_for_item_id,\
|
| 30 |
mark_orders_as_po_raised, mark_orders_as_reversal_initiated,\
|
30 |
mark_orders_as_po_raised, mark_orders_as_reversal_initiated,\
|
| 31 |
mark_orders_as_not_available, update_shipment_address,\
|
31 |
mark_orders_as_not_available, update_shipment_address,\
|
| 32 |
mark_orders_as_timeout, get_order_for_awb,\
|
32 |
mark_orders_as_timeout, get_order_for_awb,\
|
| 33 |
mark_orders_as_shipped_from_warehouse, mark_alerts_as_seen, \
|
33 |
mark_orders_as_shipped_from_warehouse, mark_alerts_as_seen, \
|
| 34 |
mark_order_doa_request_received, mark_order_doa_request_authorized
|
34 |
mark_order_doa_request_received, mark_order_doa_request_authorized,\
|
| - |
|
35 |
mark_order_return_request_received, mark_order_return_request_authorized
|
| 35 |
|
36 |
|
| 36 |
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
|
37 |
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
|
| 37 |
to_t_alert, to_t_order, to_t_lineitem
|
38 |
to_t_alert, to_t_order, to_t_lineitem
|
| 38 |
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
|
39 |
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
|
| 39 |
LineItem, Order, TransactionServiceException
|
40 |
LineItem, Order, TransactionServiceException
|
| Line 630... |
Line 631... |
| 630 |
try:
|
631 |
try:
|
| 631 |
return mark_order_doa_request_authorized(orderId, isAuthorized)
|
632 |
return mark_order_doa_request_authorized(orderId, isAuthorized)
|
| 632 |
finally:
|
633 |
finally:
|
| 633 |
close_session()
|
634 |
close_session()
|
| 634 |
|
635 |
|
| - |
|
636 |
def markOrderReturnRequestReceived(self, orderId):
|
| - |
|
637 |
"""
|
| - |
|
638 |
Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to RET_REQUEST_RECEIVED
|
| - |
|
639 |
|
| - |
|
640 |
Parameters:
|
| - |
|
641 |
- orderId
|
| - |
|
642 |
"""
|
| - |
|
643 |
try:
|
| - |
|
644 |
return mark_order_return_request_received(orderId)
|
| - |
|
645 |
finally:
|
| - |
|
646 |
close_session()
|
| - |
|
647 |
|
| - |
|
648 |
def markOrderReturnRequestAuthorized(self, orderId, isAuthorized):
|
| - |
|
649 |
"""
|
| - |
|
650 |
CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED
|
| - |
|
651 |
to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
|
| - |
|
652 |
|
| - |
|
653 |
Parameters:
|
| - |
|
654 |
- orderId
|
| - |
|
655 |
- isAuthorized
|
| - |
|
656 |
"""
|
| - |
|
657 |
try:
|
| - |
|
658 |
return mark_order_return_request_authorized(orderId, isAuthorized)
|
| - |
|
659 |
finally:
|
| - |
|
660 |
close_session()
|
| - |
|
661 |
|
| 635 |
def requestPickupNumber(self, orderId):
|
662 |
def requestPickupNumber(self, orderId):
|
| 636 |
"""
|
663 |
"""
|
| 637 |
Sends out an email to the account manager of the original courier provider used to ship the order.
|
664 |
Sends out an email to the account manager of the original courier provider used to ship the order.
|
| 638 |
If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
|
665 |
If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
|
| 639 |
If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
|
666 |
If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
|