Skip to content

Conversation

@wscourge
Copy link
Contributor

No description provided.

@wscourge wscourge requested a review from Copilot December 30, 2025 13:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for query parameters to the RetrieveInvoice method, allowing callers to specify validation type, include edit histories, and include disabled invoices. The changes align with similar functionality already available in ListAllInvoices.

  • Added RetrieveInvoiceParams struct to support optional query parameters for invoice retrieval
  • Updated RetrieveInvoice to accept variadic RetrieveInvoiceParams for backward compatibility
  • Extended ListAllInvoicesParams with validation type, edit histories, and disabled invoices fields

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
invoices.go Added RetrieveInvoiceParams struct and updated RetrieveInvoice signature to accept optional parameters; added query parameter fields to ListAllInvoicesParams
chartmogul.go Updated IApi interface signature for RetrieveInvoice to include variadic params
invoices_test.go Added comprehensive test coverage for new query parameters in both ListAllInvoices and RetrieveInvoice methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wscourge wscourge requested review from macharmi and pkopac December 31, 2025 11:53
@wscourge wscourge merged commit 15499a7 into v4 Jan 6, 2026
@wscourge wscourge deleted the wiktor/ome-418-add-validation_type-support-to-invoices-line-items-and branch January 6, 2026 12:14
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