id -> invoice_id
This commit is contained in:
parent
c2add43dd5
commit
7214981aff
@ -121,8 +121,8 @@ async 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)
|
||||||
async def delete_invoice(username, user_token, id):
|
async 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 await call('api/delete_invoice/', data)
|
return await call('api/delete_invoice/', data)
|
||||||
|
|
||||||
# Получение информации о счёте на оплату
|
# Получение информации о счёте на оплату
|
||||||
@ -134,7 +134,7 @@ async def delete_invoice(username, user_token, id):
|
|||||||
# "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)
|
||||||
async def get_invoice(username, user_token, id):
|
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)
|
return await call('api/get_invoice/', data)
|
||||||
#------------------------- END ------------------------------
|
#------------------------- END ------------------------------
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user