Add get_government_data parameter and government fields to GetInvoices#36
Open
iglak wants to merge 4 commits intobugproof:masterfrom
Open
Add get_government_data parameter and government fields to GetInvoices#36iglak wants to merge 4 commits intobugproof:masterfrom
iglak wants to merge 4 commits intobugproof:masterfrom
Conversation
…ields in response Agent-Logs-Url: https://github.com/iglak/BaseLinkerApi/sessions/eedc3823-b05c-4da9-bede-522ade847f6c Co-authored-by: iglak <33146259+iglak@users.noreply.github.com>
Add get_government_data parameter and gov fields to GetInvoices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the
GetInvoicesrequest and response model to support retrieving government invoice data from the API. The changes add an option to include government-related fields in the response and update the invoice model to handle these new fields.Enhancements to government invoice data support:
GetGovernmentDataproperty to theGetInvoicesrequest, allowing clients to specify whether government data fields (gov_id,gov_date,gov_status) should be included in the response.Invoiceclass in the response to include new properties:GovId,GovDate, andGovStatus, which represent government invoice identifier, date (in Unix time), and status, respectively. These fields are only populated ifget_government_datais true in the request.Improvements to existing property documentation:
GetExternalInvoicesproperty to clarify its behavior and use case, especially for ERP integrations.