From 46645989edb823e25f0fd70f4b0ae9b9c613b781 Mon Sep 17 00:00:00 2001 From: brunomiguelpinto Date: Mon, 16 Sep 2024 15:33:43 +0100 Subject: [PATCH] feat: add firstname lastname and customer type (#274) --- lago_python_client/models/customer.py | 10 ++++++++-- tests/fixtures/customer.json | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lago_python_client/models/customer.py b/lago_python_client/models/customer.py index f216349..d57f3d3 100644 --- a/lago_python_client/models/customer.py +++ b/lago_python_client/models/customer.py @@ -88,7 +88,10 @@ class Customer(BaseModel): net_payment_term: Optional[int] tax_identification_number: Optional[str] logo_url: Optional[str] - name: str + name: Optional[str] + firstname: Optional[str] + lastname: Optional[str] + customer_type: Optional[str] phone: Optional[str] state: Optional[str] timezone: Optional[str] @@ -118,7 +121,10 @@ class CustomerResponse(BaseResponseModel): net_payment_term: Optional[int] tax_identification_number: Optional[str] logo_url: Optional[str] - name: str + name: Optional[str] + firstname: Optional[str] + lastname: Optional[str] + customer_type: Optional[str] phone: Optional[str] state: Optional[str] timezone: Optional[str] diff --git a/tests/fixtures/customer.json b/tests/fixtures/customer.json index 6dca8a6..626c82b 100644 --- a/tests/fixtures/customer.json +++ b/tests/fixtures/customer.json @@ -14,6 +14,9 @@ "tax_identification_number": "EU123456789", "logo_url": "http://hooli.com/logo.png", "name": "Gavin Belson", + "firstname": "Gavin", + "lastname": "Belson", + "customer_type": "individual", "phone": "1-171-883-3711 x245", "state": "CA", "url": "http://hooli.com",