Skip to content

Version 0.6.1: the spec at API 1.20.5, payment receipts, content_type optional - #13

Merged
bensynapse merged 1 commit into
mainfrom
api-1.20.5
Nov 14, 2026
Merged

bensynapse merged 1 commit into
mainfrom
api-1.20.5

Conversation

@bensynapse

Copy link
Copy Markdown
Contributor

The client follows API 1.20.5, released on 2026-11-14. The saved spec was merged from the public document at that version.

What a caller can notice

  • billing.get_invoice_receipt and billing.get_topup_receipt are new on both clients. They return PaymentReceipt.
  • documents.create_upload leaves content_type out unless it is given. The API reads the type from the filename.
  • NotFoundError.field and ConflictError.state read details.field and details.state.
  • UploadCreate.content_type is str | None.

How the spec was refreshed

The public document at 1.20.0 was the base of a three-way merge with the saved spec. No conflict came up. Every earlier schema the spec keeps is still there. python scripts/gen_models.py wrote the models.

Checked

  • pytest -q -m "not live": 153 pass.
  • ruff check, ruff format --check, mypy src.
  • python scripts/gen_models.py --check and sh scripts/truthcheck.sh.

The version is 0.6.1. No workflow file changed. Nothing is published by this pull request.

… optional

The saved spec follows the public document at API 1.20.5.
billing.get_invoice_receipt and billing.get_topup_receipt return PaymentReceipt.
documents.create_upload leaves content_type out unless it is given.
The API then reads the type from the filename.
NotFoundError.field and ConflictError.state read the error details.
Tests cover the two receipts, the upload body and both details.
@bensynapse
bensynapse merged commit 1d32119 into main Nov 14, 2026
12 checks passed
@bensynapse
bensynapse deleted the api-1.20.5 branch November 14, 2026 22:08
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