File tree Expand file tree Collapse file tree 8 files changed +17
-3
lines changed Expand file tree Collapse file tree 8 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ class Customer(BaseModel):
120
120
tax_codes : Optional [List [str ]]
121
121
skip_invoice_custom_sections : Optional [bool ]
122
122
invoice_custom_section_codes : Optional [List [str ]]
123
+ billing_entity_code : Optional [str ]
123
124
124
125
125
126
class CustomerResponse (BaseResponseModel ):
@@ -156,3 +157,4 @@ class CustomerResponse(BaseResponseModel):
156
157
taxes : Optional [TaxesResponse ]
157
158
skip_invoice_custom_sections : Optional [bool ]
158
159
applicable_invoice_custom_sections : Optional [InvoiceCustomSectionsResponseList ]
160
+ billing_entity_code : Optional [str ]
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ class FeeResponse(BaseResponseModel):
59
59
from_date : Optional [str ]
60
60
to_date : Optional [str ]
61
61
amount_details : Optional [Dict [str , Any ]]
62
+ billing_entity_code : Optional [str ]
62
63
63
64
item : Optional [InvoiceItemResponse ]
64
65
applied_taxes : Optional [FeeAppliedTaxes ]
Original file line number Diff line number Diff line change @@ -139,3 +139,4 @@ class InvoiceResponse(BaseResponseModel):
139
139
applied_invoice_custom_sections : Optional [InvoiceAppliedInvoiceCustomSections ]
140
140
applied_usage_thresholds : Optional [InvoiceAppliedUsageThresholds ]
141
141
error_details : Optional [ErrorDetailsResponse ]
142
+ billing_entity_code : Optional [str ]
Original file line number Diff line number Diff line change 1
- LAGO_VERSION = "1.22 .0"
1
+ LAGO_VERSION = "1.23 .0"
Original file line number Diff line number Diff line change 2
2
"customer" : {
3
3
"lago_id" : " 99a6094e-199b-4101-896a-54e927ce7bd7" ,
4
4
"external_id" : " 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba" ,
5
+ "billing_entity_code" : " test-company" ,
5
6
"address_line1" : " 5230 Penfield Ave" ,
6
7
"address_line2" : null ,
7
8
"city" : " Woodland Hills" ,
33
34
"provider_customer_id" : " cus_12345" ,
34
35
"sync_with_provider" : true ,
35
36
"document_locale" : " fr" ,
36
- "provider_payment_methods" : [" card" , " sepa_debit" ]
37
+ "provider_payment_methods" : [
38
+ " card" ,
39
+ " sepa_debit"
40
+ ]
37
41
},
38
42
"shipping_address" : {
39
43
"city" : " Paris" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"fee" : {
3
3
"lago_id" : " 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba" ,
4
+ "billing_entity_code" : " test-company" ,
4
5
"lago_charge_id" : " 1a901a90-1a90-1a90-1a90-1a901a901a90" ,
5
6
"lago_charge_filter_id" : " 1a2d9c8d-5875-4688-9854-5ccfd414bc5e" ,
6
7
"lago_invoice_id" : " 1a2d9c8d-5875-4688-9854-5ccfd414bc5e" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"invoice" : {
3
3
"lago_id" : " 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba" ,
4
+ "billing_entity_code" : " test-company" ,
4
5
"sequential_id" : 15 ,
5
6
"number" : " LAG-1234-001-002" ,
6
7
"issuing_date" : " 2022-06-02" ,
139
140
"name" : " User Seats" ,
140
141
"invoice_display_name" : " charge_invoice_display_name" ,
141
142
"filters" : {
142
- "region" : [" us-east-1" ]
143
+ "region" : [
144
+ " us-east-1"
145
+ ]
143
146
}
144
147
},
145
148
"amount_cents" : 100 ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ def create_customer():
30
30
31
31
return Customer (
32
32
external_id = "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba" ,
33
+ billing_entity_code = "test-company" ,
33
34
name = "Gavin Belson" ,
34
35
currency = "EUR" ,
35
36
tax_identification_number = "EU123456789" ,
@@ -74,6 +75,7 @@ def test_valid_create_customers_request(httpx_mock: HTTPXMock):
74
75
response = client .customers .create (create_customer ())
75
76
76
77
assert response .external_id == "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"
78
+ assert response .billing_entity_code == "test-company"
77
79
assert response .name == "Gavin Belson"
78
80
assert response .
email == "[email protected] "
79
81
assert response .currency == "EUR"
You can’t perform that action at this time.
0 commit comments