ebanutsya
This commit is contained in:
		
							
								
								
									
										8
									
								
								sipro/api/general.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								sipro/api/general.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
from sipro.api.client import get_client
 | 
			
		||||
 | 
			
		||||
client = get_client()
 | 
			
		||||
router = '/general'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def get_shipping_warehouses():
 | 
			
		||||
    return client.method('GET', f'{router}/getShippingWarehouses')
 | 
			
		||||
@@ -30,7 +30,7 @@ def close_order(order_id: int) -> dict:
 | 
			
		||||
    return response
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def get_orders(order_by: str, desc: int, page: int, shipment_date: str, status: str):
 | 
			
		||||
    method = f'{router}/getOrders?orderBy={order_by}&desc={desc}&page={page}&shipmentDate={shipment_date}&status={status}'
 | 
			
		||||
def get_orders(order_by: str, desc: int, page: int, shipment_date: str, status: str, shipment_warehouse_id: int):
 | 
			
		||||
    method = f'{router}/getOrders?orderBy={order_by}&desc={desc}&page={page}&shipmentDate={shipment_date}&status={status}&shipmentWarehouseId={shipment_warehouse_id}'
 | 
			
		||||
    response = client.method('GET', method)
 | 
			
		||||
    return response
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user