Skip to content

Commit c6c0b37

Browse files
Merge pull request #7 from avadev/25.8.0
Fix for skip and top
2 parents 9f994c1 + 5d074bd commit c6c0b37

13 files changed

+69
-72
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
none_type,
4141
validate_and_convert_types
4242
)
43-
from decimal import Decimal
44-
from pydantic import Field, StrictStr
43+
from pydantic import Field, StrictInt, StrictStr
4544
from typing import Optional
4645
from typing_extensions import Annotated
4746
from Avalara.SDK.models.EInvoicing.V1.data_input_fields_response import DataInputFieldsResponse
@@ -106,9 +105,9 @@ def __set_configuration(self, api_client):
106105
'filter':
107106
(str,),
108107
'top':
109-
(decimal.Decimal,),
108+
(int,),
110109
'skip':
111-
(decimal.Decimal,),
110+
(int,),
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 (int): The number of items to include in the result.. [optional]
171+
skip (int): The number of items to skip in the result.. [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
@@ -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, 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
@@ -264,9 +263,9 @@ def __set_configuration(self, api_client):
264263
'filter':
265264
(str,),
266265
'top':
267-
(decimal.Decimal,),
266+
(int,),
268267
'skip':
269-
(str,),
268+
(int,),
270269
},
271270
'attribute_map': {
272271
'avalara_version': 'avalara-version',
@@ -617,8 +616,8 @@ 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]
621-
skip (str): If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets.. [optional]
619+
top (int): The number of items to include in the result.. [optional]
620+
skip (int): The number of items to skip in the result.. [optional]
622621
_return_http_data_only (bool): response data without head status
623622
code and headers. Default is True.
624623
_preload_content (bool): if False, the urllib3.HTTPResponse object

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
none_type,
4141
validate_and_convert_types
4242
)
43-
from decimal import Decimal
44-
from pydantic import Field, StrictStr
43+
from pydantic import Field, StrictInt, StrictStr
4544
from typing import List, Optional
4645
from typing_extensions import Annotated
4746
from Avalara.SDK.models.EInvoicing.V1.mandate_data_input_field import MandateDataInputField
@@ -184,9 +183,9 @@ def __set_configuration(self, api_client):
184183
'filter':
185184
(str,),
186185
'top':
187-
(decimal.Decimal,),
186+
(int,),
188187
'skip':
189-
(decimal.Decimal,),
188+
(int,),
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 (int): The number of items to include in the result.. [optional]
326+
skip (int): The number of items to skip in the result.. [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/trading_partners_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
none_type,
4141
validate_and_convert_types
4242
)
43-
from pydantic import Field, StrictBool, StrictBytes, StrictStr
43+
from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr
4444
from typing import Optional, Union
4545
from typing_extensions import Annotated
4646
from Avalara.SDK.models.EInvoicing.V1.batch_search import BatchSearch
@@ -553,9 +553,9 @@ def __set_configuration(self, api_client):
553553
'count':
554554
(bool,),
555555
'top':
556-
(str,),
556+
(int,),
557557
'skip':
558-
(str,),
558+
(int,),
559559
'order_by':
560560
(str,),
561561
'x_correlation_id':
@@ -646,9 +646,9 @@ def __set_configuration(self, api_client):
646646
'filter':
647647
(str,),
648648
'top':
649-
(str,),
649+
(int,),
650650
'skip':
651-
(str,),
651+
(int,),
652652
'order_by':
653653
(str,),
654654
'x_correlation_id':
@@ -1228,8 +1228,8 @@ def list_batch_searches(
12281228
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]
12291229
filter (str): Filters the results by field name. Only the <code>eq</code> operator and the name field is supported. For more information, refer to [AvaTax filtering guide](https://developer.avalara.com/avatax/filtering-in-rest/).. [optional]
12301230
count (bool): When set to <code>true</code>, returns the total count of matching records included as <code>@recordSetCount</code> in the response body.. [optional]
1231-
top (str): 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]
1232-
skip (str): If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets.. [optional]
1231+
top (int): The number of items to include in the result.. [optional]
1232+
skip (int): The number of items to skip in the result.. [optional]
12331233
order_by (str): The <code>$orderBy</code> query parameter specifies the field and sorting direction for ordering the result set. The value is a string that combines a field name and a sorting direction (asc for ascending or desc for descending), separated by a space.. [optional]
12341234
x_correlation_id (str): The caller can use this as an identifier to use as a correlation id to trace the call.. [optional]
12351235
_return_http_data_only (bool): response data without head status
@@ -1304,8 +1304,8 @@ def search_participants(
13041304
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]
13051305
count (bool): When set to <code>true</code>, returns the total count of matching records included as <code>@recordSetCount</code> in the response body.. [optional]
13061306
filter (str): Filters the results using the <code>eq</code> operator. Supported fields: <code>network</code>, <code>country</code>, <code>documentType</code>, <code>idType</code>. For more information, refer to [AvaTax filtering guide](https://developer.avalara.com/avatax/filtering-in-rest/).. [optional]
1307-
top (str): 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]
1308-
skip (str): If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets.. [optional]
1307+
top (int): The number of items to include in the result.. [optional]
1308+
skip (int): The number of items to skip in the result.. [optional]
13091309
order_by (str): The <code>$orderBy</code> query parameter specifies the field and sorting direction for ordering the result set. The value is a string that combines a field name and a sorting direction (asc for ascending or desc for descending), separated by a space.. [optional]
13101310
x_correlation_id (str): The caller can use this as an identifier to use as a correlation id to trace the call.. [optional]
13111311
_return_http_data_only (bool): response data without head status

