Skip to content

fix: expose repeating invoice total discount - #236

Open
miachillgood wants to merge 1 commit into
XeroAPI:masterfrom
miachillgood:codex/expose-repeating-invoice-total-discount
Open

miachillgood wants to merge 1 commit into
XeroAPI:masterfrom
miachillgood:codex/expose-repeating-invoice-total-discount

Conversation

@miachillgood

Copy link
Copy Markdown

Summary

  • add total_discount to RepeatingInvoice.openapi_types
  • map the field to TotalDiscount
  • allow constructing and reading the value from the model
  • add a focused unit test

Why

Addresses #214 so the Python SDK exposes a field the API already returns for repeating invoices.

Testing

  • python -m pytest tests/test_api_client/test_repeating_invoice.py
@miachillgood
miachillgood force-pushed the codex/expose-repeating-invoice-total-discount branch from 3bdafc0 to 0d8a83e Compare August 18, 2026 08:37

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant