[postal-savings-rs] rewrite for new banking platform#1010
Open
d-lef wants to merge 2 commits into
Open
Conversation
The bank migrated from hb.posted.co.rs (JSP-based) to onlinebanking.posted.co.rs (DeWeb platform, same as altabanka-rs). The old server no longer responds. Changes: - Rewrite fetchApi.ts for the new DeWeb-based API (login with dynamic workitemId, account/transaction fetching via HTML parsing) - Add parsers.ts for HTML parsing (accounts, transactions, login) - Rewrite converters.ts for the new data model - Update models.ts with new account/transaction types - Remove old tests (tested old JSP parsing, no longer applicable) The new platform uses the same DeWeb framework as altabanka-rs. Tested against the live bank API — login, account listing, and transaction token retrieval all work. Fixes zenmoney#1008
Member
|
Спасибо за вклад в общее дело :) Поправьте, пожалуйста, код, чтобы проходили тесты. |
Author
|
Привет! Поправил, тесты проходят -- смержите пожалуйста :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Банк перевёл онлайн-банкинг на новую платформу:
hb.posted.co.rs(JSP) — сервер больше не отвечаетonlinebanking.posted.co.rs(DeWeb-платформа, как у altabanka-rs)Что сделано
Полная перезапись плагина под новую платформу:
workitemId(запрашивается со страницы), получение счетов и транзакций через HTML-парсинг DeWeb API.slide[data-accountnumber]), транзакции (.pageable-content), токен верификацииНовая платформа использует тот же фреймворк DeWeb, что и
altabanka-rs, поэтому структура кода аналогична.Тестирование
Протестировано на реальном API банка:
Fixes #1008