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 @@ -5976,7 +5976,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.11.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.12.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 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.11.0",
version="1.12.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.11.0"
__version__ = "1.12.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.17.2
OpenAPI spec version: 2.17.4
"""

import importlib
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.17.2
OpenAPI spec version: 2.17.4
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/appstore/docs/Plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | The unique identifier of the plan |
**name** | **str** | The name of the plan. It is used in the invoice line item description. |
**status** | **str** | Status of the plan. Available statuses are ACTIVE, PENDING_ACTIVATION. |
**status** | **str** | Status of the plan. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. |
**subscription_items** | [**list[SubscriptionItem]**](SubscriptionItem.md) | List of the subscription items belonging to the plan. It does not include cancelled subscription items. |

[[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/appstore/docs/SubscriptionItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**price** | [**Price**](Price.md) | |
**product** | [**Product**](Product.md) | |
**start_date** | **datetime** | Date the subscription started, or will start. Note: this could be in the future for downgrades or reduced number of seats that haven&#39;t taken effect yet. |
**status** | **str** | Status of the subscription item. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. |
**test_mode** | **bool** | If the subscription is a test subscription | [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
11 changes: 8 additions & 3 deletions xero_python/appstore/models/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def name(self, name):
def status(self):
"""Gets the status of this Plan. # noqa: E501

Status of the plan. Available statuses are ACTIVE, PENDING_ACTIVATION. # noqa: E501
Status of the plan. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. # noqa: E501

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

Status of the plan. Available statuses are ACTIVE, PENDING_ACTIVATION. # noqa: E501
Status of the plan. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. # noqa: E501

:param status: The status of this Plan. # noqa: E501
:type: str
Expand All @@ -135,7 +135,12 @@ def status(self, status):
raise ValueError(
"Invalid value for `status`, must not be `None`"
) # noqa: E501
allowed_values = ["ACTIVE", "PENDING_ACTIVATION", "None"] # noqa: E501
allowed_values = [
"ACTIVE",
"CANCELED",
"PENDING_ACTIVATION",
"None",
] # noqa: E501

if status:
if status not in allowed_values:
Expand Down
9 changes: 9 additions & 0 deletions xero_python/appstore/models/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,15 @@ def status(self, status):
raise ValueError(
"Invalid value for `status`, must not be `None`"
) # noqa: E501
allowed_values = ["ACTIVE", "CANCELED", "PAST_DUE", "None"] # noqa: E501

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
46 changes: 46 additions & 0 deletions xero_python/appstore/models/subscription_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class SubscriptionItem(BaseModel):
"price": "Price",
"product": "Product",
"start_date": "datetime",
"status": "str",
"test_mode": "bool",
}

Expand All @@ -44,6 +45,7 @@ class SubscriptionItem(BaseModel):
"price": "price",
"product": "product",
"start_date": "startDate",
"status": "status",
"test_mode": "testMode",
}

