Subversion Repositories SmartDukaan

Rev

Rev 4258 | Rev 4264 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4258 Rev 4259
Line 21... Line 21...
21
    create_purchase_order, verify_order, is_alive, get_orders_by_shipping_date,\
21
    create_purchase_order, verify_order, is_alive, get_orders_by_shipping_date,\
22
    update_weight, change_warehouse, change_product, add_delay_reason,\
22
    update_weight, change_warehouse, change_product, add_delay_reason,\
23
    reconcile_cod_collection, get_transactions_requiring_extra_processing,\
23
    reconcile_cod_collection, get_transactions_requiring_extra_processing,\
24
    mark_transaction_as_processed, get_item_wise_risky_orders_count,\
24
    mark_transaction_as_processed, get_item_wise_risky_orders_count,\
25
    get_orders_in_batch, get_order_count,\
25
    get_orders_in_batch, get_order_count,\
-
 
26
    mark_order_cancellation_request_received,\
26
    mark_order_cancellation_request_received, mark_order_as_payment_flag_removed,\
27
    mark_order_cancellation_request_denied, refund_transaction,\
27
    mark_order_cancellation_request_denied
28
    mark_order_cancellation_request_confirmed,\
-
 
29
    mark_transaction_as_payment_flag_removed
28
 
30
 
29
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
31
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
30
    to_t_alert, to_t_order, to_t_lineitem
32
    to_t_alert, to_t_order, to_t_lineitem
31
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
33
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
32
    LineItem, Order, TransactionServiceException
34
    LineItem, Order, TransactionServiceException
Line 920... Line 922...
920
    
922
    
921
        Parameters:
923
        Parameters:
922
         - transactionId
924
         - transactionId
923
        """
925
        """
924
        try:
926
        try:
925
            return mark_order_as_payment_flag_removed(transactionId)
927
            return mark_transaction_as_payment_flag_removed(transactionId)
-
 
928
        finally:
-
 
929
            close_session()
-
 
930
            
-
 
931
    def refundTransaction(self, transactionId, refundedBy, reason):
-
 
932
        """
-
 
933
        This method is called when a flagged payment is deemed unserviceable and the corresponding orders
-
 
934
        need to be cancelled
-
 
935
    
-
 
936
        Parameters:
-
 
937
         - transactionId
-
 
938
        """
-
 
939
        try:
-
 
940
            return refund_transaction(transactionId, refundedBy, reason)
926
        finally:
941
        finally:
927
            close_session()
942
            close_session()
928
 
943
 
929
    def markOrderCancellationRequestDenied(self, orderId):
944
    def markOrderCancellationRequestDenied(self, orderId):
930
        """
945
        """