Skip to content

Commit 22a2f78

Browse files
authored
Merge pull request #41 from XeroAPI/sid-development
Add Files API support and build from OAS 2.10.1
2 parents 4ac8b2d + 5b132e7 commit 22a2f78

Some content is hidden

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

42 files changed

+3943
-86
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ def read_file(filename):
4848
keywords="xero python sdk API oAuth",
4949
name="xero_python",
5050
packages=find_packages(include=["xero_python", "xero_python.*"]),
51-
version="1.4.0",
51+
version="1.5.0",
5252
)

xero_python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """Xero Developer API"""
44
__email__ = "[email protected]"
5-
__version__ = "1.4.0"
5+
__version__ = "1.5.0"

xero_python/accounting/api/accounting_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
"""
13-
OpenAPI spec version: 2.9.3
13+
OpenAPI spec version: 2.10.1
1414
"""
1515

1616
import importlib

xero_python/accounting/docs/BatchPayment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
1919
**total_amount** | **str** | The total of the payments that make up the batch (read-only) | [optional]
2020
**updated_date_utc** | **datetime** | UTC timestamp of last update to the payment | [optional]
2121
**is_reconciled** | **str** | Booelan that tells you if the batch payment has been reconciled (read-only) | [optional]
22+
**validation_errors** | [**list[ValidationError]**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
2223

2324
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2425

xero_python/accounting/docs/ImportSummaryAccounts.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**total** | **float** | The total number of accounts in the org | [optional]
7-
**new** | **float** | The number of new accounts created | [optional]
8-
**updated** | **float** | The number of accounts updated | [optional]
9-
**deleted** | **float** | The number of accounts deleted | [optional]
10-
**locked** | **float** | The number of locked accounts | [optional]
11-
**system** | **float** | The number of system accounts | [optional]
12-
**errored** | **float** | The number of accounts that had an error | [optional]
6+
**total** | **int** | The total number of accounts in the org | [optional]
7+
**new** | **int** | The number of new accounts created | [optional]
8+
**updated** | **int** | The number of accounts updated | [optional]
9+
**deleted** | **int** | The number of accounts deleted | [optional]
10+
**locked** | **int** | The number of locked accounts | [optional]
11+
**system** | **int** | The number of system accounts | [optional]
12+
**errored** | **int** | The number of accounts that had an error | [optional]
1313
**present** | **bool** | | [optional]
14-
**new_or_updated** | **float** | The number of new or updated accounts | [optional]
14+
**new_or_updated** | **int** | The number of new or updated accounts | [optional]
1515

1616
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1717

xero_python/accounting/models/batch_payment.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class BatchPayment(BaseModel):
4646
"total_amount": "str",
4747
"updated_date_utc": "datetime[ms-format]",
4848
"is_reconciled": "str",
49+
"validation_errors": "list[ValidationError]",
4950
}
5051

5152
attribute_map = {
@@ -65,6 +66,7 @@ class BatchPayment(BaseModel):
6566
"total_amount": "TotalAmount",
6667
"updated_date_utc": "UpdatedDateUTC",
6768
"is_reconciled": "IsReconciled",
69+
"validation_errors": "ValidationErrors",
6870
}
6971

