id -> invoice_id

This commit is contained in:
2026-06-11 13:18:27 +03:00
parent 3cd928b217
commit 4873501bc0
+4 -4
View File
@@ -120,8 +120,8 @@ 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)
def delete_invoice(username, user_token, id):
data = {'username': username, 'user_token': user_token, 'id': id}
def delete_invoice(username, user_token, invoice_id):
data = {'username': username, 'user_token': user_token, 'invoice_id': invoice_id}
return call('api/delete_invoice/', data)
# Получение информации о счёте на оплату
@@ -132,7 +132,7 @@ def delete_invoice(username, user_token, id):
# "amount": null / float,
# "status": false/true
# } / 'Invalid username or token' (401) / 'Invoice id not found' (404) / General error (500)
def get_invoice(username, user_token, id):
data = {'username': username, 'user_token': user_token, 'id': id}
def get_invoice(username, user_token, invoice_id):
data = {'username': username, 'user_token': user_token, 'invoice_id': invoice_id}
return call('api/get_invoice/', data)
#------------------------- END ------------------------------