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

fix: expose repeating invoice total discount#236
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

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