Skip to content

Commit 45af0ac

Browse files
25.9.0 (#12)
* update to handle X-avalara-Client being set by consumer * 25.9.0
1 parent 594dc3c commit 45af0ac

File tree

198 files changed

+2255
-913
lines changed

Some content is hidden

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

198 files changed

+2255
-913
lines changed

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

Lines changed: 13 additions & 13 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.8.3
25+
@version 25.9.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -43,8 +43,8 @@
4343
from pydantic import Field, StrictBool, StrictInt, StrictStr
4444
from typing import Optional
4545
from typing_extensions import Annotated
46+
from Avalara.SDK.models.A1099.V2.company_request import CompanyRequest
4647
from Avalara.SDK.models.A1099.V2.company_response import CompanyResponse
47-
from Avalara.SDK.models.A1099.V2.create_company_request import CreateCompanyRequest
4848
from Avalara.SDK.models.A1099.V2.paginated_query_result_model_company_response import PaginatedQueryResultModelCompanyResponse
4949
from Avalara.SDK.exceptions import ApiTypeError, ApiValueError, ApiException
5050
from Avalara.SDK.oauth_helper.AvalaraSdkOauthUtils import avalara_retry_oauth
@@ -60,7 +60,7 @@ def __verify_api_client(self,api_client):
6060

6161
def __set_configuration(self, api_client):
6262
self.__verify_api_client(api_client)
63-
api_client.set_sdk_version("25.8.3")
63+
api_client.set_sdk_version("25.9.0")
6464
self.api_client = api_client
6565

6666
self.create_company_endpoint = _Endpoint(
@@ -79,7 +79,7 @@ def __set_configuration(self, api_client):
7979
'avalara_version',
8080
'x_correlation_id',
8181
'x_avalara_client',
82-
'create_company_request',
82+
'company_request',
8383
],
8484
'required': [
8585
'avalara_version',
@@ -103,8 +103,8 @@ def __set_configuration(self, api_client):
103103
(str,),
104104
'x_avalara_client':
105105
(str,),
106-
'create_company_request':
107-
(CreateCompanyRequest,),
106+
'company_request':
107+
(CompanyRequest,),
108108
},
109109
'attribute_map': {
110110
'avalara_version': 'avalara-version',
@@ -115,7 +115,7 @@ def __set_configuration(self, api_client):
115115
'avalara_version': 'header',
116116
'x_correlation_id': 'header',
117117
'x_avalara_client': 'header',
118-
'create_company_request': 'body',
118+
'company_request': 'body',
119119
},
120120
'collection_format_map': {
121121
}
@@ -386,7 +386,7 @@ def __set_configuration(self, api_client):
386386
'avalara_version',
387387
'x_correlation_id',
388388
'x_avalara_client',
389-
'create_company_request',
389+
'company_request',
390390
],
391391
'required': [
392392
'id',
@@ -413,8 +413,8 @@ def __set_configuration(self, api_client):
413413
(str,),
414414
'x_avalara_client':
415415
(str,),
416-
'create_company_request':
417-
(CreateCompanyRequest,),
416+
'company_request':
417+
(CompanyRequest,),
418418
},
419419
'attribute_map': {
420420
'id': 'id',
@@ -427,7 +427,7 @@ def __set_configuration(self, api_client):
427427
'avalara_version': 'header',
428428
'x_correlation_id': 'header',
429429
'x_avalara_client': 'header',
430-
'create_company_request': 'body',
430+
'company_request': 'body',
431431
},
432432
'collection_format_map': {
433433
}
@@ -469,7 +469,7 @@ def create_company(
469469
Keyword Args:
470470
x_correlation_id (str): Unique correlation Id in a GUID format. [optional]
471471
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]
472-
create_company_request (CreateCompanyRequest): The company to create. [optional]
472+
company_request (CompanyRequest): The company to create. [optional]
473473
_return_http_data_only (bool): response data without head status
474474
code and headers. Default is True.
475475
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -760,7 +760,7 @@ def update_company(
760760
Keyword Args:
761761
x_correlation_id (str): Unique correlation Id in a GUID format. [optional]
762762
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]
763-
create_company_request (CreateCompanyRequest): The updated company data. [optional]
763+
company_request (CompanyRequest): The updated company data. [optional]
764764
_return_http_data_only (bool): response data without head status
765765
code and headers. Default is True.
766766
_preload_content (bool): if False, the urllib3.HTTPResponse object

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

