fix: expose waybill and awb at root level of Delhivery dispatch response
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 41s
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 41s
This commit is contained in:
parent
d71027e903
commit
c470f2d0e4
1 changed files with 2 additions and 0 deletions
|
|
@ -415,6 +415,8 @@ def dispatch_auto_allocated_order(order_payload, selection_strategy='CHEAPEST',
|
|||
res['estimated_cost'] = selection.get('cost')
|
||||
res['selection_reason'] = selection.get('reason')
|
||||
res['awb_number'] = pkg_list[0]['waybill']
|
||||
res['waybill'] = pkg_list[0]['waybill']
|
||||
res['awb'] = pkg_list[0]['waybill']
|
||||
return res, 200
|
||||
|
||||
# If Delhivery booking was rejected or failed, automatically failover to live Shadowfax
|
||||
|
|
|
|||
Loading…
Reference in a new issue