woob:e4397edfbc1848c41abbe2d97f875cb957376195 commitshttps://gitlab.com/woob/woob/-/commits/e4397edfbc1848c41abbe2d97f875cb9573761952019-10-27T22:22:23+01:00https://gitlab.com/woob/woob/-/commit/e4397edfbc1848c41abbe2d97f875cb957376195python3: fix some more shebangs2019-10-27T22:22:23+01:00Vincent Adev@indigo.rehttps://gitlab.com/woob/woob/-/commit/901e148bb819d9389471489ed6f8d1f43872c618python3: setup.py now requires python3.5 or higher2019-10-27T22:22:23+01:00Vincent Adev@indigo.rehttps://gitlab.com/woob/woob/-/commit/8bf03a623b00a3c786c5fdb1a0d633eb5964464dchange default python interpreter to python32019-10-27T22:22:23+01:00Romain Bignonromain@symlink.mehttps://gitlab.com/woob/woob/-/commit/c3c9c7432b7e4cff48db3113a99461e3dd1c78e5[orange] Fix StringIO import to be compatible with python32019-10-27T22:22:23+01:00Benjamin Sigonneaubenjamin+weboob@dromaludaire.info
With this fix, the module still works with python 2.7https://gitlab.com/woob/woob/-/commit/9fa7cb75713ae4bbf0989000494b933cf9c02049[paypal] Fix accounts list retrieval2019-10-26T12:46:33+02:00nicofrandmail@nicofrand.euhttps://gitlab.com/woob/woob/-/commit/a2a703b2065d2ee754f40dabdfe78d69a1678b33[paypal] Fix login2019-10-26T12:45:35+02:00nicofrandmail@nicofrand.euhttps://gitlab.com/woob/woob/-/commit/4f1f89b9e4de4c24fc8ef64116a3a2c29d819cc6weboob.capabilities.bank: fix missing TransferInvalidOTP export2019-10-26T11:28:09+02:00nicofrandmail@nicofrand.euhttps://gitlab.com/woob/woob/-/commit/f95ada51498b65d0064beedf6b07cf3084696fbc[caissedepargne] use TransferInvalidOTP2019-10-23T10:47:44+02:00Célande Adriencelande.adrien@budget-insight.com
RecipientInvalidOTP generates a bug when raising it during a transfer
the exception is not adapted
the TransferInvalidOTP is now created and can be used
Closes: 41036@sibihttps://gitlab.com/woob/woob/-/commit/95cf812db3b9687f1ec082f9e13156847f002d75[caissedepargne] Added document retrieval for connections without2019-10-23T10:47:44+02:00Lucas Ficheuxlucas.ficheux@budget-insight.comaccounts
The module would crash when adding connections without an account on the
website, even if some documents were present.
Now I create a fake Subscription object to bind all documents with.
Closes : 12826@zendeskhttps://gitlab.com/woob/woob/-/commit/b80ad806f51667864d66217f74e39e15d9eb42d7[bnporc] Added missing coming transactions types2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.comhttps://gitlab.com/woob/woob/-/commit/9e78dcc9ad148da545248c3aa67e4acdc6daadc7[afer] Corrected wrongpass detection & handled ActionNeeded2019-10-23T10:47:44+02:00Quentin Defenouillerequentin.defenouillere@budget-insight.com
The wrongpass page changed since the recent website migration,
the new URL and message xpath had to be handled.
Customers who updated their password now have a message inviting them to
connect to the Aviva website, although some customers may still be using
the Afer website.
Closes: 13778@zendesk, 13827@zendesk, 13841@zendesk, 13885@zendeskhttps://gitlab.com/woob/woob/-/commit/eb80d54a66238992805416bf796b8c10549a706e[bred] Skip transaction duplicates2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.com
The website sometimes send us duplicates transactions that erase other
transactions. There is nothing we can do to fix that, so we just skip
those duplicates instead of raising an error.
Closes: 18569@sibi 13059,13204,13337,13751@zendeskhttps://gitlab.com/woob/woob/-/commit/0ceb3e67eda4af9548ac57073a79a64501d8de25[bred] Cosmetic changes2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.comhttps://gitlab.com/woob/woob/-/commit/a0022fe8271b0ce7b7ff18287b499398c8d963e8[hsbc] Add accountownership2019-10-23T10:47:44+02:00Maxime Pommiermaxime.pommier@budget-insight.comhttps://gitlab.com/woob/woob/-/commit/ee9356a1af907f96aeddec8900d8151ce9991521[bforbank] handle empty card page2019-10-23T10:47:44+02:00Etienne Lachereetienne.lachere@budget-insight.com
Handle a case where the card page is just empty, with no message
saying there is no card attached to this account.
Closes: 17749@zendesk
Closes: 45503@sibihttps://gitlab.com/woob/woob/-/commit/23ccf4c6f14d7b7d4d3f60560661983e21877d48[banquepopulaire] Modified owner_name account search for companies2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.com
Profile either has `name` or `company_name` attribute. The search on the
accounts was done only on `name`, not `company_name` which caused bugs.
Closes: 47716@sibi 13705@zendeskhttps://gitlab.com/woob/woob/-/commit/22cbec48a21e2f4e9b72b4e2cee39aeaa10e5df3[cragr] Refresh account form before trying to fetch the IBAN2019-10-23T10:47:44+02:00Quentin Defenouillerequentin.defenouillere@budget-insight.com
On the old website, when a perimeter has several checking accounts, the
first form works but the second account's form is expired, so we must
refresh the account form in order to get the IBAN correctly.
Closes: 12915@zendesk, 13758@zendesk, 13901@zendeskhttps://gitlab.com/woob/woob/-/commit/a279148d981251d47c82b50c6d187bf7e2682b9b[americanexpress] Modified data index for iter_accounts2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.com
The website added 2 elements (`rendering` and its data that look like `['^1',['disableStyles',False,'disableScripts',False]]`) at index `13` of their data that pushed
back the `core` we were looking for.https://gitlab.com/woob/woob/-/commit/f7cbb9b3b92d51850d6b0032a62e062dac45fd69[americanexpress] get correct accounts currency2019-10-23T10:47:44+02:00sinopsysHKsinofwd@gmail.com
get correct accounts currency from users session locales rather than
static so it works for other currencies than EURhttps://gitlab.com/woob/woob/-/commit/f712ff5c713a43d3019258b5669813b182aaf47e[americanexpress] A few code tweaks in browser.py and pages.py2019-10-23T10:47:44+02:00Damien Matdamien.mat@budget-insight.comhttps://gitlab.com/woob/woob/-/commit/1f1cde8bd9ffbc00d42a9bb3660df36265d58d95[bnporc] make _transfer_id go through2019-10-23T10:47:44+02:00Célande Adriencelande.adrien@budget-insight.com
For each recipient, we need the transfer id to navigate when validating
by sms.
We need to keep it through the StateMixin.https://gitlab.com/woob/woob/-/commit/5652ab168396988027afdc7c4d5f4465b24d8afb[OAuth2Mixin] add build_refresh_token_parameters method2019-10-23T10:47:44+02:00Edouard Lambertelambert@budget-insight.com
add OAuth2Mixin 'build_refresh_token_parameters' method to
overwrite it if needed in browser's module.https://gitlab.com/woob/woob/-/commit/95ad1597bb60fa009242eeb788f50d836f640ce0[creditmutuel] Check for loan details2019-10-23T10:47:44+02:00Lucas Ficheuxlucas.ficheux@budget-insight.com
The module tried to fetch details for loans
regardless of the presence of thoses details.
Now the modules checks for details before trying to fetch them.https://gitlab.com/woob/woob/-/commit/96894e9150d19ff9c8b22ae1cc650f5d4188de6c[creditmutuel] Better account typing2019-10-23T10:47:44+02:00Lucas Ficheuxlucas.ficheux@budget-insight.com
The typing was lacking as it sometimes matched incorrect part of the
label such as the name of the account owner.
Now it uses regexes on sensitive account patterns.https://gitlab.com/woob/woob/-/commit/8836b79ea95a1f22dcc60eabde655e17088a7216[fortuneo] Added ActionNeeded when site ask for user infos2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.com
When checking for investments for PEA, the website ask the user to update
its infos if they are too old. Added ActionNeeded in that case.https://gitlab.com/woob/woob/-/commit/3625fbe9900c2471d3344a26e98a87abab428549[fortuneo] LI balance and investments format change2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.com
Life Insurance balance and investments format have changed from SI format
to French format.https://gitlab.com/woob/woob/-/commit/dae6c2ed6c32053ca1d7243d4023538f167d8e69[ing] handle new recipient errors2019-10-23T10:47:44+02:00Célande Adriencelande.adrien@budget-insight.com
I handle new recipient errors.
Now the website return a 400 error with its errors.
So the handle_error pages are useless.https://gitlab.com/woob/woob/-/commit/c654eec8f2c372a046e06c031bedb72275db4100[bnporc] Removed unused transaction property2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.com
`obj__redacted_card` is not used anywhere.
The module `bnpentcards` use it but it has its own BNPEntreprise Browser
that gather `_redacted_card`.https://gitlab.com/woob/woob/-/commit/635461c5b7a6d7fdd59ca8101c387ffaaab2774a[oney] Changed login and parsing of `other` accounts2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.com
- Login method changed on website, reflected those changes in `do_login`
and with new pages
- Changed the navigation to parse accounts on `other` site
- Modified parsing to include LOAN accountshttps://gitlab.com/woob/woob/-/commit/35dbd50268f8fb4ccaf8d6bfe37931fdae7bdf64[creditdunord/smc] Added missing url handle + fixed baseurl regex match2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.com
- Added new url to handle from `smc` website
- Fixed regex on BASEURL in classic_loginhttps://gitlab.com/woob/woob/-/commit/2a7bc4d2b3eb4119f0e38259753ebeacdde30169[cragr] Account.TYPE_ changed / adding 2 missing2019-10-23T10:47:44+02:00Philippine Aylorphilippine.aylor@budget-insight.com
I added 2 new account types, both saving account.
CEL2 (compte epargne logement)
CSLB5 (compte sur livret)
Closes: 13758@Zendeskhttps://gitlab.com/woob/woob/-/commit/b39d16e959aa78aabfd403fb42e935f645ec7aac[esalia] Fix nav between several investments accounts popups2019-10-23T10:47:44+02:00Damien Matdamien.mat@budget-insight.com
Investments performances in this module can be fecthed by launching 3
different popups depending on the user's contrats. When wanting the
investments we first collect the urls of each popup then follow each one
and parse the performances from there. When the user has sggestion.com
and lyxorfunds.com invests with first url fetched being lyxorfunds.com,
at the time to follow it, the request would not be accepted and return a
ClientError. If the urls are fetched the other way around, the requests
would work, this is the most cases behavior. In order to make
lyxorfunds.com requests to work everytime we need the referer from
homepage (AccountsPage).https://gitlab.com/woob/woob/-/commit/4a15ec3ddc3d5a5830947c5ddb174a2503bc9e7c[cragr] Fix DateGuesser for some savings2019-10-23T10:47:44+02:00Lucas Ficheuxlucas.ficheux@budget-insight.com
Somme savings Accounts have Transactions with a date without a year,
we use a DateGuesser to guess that year. The DateGuesser wasn't
properly handed to the method, that is what this patch fixes.
For DateGuesser to fulfill it's purpose the same instance needs
to be shared between all Transaction objects, or the default behaviour of
*Element is to make a copy of the parent's env variable (the dictionnary
used by the filter Env) so each Transaction would have a new instance
of DateGuesser.
Here we create a child class of DateGuesser
with it's __deepcopy__ method overridden so that a call of deepcopy on it will
return the object itself instead of a copy, this counteracts the
behaviour of *Element and allows all Transaction objects to share the
same instance of DateGuesser.
This may break again.https://gitlab.com/woob/woob/-/commit/49c4c7ec658041ef18a3b172c6a65cce63dc8bcf[societegenerale] users not allowed to add recipients2019-10-23T10:47:44+02:00Célande Adriencelande.adrien@budget-insight.com
When not allowed to add recipients, users recieve a message:
`Vous n'avez pas la possibilité d'accéder à cette fonction. Veuillez
prendre contact avec votre Conseiller.`https://gitlab.com/woob/woob/-/commit/129d6528fca75e308e6307606b89c95993189134[netfinca] Set account obj_number2019-10-23T10:47:44+02:00Quentin Defenouillerequentin.defenouillere@budget-insight.comhttps://gitlab.com/woob/woob/-/commit/e03fad1f8ab87f0f4ac551673f61fdef33d80a40[caissedepargne] Fixed regex for card coming infos2019-10-23T10:47:44+02:00Guillaume Risbourgguillaume.risbourg@budget-insight.comhttps://gitlab.com/woob/woob/-/commit/d832248ea4deb8ac8cb43f7dd68470b53e09d829[ameli] Change iter_subscriptions2019-10-23T10:47:44+02:00Florian Duguetflorian.duguet@budget-insight.com
id was based on birth date, but it crash when there are twins and we can't use social security number
browser now return just one subscription and all documents are attached to the only one subscription we return
it also fix a bug with duplicated document when a file contains information about several user is was return
one time per subscription that use ithttps://gitlab.com/woob/woob/-/commit/20fd1a19dbce101354a84033110071363682fe18[ameli] html document page has been put in a json2019-10-23T10:47:44+02:00Florian Duguetflorian.duguet@budget-insight.comhttps://gitlab.com/woob/woob/-/commit/a41edcba6cd7ed4db7851a0181b1ea6455b59ac8[weboob.capabilities.bank] add TransferInvalidOTP exception2019-10-23T10:47:44+02:00Célande Adriencelande.adrien@budget-insight.com
It replaces the TransferBankError used for invalid otp.
This way, we use a different error code.https://gitlab.com/woob/woob/-/commit/8ca5266ec204161e0d9f77d15178cea686a1e751[caissedepargne] for transfers, avoid EMV auth if present, choose SMS2019-10-23T10:47:44+02:00Vincent Ardissonvardisson@budget-insight.com
Within a session, caissedepargne requires 2FA authentication for
transfers or adding recipients. Most often, it's an SMS. But for
creditcooperatif users, it might be EMV auth OTP by default. In this
case, on the website, the user can reject EMV auth and switch to SMS.
Reproduce here the fallback behavior. If it's SMS directly, it's ok. But
if it's EMV, switch to SMS.
In case of fallback, the SMS is sent after request_sms is queried, so it
must be queried _before_ raising TransferStep, not _after_ as it was
done it previous code. Thus, we save validation keys in browser state.