| Line 14... |
Line 14... |
| 14 |
to_t_storeOrderCollection, to_t_hotspotServiceMatrix, to_t_ebayOrder, \
|
14 |
to_t_storeOrderCollection, to_t_hotspotServiceMatrix, to_t_ebayOrder, \
|
| 15 |
to_t_amazonFbaSalesSnapshot, to_t_snapdealOrder, to_t_flipkartOrder, \
|
15 |
to_t_amazonFbaSalesSnapshot, to_t_snapdealOrder, to_t_flipkartOrder, \
|
| 16 |
to_t_amazonFbaOrderReturn, to_t_flipkartAdvantageOrder, to_t_hsOrder, to_t_Creditor, \
|
16 |
to_t_amazonFbaOrderReturn, to_t_flipkartAdvantageOrder, to_t_hsOrder, to_t_Creditor, \
|
| 17 |
to_t_CreditHistory, to_t_UserSanction, to_t_LoanHistory, to_t_PaginatedCreditHistory, \
|
17 |
to_t_CreditHistory, to_t_UserSanction, to_t_LoanHistory, to_t_PaginatedCreditHistory, \
|
| 18 |
to_t_PaginatedLoanHistory, to_t_PaginatedUserSanction, to_t_returnOrderInfo, \
|
18 |
to_t_PaginatedLoanHistory, to_t_PaginatedUserSanction, to_t_returnOrderInfo, \
|
| 19 |
to_t_returnTransaction
|
19 |
to_t_returnTransaction, to_t_rPickupRequest
|
| 20 |
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
|
20 |
from shop2020.model.v1.order.impl.DataAccessors import create_transaction, \
|
| 21 |
get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
|
21 |
get_transactions_for_customer, get_transaction_status, get_line_items_for_order, \
|
| 22 |
get_transaction, get_transactions_for_shopping_cart_id, \
|
22 |
get_transaction, get_transactions_for_shopping_cart_id, \
|
| 23 |
change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
|
23 |
change_transaction_status, get_orders_for_customer, get_orders_for_transaction, \
|
| 24 |
get_order, get_returnable_orders_for_customer, \
|
24 |
get_order, get_returnable_orders_for_customer, \
|
| Line 120... |
Line 120... |
| 120 |
update_return_order_info, bulk_update_return_order_info, get_return_orders_as_per_warehouse, create_return_transaction, \
|
120 |
update_return_order_info, bulk_update_return_order_info, get_return_orders_as_per_warehouse, create_return_transaction, \
|
| 121 |
get_return_transactions_for_customer, get_return_transaction, change_return_transaction_status, \
|
121 |
get_return_transactions_for_customer, get_return_transaction, change_return_transaction_status, \
|
| 122 |
create_return_pickup_request, update_return_pickup_request, get_return_orders_for_return_transaction, \
|
122 |
create_return_pickup_request, update_return_pickup_request, get_return_orders_for_return_transaction, \
|
| 123 |
receive_return_pickup, validate_return_pickup, process_return_pickup, mark_return_transaction_complete, \
|
123 |
receive_return_pickup, validate_return_pickup, process_return_pickup, mark_return_transaction_complete, \
|
| 124 |
refund_return_transaction_payment, get_eligible_orders_for_return, get_eligible_return_orders_for_pickup, \
|
124 |
refund_return_transaction_payment, get_eligible_orders_for_return, get_eligible_return_orders_for_pickup, \
|
| 125 |
validate_return_transaction
|
125 |
validate_return_transaction, get_return_pickup_request, mark_return_not_required_orders_as_processed
|
| 126 |
from shop2020.model.v1.order.impl.DataService import DtrBatchCreditTracker
|
126 |
from shop2020.model.v1.order.impl.DataService import DtrBatchCreditTracker
|
| 127 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
127 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 128 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
128 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 129 |
DigitalTransaction
|
129 |
DigitalTransaction
|
| 130 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
130 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
| Line 3081... |
Line 3081... |
| 3081 |
"""
|
3081 |
"""
|
| 3082 |
try:
|
3082 |
try:
|
| 3083 |
return validate_return_transaction(customerId, returnOrdersMap, itemCondition, overrideWarranty)
|
3083 |
return validate_return_transaction(customerId, returnOrdersMap, itemCondition, overrideWarranty)
|
| 3084 |
finally:
|
3084 |
finally:
|
| 3085 |
close_session()
|
3085 |
close_session()
|
| - |
|
3086 |
|
| - |
|
3087 |
def markReturnNotRequiredOrdersProcessed(self, returnTransactionId):
|
| - |
|
3088 |
"""
|
| - |
|
3089 |
Mark Return Not Required Orders as Processed
|
| - |
|
3090 |
|
| - |
|
3091 |
Parameters
|
| - |
|
3092 |
- returnTransactionId
|
| - |
|
3093 |
"""
|
| - |
|
3094 |
try:
|
| - |
|
3095 |
return mark_return_not_required_orders_as_processed(returnTransactionId)
|
| - |
|
3096 |
finally:
|
| - |
|
3097 |
close_session()
|
| - |
|
3098 |
|
| - |
|
3099 |
def getReturnPickupRequest(self, returnPickupId):
|
| - |
|
3100 |
"""
|
| - |
|
3101 |
Get Particular Return Pickup Id
|
| - |
|
3102 |
Parameters
|
| - |
|
3103 |
- returnPickupId
|
| - |
|
3104 |
"""
|
| - |
|
3105 |
try:
|
| - |
|
3106 |
return to_t_rPickupRequest(get_return_pickup_request(returnPickupId))
|
| - |
|
3107 |
finally:
|
| - |
|
3108 |
close_session()
|
| - |
|
3109 |
|
| 3086 |
|
3110 |
|
| 3087 |
def main():
|
3111 |
def main():
|
| 3088 |
OrderServiceHandler().creditBatch(2, '{"483649":100.0, "8021773":23, "123213":10}')
|
3112 |
OrderServiceHandler().creditBatch(2, '{"483649":100.0, "8021773":23, "123213":10}')
|
| 3089 |
|
3113 |
|
| 3090 |
if __name__ == '__main__':
|
3114 |
if __name__ == '__main__':
|