feat(fbo): add supply_order_timeslot_list — /v2/supply-order/timeslot/list (0.87.0)#8
Merged
Merged
Conversation
…/list (0.87.0) Ozon добавил в спецификацию новую операцию POST /v2/supply-order/timeslot/list (BetaMethod) — список доступных интервалов поставки заявки с информацией об ограничениях изменения интервала и причинах запрета. - schemas/fbo/v2__supply_order_timeslot_list.py: Request (order_id) + Response (limit_exceeded, timeslot_change_forbidden, timeslots_info с limitations/timeslots/timezone); переиспользует entity SupplyOrderTimeslot. error_reasons типизирован открытым списком str (response enum). - methods/fbo/supply_order_timeslot_list.py: SupplyOrderTimeslotListMixin. - Wiring в __init__ группы fbo (schemas + methods). - Тест на моках (транспорт замокан, без сети). - README: новая строка каталога, секция «Доставка FBO» 15→16, общий счётчик 461→462. - Версия 0.86.1 → 0.87.0 (minor, новый метод) в обоих файлах. pytest: 580 passed. mypy: 0 net-new.
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.
Что
Новый метод
supply_order_timeslot_listдля операцииPOST /v2/supply-order/timeslot/list(tagBetaMethod), которую Ozonдобавил в OpenAPI-спецификацию (swagger-дельта +1).
Возвращает список доступных интервалов поставки заявки вместе с:
limit_exceeded— остаток доступных изменений интервала;timeslot_change_forbidden.error_reasons— причины запрета измененияинтервала (открытый список
str);timeslots_info—limitations(count/limit),timeslots(переиспользуется entity
SupplyOrderTimeslot),timezone(iana_name + offset в секундах,
int).Почему
Поддержание актуальности с API Ozon: новая операция в live-спецификации.
Это
list-действие, отдельное от уже реализованногоv1 .../timeslot/get— коллизии версий нет.
Детали
fbo, схемаv2__supply_order_timeslot_list.py, миксинSupplyOrderTimeslotListMixin, wiring в обоих__init__.str, тест только на моках (транспорт замокан, без сети).счётчик 461→462.
Версия
0.86.1 → 0.87.0 (minor — новый метод), в
pyproject.tomlиsrc/ozonapi/__init__.py.Гейт
pytest: 580 passed(локально, транспорт замокан).--config-file .claude/linters/mypy.ini): 0 net-new ошибок.🤖 Generated with Claude Code