Commit 919a8bb5 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[cragr] filter able to do transfer accounts

In transfer initiation, get only able to do transfer accounts
parent 672b39f5
......@@ -592,7 +592,9 @@ class CragrAPI(LoginBrowser):
assert self.recipients.is_here()
for index, debit_accounts in enumerate(
debit_accounts._index = index
yield debit_accounts
# only yield able to do transfer accounts
yield debit_accounts
def iter_transfer_recipients(self, account, transfer_space_info=None):
......@@ -40,6 +40,11 @@ class RecipientsPage(LoggedPage, JsonPage):
class iter_debit_accounts(DictElement):
def store(self, obj):
# can have accounts with same ID
# filter it on `` to have 'index' (needed to do transfer)
return obj
class item(ItemElement):
def condition(self):
return Dict('accountNumber', default=None)(self)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment