Skip to content

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

Merged
javorosas merged 3 commits into
mainfrom
feat/payment-summary
Sep 4, 2026
Merged

javorosas merged 3 commits into
mainfrom
feat/payment-summary

Conversation

@javorosas

Copy link
Copy Markdown
Member

Adds Invoices::paymentSummary($id, $amount), calling GET /invoices/{id}/payment-summary?amount=.

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.

  • Creates CHANGELOG.md (the repo had none) with this release and the error-code fixes pending on fix/string-api-error-code, which this branch stacks on.
  • Tests: full suite passing (52 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.
@javorosas javorosas self-assigned this Sep 4, 2026
@javorosas
javorosas merged commit a4482da into main Sep 4, 2026
2 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