Skip to content

Commit 542cf06

Browse files
committed
Build from OAS 2.8.4
1 parent 70bda09 commit 542cf06

File tree

452 files changed

+833
-1037
lines changed

Some content is hidden

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

452 files changed

+833
-1037
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.2.0",
51+
version="1.3.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.2.0"
5+
__version__ = "1.3.0"

xero_python/accounting/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
88
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
99
10-
OpenAPI spec version: 2.7.0
1110
1211
Generated by: https://openapi-generator.tech
1312
"""

xero_python/accounting/api/accounting_api.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55

66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77

8-
OpenAPI spec version: 2.7.0
98
109
Generated by: https://openapi-generator.tech
1110
"""
1211

12+
"""
13+
OpenAPI spec version: 2.8.4
14+
"""
1315

1416
import importlib
1517
import re # noqa: F401
@@ -705,7 +707,7 @@ def create_bank_transfer_history_record(
705707
_preload_content=True,
706708
_request_timeout=None,
707709
):
708-
"""create_bank_transfer_history_record # noqa: E501
710+
"""Allows you to create history record for a bank transfers # noqa: E501
709711
OAuth2 scope: accounting.transactions
710712
:param str xero_tenant_id: Xero identifier for Tenant (required)
711713
:param str bank_transfer_id: Xero generated unique identifier for a bank transfer (required)
@@ -1885,7 +1887,7 @@ def create_currency(
18851887
_preload_content=True,
18861888
_request_timeout=None,
18871889
):
1888-
"""create_currency # noqa: E501
1890+
"""Allows you to create a new currency for an org # noqa: E501
18891891
OAuth2 scope: accounting.settings
18901892
:param str xero_tenant_id: Xero identifier for Tenant (required)
18911893
:param Currency currency: Currency obejct in the body of request (required)
@@ -16483,7 +16485,7 @@ def update_contact(
1648316485
_preload_content=True,
1648416486
_request_timeout=None,
1648516487
):
16486-
"""update_contact # noqa: E501
16488+
"""Allows you to update one contact in a Xero organisation # noqa: E501
1648716489
OAuth2 scope: accounting.contacts
1648816490
:param str xero_tenant_id: Xero identifier for Tenant (required)
1648916491
:param str contact_id: Unique identifier for a Contact (required)

xero_python/accounting/docs/AccountingApi.md

Lines changed: 37 additions & 34 deletions
Large diffs are not rendered by default.

xero_python/accounting/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
77
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
88
9-
OpenAPI spec version: 2.7.0
109
1110
Generated by: https://openapi-generator.tech
1211
"""

xero_python/accounting/models/account.py

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
OpenAPI spec version: 2.7.0
98
109
Generated by: https://openapi-generator.tech
1110
"""
@@ -303,12 +302,14 @@ def status(self, status):
303302
:type: str
304303
"""
305304
allowed_values = ["ACTIVE", "ARCHIVED", "DELETED", "None"] # noqa: E501
306-
if status not in allowed_values:
307-
raise ValueError(
308-
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
309-
status, allowed_values
305+
306+
if status:
307+
if status not in allowed_values:
308+
raise ValueError(
309+
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
310+
status, allowed_values
311+
)
310312
)
311-
)
312313

313314
self._status = status
314315

@@ -363,12 +364,14 @@ def bank_account_type(self, bank_account_type):
363364
"",
364365
"None",
365366
] # noqa: E501
366-
if bank_account_type not in allowed_values:
367-
raise ValueError(
368-
"Invalid value for `bank_account_type` ({0}), must be one of {1}".format( # noqa: E501
369-
bank_account_type, allowed_values
367+
368+
if bank_account_type:
369+
if bank_account_type not in allowed_values:
370+
raise ValueError(
371+
"Invalid value for `bank_account_type` ({0}), must be one of {1}".format( # noqa: E501
372+
bank_account_type, allowed_values
373+
)
370374
)
371-
)
372375

373376
self._bank_account_type = bank_account_type
374377

@@ -490,12 +493,14 @@ def _class(self, _class):
490493
"REVENUE",
491494
"None",
492495
] # noqa: E501
493-
if _class not in allowed_values:
494-
raise ValueError(
495-
"Invalid value for `_class` ({0}), must be one of {1}".format( # noqa: E501
496-
_class, allowed_values
496+
497+
if _class:
498+
if _class not in allowed_values:
499+
raise ValueError(
500+
"Invalid value for `_class` ({0}), must be one of {1}".format( # noqa: E501
501+
_class, allowed_values
502+
)
497503
)
498-
)
499504

500505
self.__class = _class
501506

@@ -543,12 +548,14 @@ def system_account(self, system_account):
543548
"",
544549
"None",
545550
] # noqa: E501
546-
if system_account not in allowed_values:
547-
raise ValueError(
548-
"Invalid value for `system_account` ({0}), must be one of {1}".format( # noqa: E501
549-
system_account, allowed_values
551+
552+
if system_account:
553+
if system_account not in allowed_values:
554+
raise ValueError(
555+
"Invalid value for `system_account` ({0}), must be one of {1}".format( # noqa: E501
556+
system_account, allowed_values
557+
)
550558
)
551-
)
552559

553560
self._system_account = system_account
554561

xero_python/accounting/models/account_type.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
OpenAPI spec version: 2.7.0
98
109
Generated by: https://openapi-generator.tech
1110
"""

xero_python/accounting/models/accounts.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
OpenAPI spec version: 2.7.0
98
109
Generated by: https://openapi-generator.tech
1110
"""

xero_python/accounting/models/accounts_payable.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
OpenAPI spec version: 2.7.0
98
109
Generated by: https://openapi-generator.tech
1110
"""

0 commit comments

Comments
 (0)