docs/A1099/V2/CompaniesW9Api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client:
4545
# Create an instance of the API class
4646
api_instance = companies_w9_api.CompaniesW9Api(api_client)
4747
avalara_version = '2.0.0' # str | API version
48-
x_correlation_id = 'fe0b2c61-3b02-476a-ab45-cffe1b04e41a' # str | Unique correlation Id in a GUID format (optional)
48+
x_correlation_id = '144f810d-5777-472b-b372-c1028d9a13ae' # str | Unique correlation Id in a GUID format (optional)
4949
x_avalara_client = 'Swagger UI; 22.1.0' # 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)
5050
company_create_update_request_model = Avalara.SDK.CompanyCreateUpdateRequestModel() # CompanyCreateUpdateRequestModel | The company to create (optional)
5151
# example passing only required values which don't have defaults set
@@ -132,7 +132,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client:
132132
api_instance = companies_w9_api.CompaniesW9Api(api_client)
133133
id = 'id_example' # str | The company to delete
134134
avalara_version = '2.0.0' # str | API version
135-
x_correlation_id = '250cdf61-a491-4fce-9544-33316d95a0a2' # str | Unique correlation Id in a GUID format (optional)
135+
x_correlation_id = 'db071c51-528f-4929-a031-523aa34002d1' # str | Unique correlation Id in a GUID format (optional)
136136
x_avalara_client = 'Swagger UI; 22.1.0' # 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)
137137
# example passing only required values which don't have defaults set
138138
try:
@@ -224,7 +224,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client:
224224
order_by = 'order_by_example' # str | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional)
225225
count = True # bool | If true, return the global count of elements in the collection. (optional)
226226
count_only = True # bool | If true, return ONLY the global count of elements in the collection. It only applies when count=true. (optional)
227-
x_correlation_id = '9bc362f8-548a-4a98-b44b-37da159b8126' # str | Unique correlation Id in a GUID format (optional)
227+
x_correlation_id = '7ad30f3a-b27d-440e-98da-516663741d89' # str | Unique correlation Id in a GUID format (optional)
228228
x_avalara_client = 'Swagger UI; 22.1.0' # 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)
229229
# example passing only required values which don't have defaults set
230230
try:
@@ -318,7 +318,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client:
318318
api_instance = companies_w9_api.CompaniesW9Api(api_client)
319319
id = 'id_example' # str | Id of the company
320320
avalara_version = '2.0.0' # str | API version
321-
x_correlation_id = '1c9d767c-523c-42c5-bbcb-5158761b48a0' # str | Unique correlation Id in a GUID format (optional)
321+
x_correlation_id = '77521b27-805c-40b1-a6c8-3d6339acba99' # str | Unique correlation Id in a GUID format (optional)
322322
x_avalara_client = 'Swagger UI; 22.1.0' # 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)
323323
# example passing only required values which don't have defaults set
324324
try:
@@ -408,7 +408,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client:
408408
api_instance = companies_w9_api.CompaniesW9Api(api_client)
409409
id = 'id_example' # str | The ID of the company to update
410410
avalara_version = '2.0.0' # str | API version
411-
x_correlation_id = '03774e95-4208-4f91-a5c8-e218fcb3c0a4' # str | Unique correlation Id in a GUID format (optional)
411+
x_correlation_id = '9b982dee-5208-416e-8acf-84070e235acc' # str | Unique correlation Id in a GUID format (optional)
412412
x_avalara_client = 'Swagger UI; 22.1.0' # 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)
413413
company_create_update_request_model = Avalara.SDK.CompanyCreateUpdateRequestModel() # CompanyCreateUpdateRequestModel | The updated company data (optional)
414414
# example passing only required values which don't have defaults set

0 commit comments

Comments
 (0)