ebanutsya

This commit is contained in:
2023-11-09 05:48:03 +03:00
parent cc2d364059
commit cba9d37cdb
3 changed files with 32 additions and 5 deletions

View File

@@ -4,8 +4,8 @@ client = get_client()
router = '/orders'
def get_orders_by_supplier_product_id(supplier_product_id: str) -> list[dict]:
method = f'{router}/getBySupplierProductId?supplierProductId={supplier_product_id}'
def get_orders_by_product_id(supplier_product_id: str) -> list[dict]:
method = f'{router}/getByProductId?productId={supplier_product_id}'
response = client.method('GET', method)
return response