feat(fbp): add posting_fbp_get — /v1/posting/fbp/get (0.89.0)#10
Open
ci-action wants to merge 1 commit into
Open
feat(fbp): add posting_fbp_get — /v1/posting/fbp/get (0.89.0)#10ci-action wants to merge 1 commit into
ci-action wants to merge 1 commit into
Conversation
Ozon добавил в спецификацию операцию POST /v1/posting/fbp/get (tag
BetaMethod) — получение информации об отправлении FBP по его номеру.
Реализован новый метод posting_fbp_get в группе fbp (list-действие
posting_fbp_list уже было реализовано — коллизии имён нет).
- schemas/fbp/v1__posting_fbp_get.py: Request (posting_number) + Response
с вложенным posting{analytics_data, cancellation, financial_data,
products, status, substatus, tpl_provider_id}. Схема отдельная от
posting_fbp_list (иной набор полей: substatus, tpl_provider_id,
has_imei, marketplace_seller_price, posting/return commission).
Модель строго по swagger, метод access-gated → тесты только на моках.
- methods/fbp/posting_fbp_get.py: PostingFbpGetMixin.
- Wiring в __init__ группы fbp (schemas + methods).
- README 462→463 (секция «Работа с созданной поставкой FBP» 11→12).
- Версия 0.88.0 → 0.89.0 (minor, новый метод) в обоих файлах.
pytest: 581 passed. mypy: 0 net-new.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Что изменилось
Добавлен новый метод
posting_fbp_getв группеfbp— обёртка над операциейPOST /v1/posting/fbp/get(tagBetaMethod): получение информации об одномотправлении FBP по его номеру.
Почему
Дневной watcher-коллектор зафиксировал в live-спецификации Ozon Seller API новую
операцию
POST /v1/posting/fbp/get(swagger-дельта+1). Метод отсутствовал вбиблиотеке (
grepпоposting/fbp/get— пусто; реализован был толькоposting_fbp_list). Этоget-действие, отдельное отlist→ коллизии версий/имён нет.Детали реализации
schemas/fbp/v1__posting_fbp_get.py:PostingFbpGetRequest(posting_number) +PostingFbpGetResponseс вложеннымposting{analytics_data, cancellation, financial_data, products, status, substatus, tpl_provider_id}. Схема отдельнаяот
posting_fbp_list— набор полей уgetбогаче (substatus, tpl_provider_id,has_imei, marketplace_seller_price, posting/return commission).
Error 7), live-верификация невозможна →модель строго по swagger, тесты только на моках (транспорт замокан, сеть не трогаем).
methods/fbp/posting_fbp_get.py:PostingFbpGetMixin; wiring в__init__группыfbp.TestPostingFbpGetвtest_fbp_supply.py.Документация
readme.md: новая строка каталога/v1/posting/fbp/get; секция «Работа с созданнойпоставкой FBP» 11→12; общий счётчик 462 → 463.
Версия
0.88.0 → 0.89.0(minor — новый метод), вpyproject.tomlиsrc/ozonapi/__init__.py.Проверки
pytest: 581 passed(локально, транспорт замокан).mypy --config-file .claude/linters/mypy.ini: 0 net-new ошибок.feat/posting-fbp-get, CI ожидается зелёный.🤖 Generated with Claude Code