feat: implement order cancellation for assemblies and handle error responses

This commit is contained in:
2025-09-01 07:07:28 +03:00
parent 489d470c7b
commit ba7000f3d9
2 changed files with 15 additions and 0 deletions

View File

@@ -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