Skip to content

fix(fees,credit_notes,invoices,taxes): align models with the API contract - #418

Merged
annvelents merged 2 commits into
mainfrom
openapi-guardian/2026-08-31
Sep 3, 2026
Merged

fix(fees,credit_notes,invoices,taxes): align models with the API contract#418
annvelents merged 2 commits into
mainfrom
openapi-guardian/2026-08-31

Conversation

@annvelents

Copy link
Copy Markdown
Contributor

Fee no longer exposes invoice_display_name, which the fees controller does not permit on update, and FeeResponse drops unit_amount_cents, invoice_display_name and billing_entity_code, none of which the serializer emits, in favour of the fields it does. CreditNote regains the create fields the controller permits and taxes_amount_cents is typed as the integer it is. TaxResponse and InvoiceResponse gain the fields their serializers always emit.

…ract

Fee no longer exposes invoice_display_name, which the fees controller does not
permit on update, and FeeResponse drops unit_amount_cents, invoice_display_name
and billing_entity_code, none of which the serializer emits, in favour of the
fields it does. CreditNote regains the create fields the controller permits and
taxes_amount_cents is typed as the integer it is. TaxResponse and
InvoiceResponse gain the fields their serializers always emit.
Compare floats with pytest.approx and use the or operator in place of a
ternary. The CI action installs whatever ruff is latest at run time, so the
preview rules added in 0.16.5 broke every branch.
@annvelents
annvelents merged commit 42a0580 into main Sep 3, 2026
7 checks passed
@annvelents
annvelents deleted the openapi-guardian/2026-08-31 branch September 3, 2026 12:42
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.

3 participants