Skip to content

Commit

Permalink
feat: add firstname lastname and customer type (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto authored Sep 16, 2024
1 parent 7fea97c commit 4664598
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lago_python_client/models/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions tests/fixtures/customer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4664598

Please sign in to comment.