feat: implement order cancellation for assemblies and handle error responses
This commit is contained in:
@@ -58,4 +58,11 @@ def attach_crpt(order_product_id, crpt):
|
||||
def need_crpt_by_order_id(order_id):
|
||||
method = f'{router}/needCrptByOrder?orderId={order_id}'
|
||||
response = client.method('GET', method)
|
||||
return response
|
||||
|
||||
|
||||
def cancel_order_assembly(order_id):
|
||||
method = f'{router}/cancelOrderAssembly'
|
||||
data = {'orderId': order_id}
|
||||
response = client.method('POST', method, data=data)
|
||||
return response
|
||||
Reference in New Issue
Block a user