|
|
@ -283,4 +283,16 @@ class Agora(object):
|
|
|
|
rtrn = self.create_ad(countrycode, currency)
|
|
|
|
rtrn = self.create_ad(countrycode, currency)
|
|
|
|
if not rtrn:
|
|
|
|
if not rtrn:
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
return True
|
|
|
|
yield rtrn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def release_funds(self, contact_id):
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
Release funds for a contact_id.
|
|
|
|
|
|
|
|
:param contact_id: trade/contact ID
|
|
|
|
|
|
|
|
:type contact_id: string
|
|
|
|
|
|
|
|
:return: response dict
|
|
|
|
|
|
|
|
:rtype: dict
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
payload = {"tradeId": contact_id, "password": settings.Agora.Pass}
|
|
|
|
|
|
|
|
rtrn = self.agora._api_call(api_method=f"contact_release/{contact_id}", http_method="POST", query_values=payload)
|
|
|
|
|
|
|
|
return rtrn
|
|
|
|