chore(multiInvoices): add new methods for receipts to invoice#101
Open
raul-facturapi wants to merge 1 commit intomainfrom
Open
chore(multiInvoices): add new methods for receipts to invoice#101raul-facturapi wants to merge 1 commit intomainfrom
raul-facturapi wants to merge 1 commit intomainfrom
Conversation
javorosas
reviewed
Apr 27, 2026
|
|
||
| ## [4.17.0] 2026-04-27 | ||
| ### Added | ||
| - Add `receipts.multiInvoice` to create customer invoices from multiple receipt keys. |
Member
There was a problem hiding this comment.
Esto está mencionado en la versión anterior también.
8c699cd to
b520ab8
Compare
javorosas
reviewed
Apr 29, 2026
| payment_form?: string | null; | ||
| } | ||
|
|
||
| export type MultiInvoiceResult = Invoice | Record<string, any>; |
javorosas
reviewed
Apr 29, 2026
| ## [4.17.0] 2026-04-27 | ||
| ### Added | ||
| - Add `receipts.toInvoice` to create customer invoices from multiple receipt keys. | ||
| - Add `receipts.previewToInvoicePdf` to generate PDF previews for multi-invoice payloads. |
Member
There was a problem hiding this comment.
preview for invoice from multiple receipts
|
|
||
| /** | ||
| * Generates a PDF preview for a multi-invoice request before stamping. | ||
| * @param data Multi-invoice preview data |
| self_invoice_url: string; | ||
| } | ||
|
|
||
| export interface MultiInvoiceInput { |
Member
There was a problem hiding this comment.
Change interface name to not MultiInvoice
|
|
||
| export type MultiInvoiceResult = Invoice | Record<string, any>; | ||
|
|
||
| export interface PreviewMultiInvoicePdfInput { |
Member
There was a problem hiding this comment.
Change interface name to not multiInvoice
| }; | ||
|
|
||
| globalThis.fetch = vi.fn(async (url, options) => { | ||
| expect(url).toBe('https://api.test.local/v2/receipts/multi-invoice'); |
Member
There was a problem hiding this comment.
Tests still expecting multi-invoice endpoint
b520ab8 to
1e55ea9
Compare
javorosas
approved these changes
Apr 29, 2026
Member
|
Creo que solo falta actualizar la versión en el package.json / lock |
1e55ea9 to
96af720
Compare
javorosas
approved these changes
Apr 30, 2026
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.
No description provided.