Add function for getting only some account details
This commit is contained in:
parent
00d441d17d
commit
ba9f99a23f
|
@ -199,6 +199,12 @@ class Markets(util.Base):
|
||||||
currency_account_info_map[currency]["bank"] = bank.split("_")[0]
|
currency_account_info_map[currency]["bank"] = bank.split("_")[0]
|
||||||
return (supported_currencies, currency_account_info_map)
|
return (supported_currencies, currency_account_info_map)
|
||||||
|
|
||||||
|
def get_matching_account_details(self, platform, currency):
|
||||||
|
supported_currencies, currency_account_info_map = self.get_valid_account_details(platform)
|
||||||
|
if currency not in supported_currencies:
|
||||||
|
return False
|
||||||
|
return currency_account_info_map[currency]
|
||||||
|
|
||||||
def _distribute_account_details(self, platform, currencies=None, account_info=None):
|
def _distribute_account_details(self, platform, currencies=None, account_info=None):
|
||||||
"""
|
"""
|
||||||
Distribute account details for ads.
|
Distribute account details for ads.
|
||||||
|
|
Loading…
Reference in New Issue