Skip to content

Commit

Permalink
Feat(invoice): Feat add skip zero invoices (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto authored Sep 6, 2024
1 parent fd87f2a commit 44f9a0e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lago_python_client/models/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Customer(BaseModel):
url: Optional[str]
zipcode: Optional[str]
metadata: Optional[MetadataList]
finalize_zero_amount_invoice: Optional[str]
billing_configuration: Optional[CustomerBillingConfiguration]
shipping_address: Optional[Address]
integration_customers: Optional[IntegrationCustomersList]
Expand Down Expand Up @@ -125,6 +126,7 @@ class CustomerResponse(BaseResponseModel):
url: Optional[str]
zipcode: Optional[str]
metadata: Optional[MetadataResponseList]
finalize_zero_amount_invoice: Optional[str]
billing_configuration: Optional[CustomerBillingConfiguration]
shipping_address: Optional[Address]
integration_customers: Optional[IntegrationCustomersResponseList]
Expand Down
2 changes: 2 additions & 0 deletions lago_python_client/models/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Organization(BaseModel):
tax_identification_number: Optional[str]
timezone: Optional[str]
email_settings: Optional[List[str]]
finalize_zero_amount_invoice: Optional[bool]
billing_configuration: Optional[OrganizationBillingConfiguration]


Expand All @@ -53,4 +54,5 @@ class OrganizationResponse(BaseResponseModel):
tax_identification_number: Optional[str]
timezone: Optional[str]
email_settings: Optional[List[str]]
finalize_zero_amount_invoice: Optional[bool]
billing_configuration: Optional[OrganizationBillingConfiguration]
1 change: 1 addition & 0 deletions tests/fixtures/customer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"timezone": "Europe/Paris",
"applicable_timezone": "Europe/Paris",
"net_payment_term": null,
"finalize_zero_amount_invoice": "inherit",
"billing_configuration": {
"invoice_grace_period": 3,
"payment_provider": "stripe",
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"net_payment_term": 0,
"tax_identification_number": "EU123456789",
"timezone": "America/New_York",
"finalize_zero_amount_invoice": true,
"billing_configuration": {
"invoice_footer": null,
"invoice_grace_period": 3,
Expand Down

0 comments on commit 44f9a0e

Please sign in to comment.