id -> invoice_id

This commit is contained in:
justuser-31 2025-11-11 15:07:37 +03:00
parent c2add43dd5
commit 7214981aff

View File

@ -121,8 +121,8 @@ async def create_invoice(username, user_token, amount=None):
# Удаление счёта на оплату по invoice_id
# IN : username (str), user_token (str), invoice_id (str)
# OUT: 'OK' / 'Invalid username or token' (401) / 'Invoice id not found' (404) / General error (500)
async def delete_invoice(username, user_token, id):
data = {'username': username, 'user_token': user_token, 'id': id}
async def delete_invoice(username, user_token, invoice_id):
data = {'username': username, 'user_token': user_token, 'invoice_id': invoice_id}
return await call('api/delete_invoice/', data)
# Получение информации о счёте на оплату
@ -134,7 +134,7 @@ async def delete_invoice(username, user_token, id):
# "status": false/true
# } / 'Invalid username or token' (401) / 'Invoice id not found' (404) / General error (500)
async def get_invoice(username, user_token, id):
data = {'username': username, 'user_token': user_token, 'id': id}
data = {'username': username, 'user_token': user_token, 'invoice_id': invoice_id}
return await call('api/get_invoice/', data)
#------------------------- END ------------------------------