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
4 changes: 2 additions & 2 deletions docs/v1/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6220,7 +6220,7 @@
"OrganisationRole" : {
"type" : "string",
"description" : "User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)",
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN" ]
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", "REMOVED" ]
}
},
"description" : "",
Expand Down Expand Up @@ -6339,7 +6339,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>8.2.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>8.3.0</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
6 changes: 3 additions & 3 deletions docs/v1/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,8 @@
},
"type" : {
"type" : "string",
"description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n",
"enum" : [ "FIXED", "PER_SEAT", "METERED" ]
"description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n* SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature\n",
"enum" : [ "FIXED", "PER_SEAT", "METERED", "SIMPLE" ]
},
"usageUnit" : {
"type" : "string",
Expand Down Expand Up @@ -1241,7 +1241,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>8.2.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>8.3.0</li>
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
<li data-group="AppStore" data-name="getSubscription" class="">
<a href="#api-AppStore-getSubscription">getSubscription</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>8.2.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>8.3.0</li>
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
<li data-group="Asset" data-name="createAsset" class="">
<a href="#api-Asset-createAsset">createAsset</a>
Expand Down
27 changes: 24 additions & 3 deletions docs/v1/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>8.2.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>8.3.0</li>
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
<li data-group="Files" data-name="createFileAssociation" class="">
<a href="#api-Files-createFileAssociation">createFileAssociation</a>
Expand Down Expand Up @@ -2741,10 +2741,11 @@ <h3>Usage and SDK Samples</h3>
def accounting_get_files():
api_instance = FilesApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
sort = 'CreatedDateUTC DESC'
sort = 'CreatedDateUTC'
direction = 'ASC'

try:
api_response = api_instance.get_files(xero_tenant_id, pagesize, page, sort)
api_response = api_instance.get_files(xero_tenant_id, pagesize, page, sort, direction)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling FilesApi->getFiles: %s\n" % e)</code></pre>
Expand Down Expand Up @@ -2859,6 +2860,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">direction</td>
<td>


<div id="d2e199_getFiles_direction">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
sort direction
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2716,7 +2716,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>8.2.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>8.3.0</li>
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/payroll-au/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3412,7 +3412,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>8.2.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>8.3.0</li>
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/payroll-nz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4087,7 +4087,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>8.2.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>8.3.0</li>
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>
Expand Down
6 changes: 3 additions & 3 deletions docs/v1/payroll-uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@
"leaveType" : {
"type" : "string",
"description" : "The type of statutory leave",
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
},
"balanceRemaining" : {
"type" : "number",
Expand Down Expand Up @@ -2002,7 +2002,7 @@
"type" : {
"type" : "string",
"description" : "The category of statutory leave",
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
},
"startDate" : {
"type" : "string",
Expand Down Expand Up @@ -3600,7 +3600,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>8.2.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>8.3.0</li>
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>8.2.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>8.3.0</li>
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
<li data-group="Project" data-name="createProject" class="">
<a href="#api-Project-createProject">createProject</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="8.2.0",
version="8.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__ = "8.2.0"
__version__ = "8.3.0"
2 changes: 1 addition & 1 deletion xero_python/accounting/api/accounting_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 8.2.0
OpenAPI spec version: 8.3.0
"""


Expand Down
1 change: 1 addition & 0 deletions xero_python/accounting/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def organisation_role(self, organisation_role):
"MANAGEDCLIENT",
"CASHBOOKCLIENT",
"UNKNOWN",
"REMOVED",
"None",
] # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion xero_python/appstore/api/app_store_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 8.2.0
OpenAPI spec version: 8.3.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xero_python/appstore/docs/Product.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
**id** | **str** | The unique identifier for the product | [optional]
**name** | **str** | The name of the product | [optional]
**seat_unit** | **str** | The unit of the per seat product. e.g. \&quot;user\&quot;, \&quot;organisation\&quot;, \&quot;SMS\&quot;, etc | [optional]
**type** | **str** | The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product | [optional]
**type** | **str** | The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature | [optional]
**usage_unit** | **str** | The unit of the usage product. e.g. \&quot;user\&quot;, \&quot;minutes\&quot;, \&quot;SMS\&quot;, etc | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
12 changes: 9 additions & 3 deletions xero_python/appstore/models/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def seat_unit(self, seat_unit):
def type(self):
"""Gets the type of this Product. # noqa: E501

The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product # noqa: E501
The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature # noqa: E501

:return: The type of this Product. # noqa: E501
:rtype: str
Expand All @@ -152,12 +152,18 @@ def type(self):
def type(self, type):
"""Sets the type of this Product.

The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product # noqa: E501
The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature # noqa: E501

:param type: The type of this Product. # noqa: E501
:type: str
"""
allowed_values = ["FIXED", "PER_SEAT", "METERED", "None"] # noqa: E501
allowed_values = [
"FIXED",
"PER_SEAT",
"METERED",
"SIMPLE",
"None",
] # noqa: E501

if type:
if type not in allowed_values:
Expand Down
2 changes: 1 addition & 1 deletion xero_python/assets/api/asset_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 8.2.0
OpenAPI spec version: 8.3.0
"""


Expand Down
4 changes: 2 additions & 2 deletions xero_python/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ 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: 8.2.0
- Package version: 8.2.0
- API version: 8.3.0
- Package version: 8.3.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://developer.xero.com](https://developer.xero.com)

Expand Down
7 changes: 6 additions & 1 deletion xero_python/file/api/files_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 8.2.0
OpenAPI spec version: 8.3.0
"""


Expand Down Expand Up @@ -885,6 +885,7 @@ def get_files(
pagesize=empty,
page=empty,
sort=empty,
direction=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
Expand All @@ -895,6 +896,7 @@ def get_files(
:param int pagesize: pass an optional page size value
:param int page: number of records to skip for pagination
:param str sort: values to sort by
:param str direction: sort direction
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
Expand Down Expand Up @@ -936,6 +938,9 @@ def get_files(
if sort is not empty:
query_params.append(("sort", sort))

if direction is not empty:
query_params.append(("direction", direction))

header_params = {
"xero-tenant-id": xero_tenant_id,
}
Expand Down
8 changes: 5 additions & 3 deletions xero_python/file/docs/FilesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_files**
> Files get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort)
> Files get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort, direction=direction)

Retrieves files

Expand Down Expand Up @@ -719,10 +719,11 @@ api_instance = FilesApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
pagesize = 50 # int | pass an optional page size value (optional)
page = 2 # int | number of records to skip for pagination (optional)
sort = 'CreatedDateUTC DESC' # str | values to sort by (optional)
sort = 'CreatedDateUTC' # str | values to sort by (optional)
direction = 'ASC' # str | sort direction (optional)
try:
# Retrieves files
api_response = api_instance.get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort)
api_response = api_instance.get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort, direction=direction)
pprint(api_response)
except ApiException as e:
print("Exception when calling FilesApi->get_files: %s\n" % e)
Expand All @@ -736,6 +737,7 @@ Name | Type | Description | Notes
**pagesize** | **int**| pass an optional page size value | [optional]
**page** | **int**| number of records to skip for pagination | [optional]
**sort** | **str**| values to sort by | [optional]
**direction** | **str**| sort direction | [optional]

### Return type

Expand Down
2 changes: 1 addition & 1 deletion xero_python/finance/api/finance_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 8.2.0
OpenAPI spec version: 8.3.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xero_python/identity/api/identity_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 8.2.0
OpenAPI spec version: 8.3.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xero_python/payrollau/api/payroll_au_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 8.2.0
OpenAPI spec version: 8.3.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xero_python/payrollnz/api/payroll_nz_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 8.2.0
OpenAPI spec version: 8.3.0
"""


Expand Down
2 changes: 1 addition & 1 deletion xero_python/payrolluk/api/payroll_uk_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 8.2.0
OpenAPI spec version: 8.3.0
"""


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def leave_type(self, leave_type):
"Paternity",
"Sharedparental",
"Bereavement",
"NeonatalCare",
"None",
] # noqa: E501

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def type(self, type):
"Paternity",
"Sharedparental",
"Bereavement",
"NeonatalCare",
"None",
] # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion xero_python/project/api/project_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 8.2.0
OpenAPI spec version: 8.3.0
"""


Expand Down