Skip to content

Commit 4a85606

Browse files
Merge pull request #2 from avadev/25.7.0
Generate 25.7.0
2 parents a28d253 + 6e1c646 commit 4a85606

File tree

212 files changed

+6006
-1146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+6006
-1146
lines changed

Avalara/SDK/api/A1099/V2/companies_w9_api.py

Lines changed: 47 additions & 32 deletions
Large diffs are not rendered by default.

Avalara/SDK/api/A1099/V2/forms1099_api.py

Lines changed: 86 additions & 64 deletions
Large diffs are not rendered by default.

Avalara/SDK/api/A1099/V2/forms_w9_api.py

Lines changed: 63 additions & 182 deletions
Large diffs are not rendered by default.

Avalara/SDK/api/A1099/V2/issuers1099_api.py

Lines changed: 47 additions & 32 deletions
Large diffs are not rendered by default.

Avalara/SDK/api/A1099/V2/jobs1099_api.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@author Jonathan Wenger <[email protected]>
2323
@copyright 2022 Avalara, Inc.
2424
@license https://www.apache.org/licenses/LICENSE-2.0
25-
@version 25.6.0
25+
@version 25.7.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -41,6 +41,7 @@
4141
validate_and_convert_types
4242
)
4343
from pydantic import Field, StrictStr
44+
from typing import Optional
4445
from typing_extensions import Annotated
4546
from Avalara.SDK.models.A1099.V2.job_result import JobResult
4647
from Avalara.SDK.exceptions import ApiTypeError, ApiValueError, ApiException
@@ -57,7 +58,7 @@ def __verify_api_client(self,api_client):
5758

5859
def __set_configuration(self, api_client):
5960
self.__verify_api_client(api_client)
60-
api_client.set_sdk_version("25.6.0")
61+
api_client.set_sdk_version("25.7.0")
6162
self.api_client = api_client
6263

