Skip to content

chore(multiInvoices): add new methods for receipts to invoice#101

Open
raul-facturapi wants to merge 1 commit intomainfrom
chore/multi-invoice_receipts
Open

chore(multiInvoices): add new methods for receipts to invoice#101
raul-facturapi wants to merge 1 commit intomainfrom
chore/multi-invoice_receipts

Conversation

@raul-facturapi
Copy link
Copy Markdown
Collaborator

No description provided.

@raul-facturapi raul-facturapi self-assigned this Apr 27, 2026
Comment thread CHANGELOG.md Outdated

## [4.17.0] 2026-04-27
### Added
- Add `receipts.multiInvoice` to create customer invoices from multiple receipt keys.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Esto está mencionado en la versión anterior también.

@raul-facturapi raul-facturapi force-pushed the chore/multi-invoice_receipts branch from 8c699cd to b520ab8 Compare April 28, 2026 16:13
@raul-facturapi raul-facturapi changed the title chore(multiInvoices): add new methods for multiinvoice receipts chore(multiInvoices): add new methods for receipts to invoice Apr 28, 2026
Comment thread src/types/receipt.ts Outdated
payment_form?: string | null;
}

export type MultiInvoiceResult = Invoice | Record<string, any>;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Por qué Record<string, any>?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Corregido

Comment thread CHANGELOG.md Outdated
## [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.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

preview for invoice from multiple receipts

Comment thread src/resources/receipts.ts Outdated

/**
* Generates a PDF preview for a multi-invoice request before stamping.
* @param data Multi-invoice preview data
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not multi-invoice

Comment thread src/types/receipt.ts Outdated
self_invoice_url: string;
}

export interface MultiInvoiceInput {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Change interface name to not MultiInvoice

Comment thread src/types/receipt.ts Outdated

export type MultiInvoiceResult = Invoice | Record<string, any>;

export interface PreviewMultiInvoicePdfInput {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Change interface name to not multiInvoice

Comment thread test/node/runtime-compat.node.test.ts Outdated
};

globalThis.fetch = vi.fn(async (url, options) => {
expect(url).toBe('https://api.test.local/v2/receipts/multi-invoice');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tests still expecting multi-invoice endpoint

@raul-facturapi raul-facturapi force-pushed the chore/multi-invoice_receipts branch from b520ab8 to 1e55ea9 Compare April 29, 2026 18:07
@javorosas
Copy link
Copy Markdown
Member

Creo que solo falta actualizar la versión en el package.json / lock

@raul-facturapi raul-facturapi force-pushed the chore/multi-invoice_receipts branch from 1e55ea9 to 96af720 Compare April 29, 2026 18:53
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