Lines changed: 5 additions & 5 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.8.3
25+
@version 25.9.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -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.8.3")
64+
api_client.set_sdk_version("25.9.0")
6565
self.api_client = api_client
6666

6767
self.bulk_upsert1099_forms_endpoint = _Endpoint(
@@ -610,7 +610,7 @@ def bulk_upsert1099_forms(
610610
):
611611
"""Create or update multiple 1099/1095/W2/1042S forms # noqa: E501
612612
613-
This endpoint allows you to create or update multiple 1099/1095/W2/1042S forms. Maximum of 5000 forms can be processed in a single bulk request. # noqa: E501
613+
This endpoint allows you to create or update multiple 1099/1095/W2/1042S forms. Maximum of 5000 forms can be processed in a single bulk request. **Date Scheduling Rules:** If federalEfileDate, stateEfileDate, or recipientEdeliveryDate are between current date and beginning of blackout period, scheduled to that date. If dates are in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. StateEfileDate must be on or after federalEfileDate. Set dates to null to leave unscheduled. # noqa: E501
614614
This method makes a synchronous HTTP request by default. To make an
615615
asynchronous HTTP request, please pass async_req=True
616616
@@ -681,7 +681,7 @@ def create1099_form(
681681
):
682682
"""Create a 1099/1095/W2/1042S form # noqa: E501
683683
684-
Create a 1099/1095/W2/1042S form. # noqa: E501
684+
Create a 1099/1095/W2/1042S form. **Date Scheduling Rules:** If federalEfileDate, stateEfileDate, or recipientEdeliveryDate are between current date and beginning of blackout period, scheduled to that date. If dates are in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. StateEfileDate must be on or after federalEfileDate. Set dates to null to leave unscheduled. # noqa: E501
685685
This method makes a synchronous HTTP request by default. To make an
686686
asynchronous HTTP request, please pass async_req=True
687687
@@ -1044,7 +1044,7 @@ def update1099_form(
10441044
):
10451045
"""Update a 1099/1095/W2/1042S form # noqa: E501
10461046
1047-
Update a 1099/1095/W2/1042S form. # noqa: E501
1047+
Update a 1099/1095/W2/1042S form. **Date Update Rules:** Possible to update scheduled dates (same validation rules apply). Cannot change from scheduled to unscheduled status - must delete form and create new one. If dates are between current date and blackout period, scheduled to that date. If dates are in past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. StateEfileDate must be on or after federalEfileDate. # noqa: E501
10481048
This method makes a synchronous HTTP request by default. To make an
10491049
asynchronous HTTP request, please pass async_req=True
10501050

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

Lines changed: 10 additions & 11 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.8.3
25+
@version 25.9.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -46,7 +46,6 @@
4646
from Avalara.SDK.models.A1099.V2.create_and_send_w9_form_email_request import CreateAndSendW9FormEmailRequest
4747
from Avalara.SDK.models.A1099.V2.create_w9_form201_response import CreateW9Form201Response
4848
from Avalara.SDK.models.A1099.V2.create_w9_form_request import CreateW9FormRequest
49-
from Avalara.SDK.models.A1099.V2.iw9_form_data_models_one_of import IW9FormDataModelsOneOf
5049
from Avalara.SDK.models.A1099.V2.paginated_query_result_model_w9_form_base_response import PaginatedQueryResultModelW9FormBaseResponse
5150
from Avalara.SDK.exceptions import ApiTypeError, ApiValueError, ApiException
5251
from Avalara.SDK.oauth_helper.AvalaraSdkOauthUtils import avalara_retry_oauth
@@ -62,7 +61,7 @@ def __verify_api_client(self,api_client):
6261

6362
def __set_configuration(self, api_client):
6463
self.__verify_api_client(api_client)
65-
api_client.set_sdk_version("25.8.3")
64+
api_client.set_sdk_version("25.9.0")
6665
self.api_client = api_client
6766

6867
self.create_and_send_w9_form_email_endpoint = _Endpoint(
@@ -515,7 +514,7 @@ def __set_configuration(self, api_client):
515514
)
516515
self.update_w9_form_endpoint = _Endpoint(
517516
settings={
518-
'response_type': (IW9FormDataModelsOneOf,),
517+
'response_type': (CreateW9Form201Response,),
519518
'auth': [
520519
'bearer'
521520
],
@@ -530,7 +529,7 @@ def __set_configuration(self, api_client):
530529
'avalara_version',
531530
'x_correlation_id',
532531
'x_avalara_client',
533-
'iw9_form_data_models_one_of',
532+
'create_w9_form_request',
534533
],
535534
'required': [
536535
'id',
@@ -557,8 +556,8 @@ def __set_configuration(self, api_client):
557556
(str,),
558557
'x_avalara_client':
559558
(str,),
560-
'iw9_form_data_models_one_of':
561-
(IW9FormDataModelsOneOf,),
559+
'create_w9_form_request':
560+
(CreateW9FormRequest,),
562561
},
563562
'attribute_map': {
564563
'id': 'id',
@@ -571,7 +570,7 @@ def __set_configuration(self, api_client):
571570
'avalara_version': 'header',
572571
'x_correlation_id': 'header',
573572
'x_avalara_client': 'header',
574-
'iw9_form_data_models_one_of': 'body',
573+
'create_w9_form_request': 'body',
575574
},
576575
'collection_format_map': {
577576
}
@@ -1037,7 +1036,7 @@ def send_w9_form_email(
10371036
):
10381037
"""Send an email to the vendor/payee requesting they fill out a W9/W4/W8 form # noqa: E501
10391038
1040-
Send an email to the vendor/payee requesting they fill out a W9/W4/W8 form. If the form is not in 'Requested' status, it will either use an existing descendant form in 'Requested' status or create a new minimal form and send the email request. # noqa: E501
1039+
Send an email to the vendor/payee requesting they fill out a W9/W4/W8 form. If the form is not in 'Requested' status, it will either use an existing descendant form in 'Requested' status or create a new minimal form and send the email request. # noqa: E501
10411040
This method makes a synchronous HTTP request by default. To make an
10421041
asynchronous HTTP request, please pass async_req=True
10431042
@@ -1123,7 +1122,7 @@ def update_w9_form(
11231122
Keyword Args:
11241123
x_correlation_id (str): Unique correlation Id in a GUID format. [optional]
11251124
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]
1126-
iw9_form_data_models_one_of (IW9FormDataModelsOneOf): Form to be updated. [optional]
1125+
create_w9_form_request (CreateW9FormRequest): Form to be updated. [optional]
11271126
_return_http_data_only (bool): response data without head status
11281127
code and headers. Default is True.
11291128
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -1145,7 +1144,7 @@ def update_w9_form(
11451144
async_req (bool): execute request asynchronously
11461145
11471146
Returns:
1148-
IW9FormDataModelsOneOf
1147+
CreateW9Form201Response
11491148
If the method is called asynchronously, returns the request
11501149
thread.
11511150
"""

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

Lines changed: 13 additions & 13 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.8.3
25+
@version 25.9.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -43,7 +43,7 @@
4343
from pydantic import Field, StrictBool, StrictInt, StrictStr
4444
from typing import Optional
4545
from typing_extensions import Annotated
46-
from Avalara.SDK.models.A1099.V2.create_issuer_request import CreateIssuerRequest
46+
from Avalara.SDK.models.A1099.V2.issuer_request import IssuerRequest
4747
from Avalara.SDK.models.A1099.V2.issuer_response import IssuerResponse
4848
from Avalara.SDK.models.A1099.V2.paginated_query_result_model_issuer_response import PaginatedQueryResultModelIssuerResponse
4949
from Avalara.SDK.exceptions import ApiTypeError, ApiValueError, ApiException
@@ -60,7 +60,7 @@ def __verify_api_client(self,api_client):
6060

6161
def __set_configuration(self, api_client):
6262
self.__verify_api_client(api_client)
63-
api_client.set_sdk_version("25.8.3")
63+
api_client.set_sdk_version("25.9.0")
6464
self.api_client = api_client
6565

6666
self.create_issuer_endpoint = _Endpoint(
@@ -79,7 +79,7 @@ def __set_configuration(self, api_client):
7979
'avalara_version',
8080
'x_correlation_id',
8181
'x_avalara_client',
82-
'create_issuer_request',
82+
'issuer_request',
8383
],
8484
'required': [
8585
'avalara_version',
@@ -103,8 +103,8 @@ def __set_configuration(self, api_client):
103103
(str,),
104104
'x_avalara_client':
105105
(str,),
106-
'create_issuer_request':
107-
(CreateIssuerRequest,),
106+
'issuer_request':
107+
(IssuerRequest,),
108108
},
109109
'attribute_map': {
110110
'avalara_version': 'avalara-version',
@@ -115,7 +115,7 @@ def __set_configuration(self, api_client):
115115
'avalara_version': 'header',
116116
'x_correlation_id': 'header',
117117
'x_avalara_client': 'header',
118-
'create_issuer_request': 'body',
118+
'issuer_request': 'body',
119119
},
120120
'collection_format_map': {
121121
}
@@ -386,7 +386,7 @@ def __set_configuration(self, api_client):
386386
'avalara_version',
387387
'x_correlation_id',
388388
'x_avalara_client',
389-
'create_issuer_request',
389+
'issuer_request',
390390
],
391391
'required': [
392392
'id',
@@ -413,8 +413,8 @@ def __set_configuration(self, api_client):
413413
(str,),
414414
'x_avalara_client':
415415
(str,),
416-
'create_issuer_request':
417-
(CreateIssuerRequest,),
416+
'issuer_request':
417+
(IssuerRequest,),
418418
},
419419
'attribute_map': {
420420
'id': 'id',
@@ -427,7 +427,7 @@ def __set_configuration(self, api_client):
427427
'avalara_version': 'header',
428428
'x_correlation_id': 'header',
429429
'x_avalara_client': 'header',
430-
'create_issuer_request': 'body',
430+
'issuer_request': 'body',
431431
},
432432
'collection_format_map': {
433433
}
@@ -469,7 +469,7 @@ def create_issuer(
469469
Keyword Args:
470470
x_correlation_id (str): Unique correlation Id in a GUID format. [optional]
471471
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]
472-
create_issuer_request (CreateIssuerRequest): The issuer to create. [optional]
472+
issuer_request (IssuerRequest): The issuer to create. [optional]
473473
_return_http_data_only (bool): response data without head status
474474
code and headers. Default is True.
475475
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -760,7 +760,7 @@ def update_issuer(
760760
Keyword Args:
761761
x_correlation_id (str): Unique correlation Id in a GUID format. [optional]
762762
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]
763-
create_issuer_request (CreateIssuerRequest): The issuer to update. [optional]
763+
issuer_request (IssuerRequest): The issuer to update. [optional]
764764
_return_http_data_only (bool): response data without head status
765765
code and headers. Default is True.
766766
_preload_content (bool): if False, the urllib3.HTTPResponse object

Avalara/SDK/api/A1099/V2/jobs_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.8.3
25+
@version 25.9.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.8.3")
61+
api_client.set_sdk_version("25.9.0")
6262
self.api_client = api_client
6363

6464
self.get_job_endpoint = _Endpoint(

Avalara/SDK/api/EInvoicing/V1/data_input_fields_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.8.3
25+
@version 25.9.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.8.3")
61+
api_client.set_sdk_version("25.9.0")
6262
self.api_client = api_client
6363

6464
self.get_data_input_fields_endpoint = _Endpoint(

Avalara/SDK/api/EInvoicing/V1/documents_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.8.3
25+
@version 25.9.0
2626
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
2727
"""
2828

@@ -64,7 +64,7 @@ def __verify_api_client(self,api_client):
6464

6565
def __set_configuration(self, api_client):
6666
self.__verify_api_client(api_client)
67-
api_client.set_sdk_version("25.8.3")
67+
api_client.set_sdk_version("25.9.0")
6868
self.api_client = api_client
6969

7070
self.download_document_endpoint = _Endpoint(

0 commit comments

Comments
 (0)