From 99c75b29976432ab3e7c4c502fa236e113021c48 Mon Sep 17 00:00:00 2001 From: Ancor Cruz Date: Mon, 10 Aug 2026 16:14:00 +0100 Subject: [PATCH] feat(invoice): add web_url to invoice response models ## Context The invoice API object exposes a web_url attribute linking to the invoice page in the Lago dashboard, next to file_url (the PDF). ## Description Add web_url as an optional string on InvoiceResponse and on PaymentRequestInvoiceResponse, which mirrors the same invoice base object. Without it pydantic silently drops the field from the parsed response. --- lago_python_client/models/invoice.py | 1 + lago_python_client/models/payment_request.py | 1 + 2 files changed, 2 insertions(+) diff --git a/lago_python_client/models/invoice.py b/lago_python_client/models/invoice.py index 78cc040e..9f78cdab 100644 --- a/lago_python_client/models/invoice.py +++ b/lago_python_client/models/invoice.py @@ -139,6 +139,7 @@ class InvoiceResponse(BaseResponseModel): prepaid_purchased_credit_amount_cents: Optional[int] file_url: Optional[str] + web_url: Optional[str] customer: Optional[CustomerResponse] billing_periods: Optional[BillingPeriodsResponse] subscriptions: Optional[SubscriptionsResponse] diff --git a/lago_python_client/models/payment_request.py b/lago_python_client/models/payment_request.py index 12731549..1671d70e 100644 --- a/lago_python_client/models/payment_request.py +++ b/lago_python_client/models/payment_request.py @@ -33,6 +33,7 @@ class PaymentRequestInvoiceResponse(BaseResponseModel): total_amount_cents: int prepaid_credit_amount_cents: int file_url: Optional[str] + web_url: Optional[str] class PaymentRequestInvoicesResponse(BaseResponseModel):