feat: billing cancel
This commit is contained in:
		
							
								
								
									
										5
									
								
								external/billing/billing_client.py
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								external/billing/billing_client.py
									
									
									
									
										vendored
									
									
								
							@@ -21,6 +21,11 @@ class BillingClient:
 | 
			
		||||
        response = await self._method('POST', '/create', json=json_data)
 | 
			
		||||
        return CreateBillingResponseSchema.model_validate(response)
 | 
			
		||||
 | 
			
		||||
    async def delete(self, request: DeleteBillRequestSchema) -> DeleteBillResponseSchema:
 | 
			
		||||
        method = f'/delete/{request.listener_transaction_id}'
 | 
			
		||||
        response = await self._method('POST', method)
 | 
			
		||||
        return DeleteBillResponseSchema.model_validate(response)
 | 
			
		||||
 | 
			
		||||
    async def notify_received(self, request: NotifyReceivedBillRequestSchema) -> NotifyReceivedBillResponseSchema:
 | 
			
		||||
        json_data = request.model_dump()
 | 
			
		||||
        response = await self._method('POST', '/notify-received', json=json_data)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user