fix: download invoice document on payment page

This commit is contained in:
Ahmed Bouhuolia
2024-11-11 19:01:43 +02:00
parent d668d60ed5
commit ba8091d697
3 changed files with 12 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ export class PaymentLinksApplication {
@Inject()
private createInvoiceCheckoutSessionService: CreateInvoiceCheckoutSession;
@Inject()
private getPaymentLinkInvoicePdfService: GetPaymentLinkInvoicePdf;
@@ -45,7 +45,9 @@ export class PaymentLinksApplication {
* @param {number} paymentLinkId
* @returns {Promise<Buffer> }
*/
public getPaymentLinkInvoicePdf(paymentLinkId: string): Promise<Buffer> {
public getPaymentLinkInvoicePdf(
paymentLinkId: string
): Promise<[Buffer, string]> {
return this.getPaymentLinkInvoicePdfService.getPaymentLinkInvoicePdf(
paymentLinkId
);