Repository navigation
Version 0.9.0: the spec at API 1.20.10, check_checkout and webhook_deleted - #16
Merged
Merged
Conversation
The saved spec follows the public document at API 1.20.10. It was merged three ways on the parsed documents, with the public document at 1.20.9 as the base. There were no conflicts, and every local declaration and earlier schema is kept. billing.get_topup_session takes check_checkout on both clients, false by default. TopupSession gains checkout_status and Delivery gains webhook_deleted. Delivery.webhook_deleted stays optional so older payloads still parse. Docstrings name the 409 of a replay to a deleted webhook and the cover limits.
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.
The client follows API 1.20.10, released on 2026-11-15. The saved spec was merged from the public document of faxforagents/openapi#15, which is not merged yet.
What a caller can notice
billing.get_topup_session(topup_session_id, check_checkout=True)asks Stripe about the hosted Checkout of an open top-up, on both clients. The new fieldTopupSession.checkout_statusreadsopen,complete,processingorexpired, andNonewhen not asked. The default isFalse, which sends no query parameter, so a caller who leaves it out sends the same request as with 0.8.0.Delivery.webhook_deletedis new. OnlyDeliveryDetailhad it. It stays optional onDelivery, so a payload without it still parses.webhooks.replay_deliveryraisesConflictErrorwithdetails["reason"]webhook_deletedfor a deleted webhook.webhooks.deletesays the waiting deliveries end asfailed.one_time_sends.check_covernames the limits ofcreate, 120, 200 and 2,000 characters.billing.cancel_topup_sessionnamesdetails["reason"]paid.OneTimeCoverCheck, the counters ofPolicyUsage,policy_nameandversionofPolicyVerdictandPolicyEvaluation, and 15 MiB onNumberUpdate.email_pdf.A new parameter and new fields, so the version is 0.9.0. Nothing public is removed.
How the spec was refreshed
The public document at 1.20.9 was the base of a three-way merge with the saved spec, done on the parsed documents. All 83 changes of the public document applied with no conflict, and every local declaration and earlier schema is kept. The result was written in the style of
scripts/curate.py, which reproduces the old file byte for byte.One local edit is new. The public document requires
Delivery.webhook_deleted, and the saved spec leaves it out ofrequired. The README asks for new response fields to stay optional, asCapabilities.extractionandCapabilities.one_timealready are.python scripts/gen_models.pywrote the models.The saved top-up shapes in
tests/fixturesgaincheckout_status: null, as the server'stopup_jsonsends it at 1.20.10. The fixtures README says so.Checked
pytest -q -m "not live": 183 pass, 4 of them new. The live test was not run, since it needs a test key.ruff check,ruff format --check,mypy src.python scripts/gen_models.py --checkandsh scripts/truthcheck.sh.uv build,twine check --strict, and the wheel installed in a clean venv:faxforagents versionprints 0.9.0.No workflow file changed. Nothing is published by this pull request.