This commit is contained in:
2024-10-12 03:55:00 +03:00
parent 7512b3347e
commit 4d7e5ded4d
2 changed files with 26 additions and 0 deletions

View File

@@ -40,3 +40,16 @@ def get_orders_from_barcode(params: dict):
method = f'{router}/getByProductId'
response = client.method('GET', method, params=params)
return response
def need_crpt(order_product_id):
method = f'{router}/needCrpt?orderProductId={order_product_id}'
response = client.method('GET', method)
return response
def attach_crpt(order_product_id, crpt):
method = f'{router}/attachCrpt'
data = {'orderProductId': order_product_id, 'crpt': crpt}
response = client.method('POST', method, data=data)
return response