7072
def __init__(
@@ -85,6 +87,7 @@ def __init__(
8587
total_amount=None,
8688
updated_date_utc=None,
8789
is_reconciled=None,
90+
validation_errors=None,
8891
): # noqa: E501
8992
"""BatchPayment - a model defined in OpenAPI""" # noqa: E501
9093

@@ -104,6 +107,7 @@ def __init__(
104107
self._total_amount = None
105108
self._updated_date_utc = None
106109
self._is_reconciled = None
110+
self._validation_errors = None
107111
self.discriminator = None
108112

109113
if account is not None:
@@ -138,6 +142,8 @@ def __init__(
138142
self.updated_date_utc = updated_date_utc
139143
if is_reconciled is not None:
140144
self.is_reconciled = is_reconciled
145+
if validation_errors is not None:
146+
self.validation_errors = validation_errors
141147

142148
@property
143149
def account(self):
@@ -541,3 +547,26 @@ def is_reconciled(self, is_reconciled):
541547
"""
542548

543549
self._is_reconciled = is_reconciled
550+
551+
@property
552+
def validation_errors(self):
553+
"""Gets the validation_errors of this BatchPayment. # noqa: E501
554+
555+
Displays array of validation error messages from the API # noqa: E501
556+
557+
:return: The validation_errors of this BatchPayment. # noqa: E501
558+
:rtype: list[ValidationError]
559+
"""
560+
return self._validation_errors
561+
562+
@validation_errors.setter
563+
def validation_errors(self, validation_errors):
564+
"""Sets the validation_errors of this BatchPayment.
565+
566+
Displays array of validation error messages from the API # noqa: E501
567+
568+
:param validation_errors: The validation_errors of this BatchPayment. # noqa: E501
569+
:type: list[ValidationError]
570+
"""
571+
572+
self._validation_errors = validation_errors

xero_python/accounting/models/import_summary_accounts.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ class ImportSummaryAccounts(BaseModel):
3030
and the value is json key in definition.
3131
"""
3232
openapi_types = {
33-
"total": "float",
34-
"new": "float",
35-
"updated": "float",
36-
"deleted": "float",
37-
"locked": "float",
38-
"system": "float",
39-
"errored": "float",
33+
"total": "int",
34+
"new": "int",
35+
"updated": "int",
36+
"deleted": "int",
37+
"locked": "int",
38+
"system": "int",
39+
"errored": "int",
4040
"present": "bool",
41-
"new_or_updated": "float",
41+
"new_or_updated": "int",
4242
}
4343

4444
attribute_map = {
@@ -104,7 +104,7 @@ def total(self):
104104
The total number of accounts in the org # noqa: E501
105105
106106
:return: The total of this ImportSummaryAccounts. # noqa: E501
107-
:rtype: float
107+
:rtype: int
108108
"""
109109
return self._total
110110

@@ -115,7 +115,7 @@ def total(self, total):
115115
The total number of accounts in the org # noqa: E501
116116
117117
:param total: The total of this ImportSummaryAccounts. # noqa: E501
118-
:type: float
118+
:type: int
119119
"""
120120

121121
self._total = total
@@ -127,7 +127,7 @@ def new(self):
127127
The number of new accounts created # noqa: E501
128128
129129
:return: The new of this ImportSummaryAccounts. # noqa: E501
130-
:rtype: float
130+
:rtype: int
131131
"""
132132
return self._new
133133

@@ -138,7 +138,7 @@ def new(self, new):
138138
The number of new accounts created # noqa: E501
139139
140140
:param new: The new of this ImportSummaryAccounts. # noqa: E501
141-
:type: float
141+
:type: int
142142
"""
143143

144144
self._new = new
@@ -150,7 +150,7 @@ def updated(self):
150150
The number of accounts updated # noqa: E501
151151
152152
:return: The updated of this ImportSummaryAccounts. # noqa: E501
153-
:rtype: float
153+
:rtype: int
154154
"""
155155
return self._updated
156156

@@ -161,7 +161,7 @@ def updated(self, updated):
161161
The number of accounts updated # noqa: E501
162162
163163
:param updated: The updated of this ImportSummaryAccounts. # noqa: E501
164-
:type: float
164+
:type: int
165165
"""
166166

167167
self._updated = updated
@@ -173,7 +173,7 @@ def deleted(self):
173173
The number of accounts deleted # noqa: E501
174174
175175
:return: The deleted of this ImportSummaryAccounts. # noqa: E501
176-
:rtype: float
176+
:rtype: int
177177
"""
178178
return self._deleted
179179

@@ -184,7 +184,7 @@ def deleted(self, deleted):
184184
The number of accounts deleted # noqa: E501
185185
186186
:param deleted: The deleted of this ImportSummaryAccounts. # noqa: E501
187-
:type: float
187+
:type: int
188188
"""
189189

190190
self._deleted = deleted
@@ -196,7 +196,7 @@ def locked(self):
196196
The number of locked accounts # noqa: E501
197197
198198
:return: The locked of this ImportSummaryAccounts. # noqa: E501
199-
:rtype: float
199+
:rtype: int
200200
"""
201201
return self._locked
202202

@@ -207,7 +207,7 @@ def locked(self, locked):
207207
The number of locked accounts # noqa: E501
208208
209209
:param locked: The locked of this ImportSummaryAccounts. # noqa: E501
210-
:type: float
210+
:type: int
211211
"""
212212

213213
self._locked = locked
@@ -219,7 +219,7 @@ def system(self):
219219
The number of system accounts # noqa: E501
220220
221221
:return: The system of this ImportSummaryAccounts. # noqa: E501
222-
:rtype: float
222+
:rtype: int
223223
"""
224224
return self._system
225225

@@ -230,7 +230,7 @@ def system(self, system):
230230
The number of system accounts # noqa: E501
231231
232232
:param system: The system of this ImportSummaryAccounts. # noqa: E501
233-
:type: float
233+
:type: int
234234
"""
235235

236236
self._system = system
@@ -242,7 +242,7 @@ def errored(self):
242242
The number of accounts that had an error # noqa: E501
243243
244244
:return: The errored of this ImportSummaryAccounts. # noqa: E501
245-
:rtype: float
245+
:rtype: int
246246
"""
247247
return self._errored
248248

@@ -253,7 +253,7 @@ def errored(self, errored):
253253
The number of accounts that had an error # noqa: E501
254254
255255
:param errored: The errored of this ImportSummaryAccounts. # noqa: E501
256-
:type: float
256+
:type: int
257257
"""
258258

259259
self._errored = errored
@@ -286,7 +286,7 @@ def new_or_updated(self):
286286
The number of new or updated accounts # noqa: E501
287287
288288
:return: The new_or_updated of this ImportSummaryAccounts. # noqa: E501
289-
:rtype: float
289+
:rtype: int
290290
"""
291291
return self._new_or_updated
292292

@@ -297,7 +297,7 @@ def new_or_updated(self, new_or_updated):
297297
The number of new or updated accounts # noqa: E501
298298
299299
:param new_or_updated: The new_or_updated of this ImportSummaryAccounts. # noqa: E501
300-
:type: float
300+
:type: int
301301
"""
302302

303303
self._new_or_updated = new_or_updated

xero_python/assets/api/asset_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
"""
13-
OpenAPI spec version: 2.9.3
13+
OpenAPI spec version: 2.10.1
1414
"""
1515

1616
import importlib

xero_python/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ These endpoints are related to managing authentication tokens and identity for X
33

44
The `xero_python` package is automatically generated by the [XeroAPI SDK 2.0 Codegen](https://github.com/xero-github/xeroapi-sdk-codegen) project:
55

6-
- API version: 2.9.3
7-
- Package version: 1.4.0
6+
- API version: 2.10.1
7+
- Package version: 1.5.0
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://developer.xero.com](https://developer.xero.com)
1010

xero_python/file/__init__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
Xero Files API
7+
8+
These endpoints are specific to Xero Files API # noqa: E501
9+
10+
11+
Generated by: https://openapi-generator.tech
12+
"""
13+
14+
15+
# import apis into sdk package
16+
from xero_python.file.api.files_api import FilesApi
17+
18+
19+
# import models into sdk package
20+
from xero_python.file.models.association import Association
21+
from xero_python.file.models.file_object import FileObject
22+
from xero_python.file.models.files import Files
23+
from xero_python.file.models.folder import Folder
24+
from xero_python.file.models.folders import Folders
25+
from xero_python.file.models.inline_object import InlineObject
26+
from xero_python.file.models.object_group import ObjectGroup
27+
from xero_python.file.models.object_type import ObjectType
28+
from xero_python.file.models.user import User

0 commit comments

Comments
 (0)