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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/v1/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12293,7 +12293,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.8.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.8.1</li>
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
<li data-group="Accounting" data-name="createAccount" class="">
<a href="#api-Accounting-createAccount">createAccount</a>
Expand Down
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.8.0",
version="1.8.1",
)
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.8.0"
__version__ = "1.8.1"
4 changes: 3 additions & 1 deletion xero_python/api_client/deserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
)

MS_DATETIME_RE = re.compile(r"/Date\((?P<timestamp>-?\d+)(?P<tzinfo>[+-]\d{2,4})?\)/$")

DATE_WITH_NO_DAY_RE = re.compile("(\d\d\d\d)-(\d\d)")

def deserialize_routing(data_type, data, model_finder):
"""Custom logic to find matching deserialize implementation and
Expand Down Expand Up @@ -250,6 +250,8 @@ def deserialize_datetime_ms(data_type, data, model_finder):
timestamp_ms = int(match.groupdict()["timestamp"])
timestamp_s = timestamp_ms / 1000
return datetime.datetime.fromtimestamp(timestamp_s, tz=tz_info)
elif DATE_WITH_NO_DAY_RE.match(str(data)):
return datetime.datetime.strptime(data + '-01', '%Y-%m-%d')
else:
raise ValueError("Invalid datetime value {!r}".format(data))

Expand Down
2 changes: 1 addition & 1 deletion xero_python/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ These endpoints are related to managing authentication tokens and identity for X
The `xero_python` package is automatically generated by the [XeroAPI SDK 2.0 Codegen](https://github.com/xero-github/xeroapi-sdk-codegen) project:

- API version: 2.13.4
- Package version: 1.8.0
- Package version: 1.8.1
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://developer.xero.com](https://developer.xero.com)

Expand Down