id -> invoice_id

This commit is contained in:
justuser-31 2025-11-11 15:04:44 +03:00
parent ec25c4add8
commit c2add43dd5

View File

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