Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ def read_file(filename):
keywords="xero python sdk API oAuth",
name="xero_python",
packages=find_packages(include=["xero_python", "xero_python.*"]),
version="1.2.0",
version="1.3.0",
)
2 changes: 1 addition & 1 deletion xero_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Xero Developer API"""
__email__ = "api@xero.com"
__version__ = "1.2.0"
__version__ = "1.3.0"
1 change: 0 additions & 1 deletion xero_python/accounting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
10 changes: 6 additions & 4 deletions xero_python/accounting/api/accounting_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""

"""
OpenAPI spec version: 2.8.4
"""

import importlib
import re # noqa: F401
Expand Down Expand Up @@ -705,7 +707,7 @@ def create_bank_transfer_history_record(
_preload_content=True,
_request_timeout=None,
):
"""create_bank_transfer_history_record # noqa: E501
"""Allows you to create history record for a bank transfers # noqa: E501
OAuth2 scope: accounting.transactions
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str bank_transfer_id: Xero generated unique identifier for a bank transfer (required)
Expand Down Expand Up @@ -1885,7 +1887,7 @@ def create_currency(
_preload_content=True,
_request_timeout=None,
):
"""create_currency # noqa: E501
"""Allows you to create a new currency for an org # noqa: E501
OAuth2 scope: accounting.settings
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param Currency currency: Currency obejct in the body of request (required)
Expand Down Expand Up @@ -16483,7 +16485,7 @@ def update_contact(
_preload_content=True,
_request_timeout=None,
):
"""update_contact # noqa: E501
"""Allows you to update one contact in a Xero organisation # noqa: E501
OAuth2 scope: accounting.contacts
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str contact_id: Unique identifier for a Contact (required)
Expand Down
71 changes: 37 additions & 34 deletions xero_python/accounting/docs/AccountingApi.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion xero_python/accounting/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
49 changes: 28 additions & 21 deletions xero_python/accounting/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -303,12 +302,14 @@ def status(self, status):
:type: str
"""
allowed_values = ["ACTIVE", "ARCHIVED", "DELETED", "None"] # noqa: E501
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
status, allowed_values

if status:
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
status, allowed_values
)
)
)

self._status = status

Expand Down Expand Up @@ -363,12 +364,14 @@ def bank_account_type(self, bank_account_type):
"",
"None",
] # noqa: E501
if bank_account_type not in allowed_values:
raise ValueError(
"Invalid value for `bank_account_type` ({0}), must be one of {1}".format( # noqa: E501
bank_account_type, allowed_values

if bank_account_type:
if bank_account_type not in allowed_values:
raise ValueError(
"Invalid value for `bank_account_type` ({0}), must be one of {1}".format( # noqa: E501
bank_account_type, allowed_values
)
)
)

self._bank_account_type = bank_account_type

Expand Down Expand Up @@ -490,12 +493,14 @@ def _class(self, _class):
"REVENUE",
"None",
] # noqa: E501
if _class not in allowed_values:
raise ValueError(
"Invalid value for `_class` ({0}), must be one of {1}".format( # noqa: E501
_class, allowed_values

if _class:
if _class not in allowed_values:
raise ValueError(
"Invalid value for `_class` ({0}), must be one of {1}".format( # noqa: E501
_class, allowed_values
)
)
)

self.__class = _class

Expand Down Expand Up @@ -543,12 +548,14 @@ def system_account(self, system_account):
"",
"None",
] # noqa: E501
if system_account not in allowed_values:
raise ValueError(
"Invalid value for `system_account` ({0}), must be one of {1}".format( # noqa: E501
system_account, allowed_values

if system_account:
if system_account not in allowed_values:
raise ValueError(
"Invalid value for `system_account` ({0}), must be one of {1}".format( # noqa: E501
system_account, allowed_values
)
)
)

self._system_account = system_account

Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/account_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/accounts_payable.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/accounts_receivable.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
13 changes: 7 additions & 6 deletions xero_python/accounting/models/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -90,11 +89,13 @@ def status(self, status):
:type: str
"""
allowed_values = ["ALLOWED", "NOT-ALLOWED", "None"] # noqa: E501
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
status, allowed_values

if status:
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
status, allowed_values
)
)
)

self._status = status
1 change: 0 additions & 1 deletion xero_python/accounting/models/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
13 changes: 7 additions & 6 deletions xero_python/accounting/models/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -125,12 +124,14 @@ def address_type(self, address_type):
:type: str
"""
allowed_values = ["POBOX", "STREET", "None"] # noqa: E501
if address_type not in allowed_values:
raise ValueError(
"Invalid value for `address_type` ({0}), must be one of {1}".format( # noqa: E501
address_type, allowed_values

if address_type:
if address_type not in allowed_values:
raise ValueError(
"Invalid value for `address_type` ({0}), must be one of {1}".format( # noqa: E501
address_type, allowed_values
)
)
)

self._address_type = address_type

Expand Down
13 changes: 7 additions & 6 deletions xero_python/accounting/models/address_for_organisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -125,12 +124,14 @@ def address_type(self, address_type):
:type: str
"""
allowed_values = ["POBOX", "STREET", "DELIVERY", "None"] # noqa: E501
if address_type not in allowed_values:
raise ValueError(
"Invalid value for `address_type` ({0}), must be one of {1}".format( # noqa: E501
address_type, allowed_values

if address_type:
if address_type not in allowed_values:
raise ValueError(
"Invalid value for `address_type` ({0}), must be one of {1}".format( # noqa: E501
address_type, allowed_values
)
)
)

self._address_type = address_type

Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/allocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/allocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/attachments.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/balance_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/balances.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
25 changes: 14 additions & 11 deletions xero_python/accounting/models/bank_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -208,12 +207,14 @@ def type(self, type):
"SPEND-TRANSFER",
"None",
] # noqa: E501
if type not in allowed_values:
raise ValueError(
"Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501
type, allowed_values

if type:
if type not in allowed_values:
raise ValueError(
"Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501
type, allowed_values
)
)
)

self._type = type

Expand Down Expand Up @@ -447,12 +448,14 @@ def status(self, status):
:type: str
"""
allowed_values = ["AUTHORISED", "DELETED", "VOIDED", "None"] # noqa: E501
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
status, allowed_values

if status:
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
status, allowed_values
)
)
)

self._status = status

Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/bank_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
1 change: 0 additions & 1 deletion xero_python/accounting/models/bank_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

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

OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Loading