fix(pg): withdraw verify process

withdraw verify process
This commit is contained in:
Haydar Ghasemi 2025-10-29 15:11:44 +03:30
parent 0c9dde0339
commit 50ddf47d21

View file

@ -94,21 +94,21 @@ def deposit_to_user_wallet_verify(payer_wallet, uuid):
return response
def withdraw_from_user_wallet_submit(category_uuid, data):
def withdraw_from_user_wallet_submit(payee_wallet, data):
class Tmp():
def to_dict(self):
return data
withdraw_data = Tmp()
client = get_client()
response: ApplicationWithdraw = wallet_api_application_withdraw_create_2.sync(category_uuid=category_uuid, client=client, body=withdraw_data)
response: ApplicationWithdraw = wallet_api_application_withdraw_create.sync(payee_wallet=payee_wallet, client=client, body=withdraw_data)
print(response)
return response
def withdraw_from_user_wallet_verify(category_uuid, uuid):
def withdraw_from_user_wallet_verify(payee_wallet, uuid):
client = get_client()
response: ApplicationWithdraw = wallet_api_application_withdraw_verify_retrieve_2.sync(category_uuid=category_uuid, uuid=uuid, client=client)
response: ApplicationWithdraw = wallet_api_application_withdraw_verify_retrieve.sync(payee_wallet=payee_wallet, uuid=uuid, client=client)
print(response)
return response