Skip to content

feat: add Session.inquiry() for PSQ support (#153453) - #24

Merged
ankitottu merged 2 commits into
mainfrom
task/153453
May 6, 2026
Merged

ankitottu merged 2 commits into
mainfrom
task/153453

Conversation

@ankitottu

@ankitottu ankitottu commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds Session.inquiry() to call POST /b/pbl/v2/inquiry/ and return the current payment status for a session
  • Adds AsyncSessionWrapper.inquiry() for async support
  • Falls back to self.session_id when no identifier is passed; raises ValidationError when both session_id and order_no are absent

Test Plan

  • python -m pytest tests/test_ottu/test_ottu/test_sessions.py::TestSessionInquiry -v — 6 sync tests pass
  • python -m pytest tests/test_ottu/test_async_ottu.py::TestAsyncSessionInquiry -v — 3 async tests pass
  • python -m pytest --cov=src --cov-fail-under=80 -q — 204 passed, 98.43% coverage

References

- Add Session.inquiry() calling POST /b/pbl/v2/inquiry/
- Add AsyncSessionWrapper.inquiry() for async support
- Falls back to self.session_id; raises ValidationError when both identifiers absent
- Parameter named order_id for consistency with other Session methods
- Session.inquiry() → Session.psq()
- AsyncSessionWrapper.inquiry() → AsyncSessionWrapper.psq()
- url_inquiry → url_payment_status_query
- Test class/method names updated accordingly
@ankitottu
ankitottu merged commit fda99c6 into main May 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant