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 @@ -6008,7 +6008,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.17.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.18.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
2 changes: 1 addition & 1 deletion docs/v1/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,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>1.17.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>1.18.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>1.17.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>1.18.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
2 changes: 1 addition & 1 deletion docs/v1/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,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>1.17.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>1.18.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
2 changes: 1 addition & 1 deletion docs/v1/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2706,7 +2706,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>1.17.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>1.18.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 @@ -3254,7 +3254,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>1.17.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>1.18.0</li>
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
<li data-group="PayrollAu" data-name="createEmployee" class="">
<a href="#api-PayrollAu-createEmployee">createEmployee</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 @@ -3838,7 +3838,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>1.17.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>1.18.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
2 changes: 1 addition & 1 deletion docs/v1/payroll-uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3510,7 +3510,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>1.17.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>1.18.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 @@ -1468,7 +1468,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>1.17.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>1.18.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="1.17.0",
version="1.18.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.17.0"
__version__ = "1.18.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 @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 2.25.0
OpenAPI spec version: 2.27.0
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/accounting/docs/AccountingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6774,7 +6774,7 @@ i_ds = ['&quot;00000000-0000-0000-0000-000000000000&quot;'] # list[str] | Filter
page = 1 # int | e.g. page=1 - Up to 100 contacts will be returned in a single API call. (optional)
include_archived = true # bool | e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional)
summary_only = False # bool | Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional) (default to False)
search_term = 'searchTerm=Joe Bloggs' # str | Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional)
search_term = 'Joe Bloggs' # str | Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional)
try:
# Retrieves all contacts in a Xero organisation
api_response = api_instance.get_contacts(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, i_ds=i_ds, page=page, include_archived=include_archived, summary_only=summary_only, search_term=search_term)
Expand Down
1 change: 1 addition & 0 deletions xero_python/accounting/models/organisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,7 @@ def _class(self, _class):
"GST_CASHBOOK",
"NON_GST_CASHBOOK",
"ULTIMATE",
"LITE",
"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 @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 2.25.0
OpenAPI spec version: 2.27.0
"""

import importlib
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 @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 2.25.0
OpenAPI spec version: 2.27.0
"""

import importlib
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: 2.25.0
- Package version: 1.17.0
- API version: 2.27.0
- Package version: 1.18.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://developer.xero.com](https://developer.xero.com)

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

"""
OpenAPI spec version: 2.25.0
OpenAPI spec version: 2.27.0
"""

import importlib
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 @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 2.25.0
OpenAPI spec version: 2.27.0
"""

import importlib
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 @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 2.25.0
OpenAPI spec version: 2.27.0
"""

import importlib
Expand Down
1 change: 1 addition & 0 deletions xero_python/payrollau/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
from xero_python.payrollau.models.leave_application import LeaveApplication
from xero_python.payrollau.models.leave_applications import LeaveApplications
from xero_python.payrollau.models.leave_balance import LeaveBalance
from xero_python.payrollau.models.leave_category_code import LeaveCategoryCode
from xero_python.payrollau.models.leave_earnings_line import LeaveEarningsLine
from xero_python.payrollau.models.leave_line import LeaveLine
from xero_python.payrollau.models.leave_line_calculation_type import (
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 @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 2.25.0
OpenAPI spec version: 2.27.0
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/payrollau/docs/Employee.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**title** | **str** | Title of the employee | [optional]
**middle_names** | **str** | Middle name(s) of the employee | [optional]
**email** | **str** | The email address for the employee | [optional]
**gender** | **str** | The employee’s gender. See Employee Gender | [optional]
**gender** | **str** | The employee’s gender. See Employee Gender | [optional]
**phone** | **str** | Employee phone number | [optional]
**mobile** | **str** | Employee mobile number | [optional]
**twitter_user_name** | **str** | Employee’s twitter name | [optional]
Expand Down
9 changes: 9 additions & 0 deletions xero_python/payrollau/docs/LeaveCategoryCode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# LeaveCategoryCode

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

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


2 changes: 2 additions & 0 deletions xero_python/payrollau/docs/LeaveType.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Name | Type | Description | Notes
**is_paid_leave** | **bool** | Set this to indicate that an employee will be paid when taking this type of leave | [optional]
**show_on_payslip** | **bool** | Set this if you want a balance for this leave type to be shown on your employee’s payslips | [optional]
**current_record** | **bool** | Is the current record | [optional]
**leave_category_code** | [**LeaveCategoryCode**](LeaveCategoryCode.md) | | [optional]
**sgc_exempt** | **bool** | Set this to indicate that the leave type is exempt from superannuation guarantee contribution | [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
1 change: 1 addition & 0 deletions xero_python/payrollau/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
from xero_python.payrollau.models.leave_application import LeaveApplication
from xero_python.payrollau.models.leave_applications import LeaveApplications
from xero_python.payrollau.models.leave_balance import LeaveBalance
from xero_python.payrollau.models.leave_category_code import LeaveCategoryCode
from xero_python.payrollau.models.leave_earnings_line import LeaveEarningsLine
from xero_python.payrollau.models.leave_line import LeaveLine
from xero_python.payrollau.models.leave_line_calculation_type import (
Expand Down
4 changes: 2 additions & 2 deletions xero_python/payrollau/models/employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def email(self, email):
def gender(self):
"""Gets the gender of this Employee. # noqa: E501

The employee’s gender. See Employee Gender # noqa: E501
The employee’s gender. See Employee Gender # noqa: E501

:return: The gender of this Employee. # noqa: E501
:rtype: str
Expand All @@ -443,7 +443,7 @@ def gender(self):
def gender(self, gender):
"""Sets the gender of this Employee.

The employee’s gender. See Employee Gender # noqa: E501
The employee’s gender. See Employee Gender # noqa: E501

:param gender: The gender of this Employee. # noqa: E501
:type: str
Expand Down
38 changes: 38 additions & 0 deletions xero_python/payrollau/models/leave_category_code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# coding: utf-8

"""
Xero Payroll AU API

This is the Xero Payroll API for orgs in Australia region. # noqa: E501

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


import re # noqa: F401

from enum import Enum


class LeaveCategoryCode(Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Do not edit the class manually.

allowed enum values
"""

ANNUALLEAVE = "ANNUALLEAVE"
LONGSERVICELEAVE = "LONGSERVICELEAVE"
PERSONALCARERSLEAVE = "PERSONALCARERSLEAVE"
ROSTEREDDAYOFF = "ROSTEREDDAYOFF"
TIMEOFFINLIEU = "TIMEOFFINLIEU"
COMPASSIONATEANDBEREAVEMENTLEAVE = "COMPASSIONATEANDBEREAVEMENTLEAVE"
STUDYLEAVE = "STUDYLEAVE"
FAMILYANDDOMESTICVIOLENCELEAVE = "FAMILYANDDOMESTICVIOLENCELEAVE"
SPECIALPAIDLEAVE = "SPECIALPAIDLEAVE"
COMMUNITYSERVICELEAVE = "COMMUNITYSERVICELEAVE"
JURYDUTYLEAVE = "JURYDUTYLEAVE"
DEFENCERESERVELEAVE = "DEFENCERESERVELEAVE"
56 changes: 56 additions & 0 deletions xero_python/payrollau/models/leave_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class LeaveType(BaseModel):
"is_paid_leave": "bool",
"show_on_payslip": "bool",
"current_record": "bool",
"leave_category_code": "LeaveCategoryCode",
"sgc_exempt": "bool",
}

attribute_map = {
Expand All @@ -51,6 +53,8 @@ class LeaveType(BaseModel):
"is_paid_leave": "IsPaidLeave",
"show_on_payslip": "ShowOnPayslip",
"current_record": "CurrentRecord",
"leave_category_code": "LeaveCategoryCode",
"sgc_exempt": "SGCExempt",
}

def __init__(
Expand All @@ -64,6 +68,8 @@ def __init__(
is_paid_leave=None,
show_on_payslip=None,
current_record=None,
leave_category_code=None,
sgc_exempt=None,
): # noqa: E501
"""LeaveType - a model defined in OpenAPI""" # noqa: E501

Expand All @@ -76,6 +82,8 @@ def __init__(
self._is_paid_leave = None
self._show_on_payslip = None
self._current_record = None
self._leave_category_code = None
self._sgc_exempt = None
self.discriminator = None

if name is not None:
Expand All @@ -96,6 +104,10 @@ def __init__(
self.show_on_payslip = show_on_payslip
if current_record is not None:
self.current_record = current_record
if leave_category_code is not None:
self.leave_category_code = leave_category_code
if sgc_exempt is not None:
self.sgc_exempt = sgc_exempt

@property
def name(self):
Expand Down Expand Up @@ -308,3 +320,47 @@ def current_record(self, current_record):
"""

self._current_record = current_record

@property
def leave_category_code(self):
"""Gets the leave_category_code of this LeaveType. # noqa: E501


:return: The leave_category_code of this LeaveType. # noqa: E501
:rtype: LeaveCategoryCode
"""
return self._leave_category_code

@leave_category_code.setter
def leave_category_code(self, leave_category_code):
"""Sets the leave_category_code of this LeaveType.


:param leave_category_code: The leave_category_code of this LeaveType. # noqa: E501
:type: LeaveCategoryCode
"""

self._leave_category_code = leave_category_code

@property
def sgc_exempt(self):
"""Gets the sgc_exempt of this LeaveType. # noqa: E501

Set this to indicate that the leave type is exempt from superannuation guarantee contribution # noqa: E501

:return: The sgc_exempt of this LeaveType. # noqa: E501
:rtype: bool
"""
return self._sgc_exempt

@sgc_exempt.setter
def sgc_exempt(self, sgc_exempt):
"""Sets the sgc_exempt of this LeaveType.

Set this to indicate that the leave type is exempt from superannuation guarantee contribution # noqa: E501

:param sgc_exempt: The sgc_exempt of this LeaveType. # noqa: E501
:type: bool
"""

self._sgc_exempt = sgc_exempt
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 @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 2.25.0
OpenAPI spec version: 2.27.0
"""

import importlib
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 @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 2.25.0
OpenAPI spec version: 2.27.0
"""

import importlib
Expand Down
Loading