crpt
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user