Expand All @@ -54,6 +56,7 @@ def __init__(
price=None,
product=None,
start_date=None,
status=None,
test_mode=None,
): # noqa: E501
"""SubscriptionItem - a model defined in OpenAPI""" # noqa: E501
Expand All @@ -63,6 +66,7 @@ def __init__(
self._price = None
self._product = None
self._start_date = None
self._status = None
self._test_mode = None
self.discriminator = None

Expand All @@ -72,6 +76,7 @@ def __init__(
self.price = price
self.product = product
self.start_date = start_date
self.status = status
if test_mode is not None:
self.test_mode = test_mode

Expand Down Expand Up @@ -200,6 +205,47 @@ def start_date(self, start_date):

self._start_date = start_date

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

Status of the subscription item. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. # noqa: E501

:return: The status of this SubscriptionItem. # noqa: E501
:rtype: str
"""
return self._status

@status.setter
def status(self, status):
"""Sets the status of this SubscriptionItem.

Status of the subscription item. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION. # noqa: E501

:param status: The status of this SubscriptionItem. # noqa: E501
:type: str
"""
if status is None:
raise ValueError(
"Invalid value for `status`, must not be `None`"
) # noqa: E501
allowed_values = [
"ACTIVE",
"CANCELED",
"PENDING_ACTIVATION",
"None",
] # noqa: E501

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

@property
def test_mode(self):
"""Gets the test_mode of this SubscriptionItem. # noqa: E501
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.17.2
OpenAPI spec version: 2.17.4
"""

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.17.2
- Package version: 1.11.0
- API version: 2.17.4
- Package version: 1.12.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.17.2
OpenAPI spec version: 2.17.4
"""

import importlib
Expand Down
1 change: 1 addition & 0 deletions xero_python/file/models/object_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ class ObjectGroup(Enum):
OVERPAYMENT = "Overpayment"
PAYMENT = "Payment"
PREPAYMENT = "Prepayment"
QUOTE = "Quote"
RECEIPT = "Receipt"
1 change: 1 addition & 0 deletions xero_python/file/models/object_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@ class ObjectType(Enum):
CURRLIAB = "Currliab"
TERMLIAB = "Termliab"
NONCURRENT = "NonCurrent"
SALESQUOTE = "SalesQuote"
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.17.2
OpenAPI spec version: 2.17.4
"""

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.17.2
OpenAPI spec version: 2.17.4
"""

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 @@ -20,6 +20,7 @@
from xero_python.payrollau.models.api_exception import APIException
from xero_python.payrollau.models.account import Account
from xero_python.payrollau.models.account_type import AccountType
from xero_python.payrollau.models.allowance_category import AllowanceCategory
from xero_python.payrollau.models.allowance_type import AllowanceType
from xero_python.payrollau.models.bank_account import BankAccount
from xero_python.payrollau.models.calendar_type import CalendarType
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.17.2
OpenAPI spec version: 2.17.4
"""

import importlib
Expand Down
9 changes: 9 additions & 0 deletions xero_python/payrollau/docs/AllowanceCategory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# AllowanceCategory

## 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)


1 change: 1 addition & 0 deletions xero_python/payrollau/docs/EarningsRate.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Name | Type | Description | Notes
**updated_date_utc** | **datetime** | Last modified timestamp | [optional]
**current_record** | **bool** | Is the current record | [optional]
**allowance_type** | [**AllowanceType**](AllowanceType.md) | | [optional]
**allowance_category** | [**AllowanceCategory**](AllowanceCategory.md) | | [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 @@ -15,6 +15,7 @@
from xero_python.payrollau.models.api_exception import APIException
from xero_python.payrollau.models.account import Account
from xero_python.payrollau.models.account_type import AccountType
from xero_python.payrollau.models.allowance_category import AllowanceCategory
from xero_python.payrollau.models.allowance_type import AllowanceType
from xero_python.payrollau.models.bank_account import BankAccount
from xero_python.payrollau.models.calendar_type import CalendarType
Expand Down
33 changes: 33 additions & 0 deletions xero_python/payrollau/models/allowance_category.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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 AllowanceCategory(Enum):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Do not edit the class manually.

allowed enum values
"""

NONDEDUCTIBLE = "NONDEDUCTIBLE"
UNIFORM = "UNIFORM"
PRIVATEVEHICLE = "PRIVATEVEHICLE"
HOMEOFFICE = "HOMEOFFICE"
TRANSPORT = "TRANSPORT"
GENERAL = "GENERAL"
OTHER = "OTHER"
7 changes: 5 additions & 2 deletions xero_python/payrollau/models/allowance_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ class AllowanceType(Enum):

CAR = "CAR"
TRANSPORT = "TRANSPORT"
TRAVEL = "TRAVEL"
LAUNDRY = "LAUNDRY"
MEALS = "MEALS"
JOBKEEPER = "JOBKEEPER"
TRAVEL = "TRAVEL"
OTHER = "OTHER"
JOBKEEPER = "JOBKEEPER"
TOOLS = "TOOLS"
TASKS = "TASKS"
QUALIFICATIONS = "QUALIFICATIONS"
Loading