File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ def __init__(self, client: Client):
125
125
126
126
class Contacts (SubClient ):
127
127
128
- def list (self ):
129
- return self .client ._handle_request ("GET" , "contacts/" )
128
+ def list (self , ** params ):
129
+ return self .client ._handle_request ("GET" , "contacts/" , params = params )
130
130
131
131
def create (self , contact : Contact ):
132
132
payload = asdict (contact )
@@ -147,8 +147,8 @@ def delete(self, contact_id: str):
147
147
148
148
class Invoices (SubClient ):
149
149
150
- def list (self ):
151
- return self .client ._handle_request ("GET" , "invoices/" )
150
+ def list (self , ** params ):
151
+ return self .client ._handle_request ("GET" , "invoices/" , params = params )
152
152
153
153
def create (self , invoice : Invoice ):
154
154
payload = invoice .clean_dict ()
Original file line number Diff line number Diff line change @@ -76,15 +76,15 @@ class BillingAddress(BaseDataClass):
76
76
77
77
@dataclass
78
78
class Item (BaseDataClass ):
79
- product : str
80
79
description : str
81
- quantity : str
82
- unit_measure : int
83
- unit_value : str
84
- unit_discount : str
85
- unit_total : str
86
80
mydata_classification_category : str
87
81
mydata_classification_type : str
82
+ unit_value : Optional [str ] = "0.00"
83
+ unit_discount : Optional [str ] = "0.00"
84
+ unit_total : Optional [str ] = "0.00"
85
+ product : Optional [str ] = ""
86
+ quantity : Optional [int ] = 1
87
+ unit_measure : Optional [int ] = None
88
88
taxes : list = field (default_factory = list )
89
89
title : Optional [str ] = ""
90
90
@@ -96,6 +96,7 @@ class Invoice(BaseDataClass):
96
96
currency_code : Optional [DefaultCurrencyCode ]
97
97
date : Date
98
98
client : int
99
+ mydata_document_type : str
99
100
due_days : Optional [int ]
100
101
billing_address : Optional [BillingAddress ]
101
102
shipping_address : Optional [BillingAddress ]
You can’t perform that action at this time.
0 commit comments