Skip to content

feat: add invoices.paymentSummary for payment complements - #12

Merged
javorosas merged 1 commit into
mainfrom
feat/payment-summary
Sep 4, 2026
Merged

feat: add invoices.paymentSummary for payment complements#12
javorosas merged 1 commit into
mainfrom
feat/payment-summary

Conversation

@javorosas

Copy link
Copy Markdown
Member

Adds InvoicesResource.paymentSummary(String id, double amount), calling GET /invoices/{id}/payment-summary?amount= and deserializing into the new PaymentSummary model.

The response is the related-document object needed to build a payment complement (complemento de pago): installment number from the payment history, previous balance, and taxes prorated to the paid amount.

  • Version bump 2.0.0 → 2.1.0 with changelog entry.
  • Stacks on fix/string-api-error-code.
  • Tests: full suite passing (28 tests).

Calls GET /invoices/{id}/payment-summary?amount=, which returns the
related document object needed to build a payment complement
(complemento de pago): installment from the payment history, previous
balance, and taxes prorated to the paid amount. Bumps version to 2.1.0.
@javorosas
javorosas force-pushed the feat/payment-summary branch from 67bb17f to a1aa171 Compare September 4, 2026 12:19
@javorosas javorosas self-assigned this Sep 4, 2026
@javorosas
javorosas merged commit 6148632 into main Sep 4, 2026
4 checks passed
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.

2 participants