6364
self.get_job_endpoint = _Endpoint(
@@ -76,11 +77,11 @@ def __set_configuration(self, api_client):
7677
'id',
7778
'avalara_version',
7879
'x_correlation_id',
80+
'x_avalara_client',
7981
],
8082
'required': [
8183
'id',
8284
'avalara_version',
83-
'x_correlation_id',
8485
],
8586
'nullable': [
8687
],
@@ -101,16 +102,20 @@ def __set_configuration(self, api_client):
101102
(str,),
102103
'x_correlation_id':
103104
(str,),
105+
'x_avalara_client':
106+
(str,),
104107
},
105108
'attribute_map': {
106109
'id': 'id',
107110
'avalara_version': 'avalara-version',
108111
'x_correlation_id': 'X-Correlation-Id',
112+
'x_avalara_client': 'X-Avalara-Client',
109113
},
110114
'location_map': {
111115
'id': 'path',
112116
'avalara_version': 'header',
113117
'x_correlation_id': 'header',
118+
'x_avalara_client': 'header',
114119
},
115120
'collection_format_map': {
116121
}
@@ -132,7 +137,6 @@ def get_job(
132137
self,
133138
id,
134139
avalara_version,
135-
x_correlation_id,
136140
**kwargs
137141
):
138142
"""Retrieves information about the job # noqa: E501
@@ -141,15 +145,16 @@ def get_job(
141145
This method makes a synchronous HTTP request by default. To make an
142146
asynchronous HTTP request, please pass async_req=True
143147
144-
>>> thread = api.get_job(id, avalara_version, x_correlation_id, async_req=True)
148+
>>> thread = api.get_job(id, avalara_version, async_req=True)
145149
>>> result = thread.get()
146150
147151
Args:
148152
id (str): Job id obtained from other API responses, like `/1099/bulk-upsert`.
149153
avalara_version (str): API version
150-
x_correlation_id (str): Unique correlation Id in a GUID format
151154
152155
Keyword Args:
156+
x_correlation_id (str): Unique correlation Id in a GUID format. [optional]
157+
x_avalara_client (str): Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .. [optional]
153158
_return_http_data_only (bool): response data without head status
154159
code and headers. Default is True.
155160
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -197,6 +202,5 @@ def get_job(
197202
kwargs['_host_index'] = kwargs.get('_host_index')
198203
kwargs['id'] = id
199204
kwargs['avalara_version'] = avalara_version
200-
kwargs['x_correlation_id'] = x_correlation_id
201205
return self.get_job_endpoint.call_with_http_info(**kwargs)
202206

Avalara/SDK/api/EInvoicing/V1/data_input_fields_api.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@author Jonathan Wenger <[email protected]>
2323
@copyright 2022 Avalara, Inc.
2424
@license https://www.apache.org/licenses/LICENSE-2.0
25-
@version 25.6.0
25+
@version 25.7.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -40,9 +40,8 @@
4040
none_type,
4141
validate_and_convert_types
4242
)
43-
from decimal import Decimal
44-
from pydantic import Field, StrictStr
45-
from typing import Optional
43+
from pydantic import Field, StrictFloat, StrictInt, StrictStr
44+
from typing import Optional, Union
4645
from typing_extensions import Annotated
4746
from Avalara.SDK.models.EInvoicing.V1.data_input_fields_response import DataInputFieldsResponse
4847
from Avalara.SDK.exceptions import ApiTypeError, ApiValueError, ApiException
@@ -59,7 +58,7 @@ def __verify_api_client(self,api_client):
5958

6059
def __set_configuration(self, api_client):
6160
self.__verify_api_client(api_client)
62-
api_client.set_sdk_version("25.6.0")
61+
api_client.set_sdk_version("25.7.0")
6362
self.api_client = api_client
6463

6564
self.get_data_input_fields_endpoint = _Endpoint(
@@ -106,9 +105,9 @@ def __set_configuration(self, api_client):
106105
'filter':
107106
(str,),
108107
'top':
109-
(decimal.Decimal,),
108+
(float,),
110109
'skip':
111-
(decimal.Decimal,),
110+
(str,),
112111
'count':
113112
(bool,),
114113
'count_only':
@@ -168,8 +167,8 @@ def get_data_input_fields(
168167
Keyword Args:
169168
x_avalara_client (str): You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint.. [optional]
170169
filter (str): Filter by field name and value. This filter only supports <code>eq</code> and <code>contains</code>. Refer to [https://developer.avalara.com/avatax/filtering-in-rest/](https://developer.avalara.com/avatax/filtering-in-rest/) for more information on filtering.. [optional]
171-
top (decimal.Decimal): If nonzero, return no more than this number of results. Used with <code>$skip</code> to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.. [optional]
172-
skip (decimal.Decimal): If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets.. [optional]
170+
top (float): The number of items to include in the result.. [optional]
171+
skip (str): If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets.. [optional]
173172
count (bool): When set to true, the count of the collection is also returned in the response body. [optional]
174173
count_only (bool): When set to true, only the count of the collection is returned. [optional]
175174
_return_http_data_only (bool): response data without head status

Avalara/SDK/api/EInvoicing/V1/documents_api.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@author Jonathan Wenger <[email protected]>
2323
@copyright 2022 Avalara, Inc.
2424
@license https://www.apache.org/licenses/LICENSE-2.0
25-
@version 25.6.0
25+
@version 25.7.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -41,8 +41,7 @@
4141
validate_and_convert_types
4242
)
4343
from datetime import datetime
44-
from decimal import Decimal
45-
from pydantic import Field, StrictBytes, StrictStr
44+
from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr
4645
from typing import Any, Dict, Optional, Union
4746
from typing_extensions import Annotated
4847
from Avalara.SDK.models.EInvoicing.V1.document_fetch import DocumentFetch
@@ -65,7 +64,7 @@ def __verify_api_client(self,api_client):
6564

6665
def __set_configuration(self, api_client):
6766
self.__verify_api_client(api_client)
68-
api_client.set_sdk_version("25.6.0")
67+
api_client.set_sdk_version("25.7.0")
6968
self.api_client = api_client
7069

7170
self.download_document_endpoint = _Endpoint(
@@ -264,7 +263,7 @@ def __set_configuration(self, api_client):
264263
'filter':
265264
(str,),
266265
'top':
267-
(decimal.Decimal,),
266+
(float,),
268267
'skip':
269268
(str,),
270269
},
@@ -617,7 +616,7 @@ def get_document_list(
617616
count (str): When set to true, the count of the collection is also returned in the response body. [optional]
618617
count_only (str): When set to true, only the count of the collection is returned. [optional]
619618
filter (str): Filter by field name and value. This filter only supports <code>eq</code> . Refer to [https://developer.avalara.com/avatax/filtering-in-rest/](https://developer.avalara.com/avatax/filtering-in-rest/) for more information on filtering. Filtering will be done over the provided startDate and endDate. If no startDate or endDate is provided, defaults will be assumed.. [optional]
620-
top (decimal.Decimal): If nonzero, return no more than this number of results. Used with <code>$skip</code> to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 200 records.. [optional]
619+
top (float): The number of items to include in the result.. [optional]
621620
skip (str): If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets.. [optional]
622621
_return_http_data_only (bool): response data without head status
623622
code and headers. Default is True.

Avalara/SDK/api/EInvoicing/V1/interop_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@author Jonathan Wenger <[email protected]>
2323
@copyright 2022 Avalara, Inc.
2424
@license https://www.apache.org/licenses/LICENSE-2.0
25-
@version 25.6.0
25+
@version 25.7.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -58,7 +58,7 @@ def __verify_api_client(self,api_client):
5858

5959
def __set_configuration(self, api_client):
6060
self.__verify_api_client(api_client)
61-
api_client.set_sdk_version("25.6.0")
61+
api_client.set_sdk_version("25.7.0")
6262
self.api_client = api_client
6363

6464
self.submit_interop_document_endpoint = _Endpoint(

Avalara/SDK/api/EInvoicing/V1/mandates_api.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@author Jonathan Wenger <[email protected]>
2323
@copyright 2022 Avalara, Inc.
2424
@license https://www.apache.org/licenses/LICENSE-2.0
25-
@version 25.6.0
25+
@version 25.7.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -40,9 +40,8 @@
4040
none_type,
4141
validate_and_convert_types
4242
)
43-
from decimal import Decimal
44-
from pydantic import Field, StrictStr
45-
from typing import List, Optional
43+
from pydantic import Field, StrictFloat, StrictInt, StrictStr
44+
from typing import List, Optional, Union
4645
from typing_extensions import Annotated
4746
from Avalara.SDK.models.EInvoicing.V1.mandate_data_input_field import MandateDataInputField
4847
from Avalara.SDK.models.EInvoicing.V1.mandates_response import MandatesResponse
@@ -60,7 +59,7 @@ def __verify_api_client(self,api_client):
6059

6160
def __set_configuration(self, api_client):
6261
self.__verify_api_client(api_client)
63-
api_client.set_sdk_version("25.6.0")
62+
api_client.set_sdk_version("25.7.0")
6463
self.api_client = api_client
6564

6665
self.get_mandate_data_input_fields_endpoint = _Endpoint(
@@ -184,9 +183,9 @@ def __set_configuration(self, api_client):
184183
'filter':
185184
(str,),
186185
'top':
187-
(decimal.Decimal,),
186+
(float,),
188187
'skip':
189-
(decimal.Decimal,),
188+
(str,),
190189
'count':
191190
(bool,),
192191
'count_only':
@@ -323,8 +322,8 @@ def get_mandates(
323322
Keyword Args:
324323
x_avalara_client (str): You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint.. [optional]
325324
filter (str): Filter by field name and value. This filter only supports <code>eq</code> and <code>contains</code>. Refer to [https://developer.avalara.com/avatax/filtering-in-rest/](https://developer.avalara.com/avatax/filtering-in-rest/) for more information on filtering.. [optional]
326-
top (decimal.Decimal): If nonzero, return no more than this number of results. Used with <code>$skip</code> to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.. [optional]
327-
skip (decimal.Decimal): If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets.. [optional]
325+
top (float): The number of items to include in the result.. [optional]
326+
skip (str): If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets.. [optional]
328327
count (bool): When set to true, the count of the collection is also returned in the response body.. [optional]
329328
count_only (bool): When set to true, only the count of the collection is returned. [optional]
330329
_return_http_data_only (bool): response data without head status

Avalara/SDK/api/EInvoicing/V1/subscriptions_api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@author Jonathan Wenger <[email protected]>
2323
@copyright 2022 Avalara, Inc.
2424
@license https://www.apache.org/licenses/LICENSE-2.0
25-
@version 25.6.0
25+
@version 25.7.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -40,8 +40,8 @@
4040
none_type,
4141
validate_and_convert_types
4242
)
43-
from pydantic import Field, StrictBool, StrictInt, StrictStr
44-
from typing import Optional
43+
from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
44+
from typing import Optional, Union
4545
from typing_extensions import Annotated
4646
from Avalara.SDK.models.EInvoicing.V1.subscription_detail import SubscriptionDetail
4747
from Avalara.SDK.models.EInvoicing.V1.subscription_list_response import SubscriptionListResponse
@@ -61,7 +61,7 @@ def __verify_api_client(self,api_client):
6161

6262
def __set_configuration(self, api_client):
6363
self.__verify_api_client(api_client)
64-
api_client.set_sdk_version("25.6.0")
64+
api_client.set_sdk_version("25.7.0")
6565
self.api_client = api_client
6666

6767
self.create_webhook_subscription_endpoint = _Endpoint(
@@ -319,9 +319,9 @@ def __set_configuration(self, api_client):
319319
'x_avalara_client':
320320
(str,),
321321
'top':
322-
(int,),
322+
(float,),
323323
'skip':
324-
(int,),
324+
(float,),
325325
'count':
326326
(bool,),
327327
'count_only':
@@ -597,8 +597,8 @@ def list_webhook_subscriptions(
597597
Keyword Args:
598598
x_correlation_id (str): A unique identifier for tracking the request and its response. [optional]
599599
x_avalara_client (str): Client application identification. [optional]
600-
top (int): The number of items to include in the result.. [optional]
601-
skip (int): The number of items to skip in the result.. [optional]
600+
top (float): The number of items to include in the result.. [optional]
601+
skip (float): The number of items to skip in the result.. [optional]
602602
count (bool): Whether to include the total count of records in the result.. [optional]
603603
count_only (bool): Whether to return only the count of records, without the list of records.. [optional]
604604
_return_http_data_only (bool): response data without head status

0 commit comments

Comments
 (0)