diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index 6ad69c99..4e9666dd 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -5976,7 +5976,7 @@ SDK: - VSN: 1.11.0 + VSN: 1.12.0 Methods createAccount diff --git a/setup.py b/setup.py index 33d7be49..c7eda9aa 100644 --- a/setup.py +++ b/setup.py @@ -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", ) diff --git a/xero_python/__init__.py b/xero_python/__init__.py index f66e9bb0..b98b5e09 100644 --- a/xero_python/__init__.py +++ b/xero_python/__init__.py @@ -2,4 +2,4 @@ __author__ = """Xero Developer API""" __email__ = "api@xero.com" -__version__ = "1.11.0" +__version__ = "1.12.0" diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py index c1f55873..99b66a26 100644 --- a/xero_python/accounting/api/accounting_api.py +++ b/xero_python/accounting/api/accounting_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.17.2 + OpenAPI spec version: 2.17.4 """ import importlib diff --git a/xero_python/appstore/api/app_store_api.py b/xero_python/appstore/api/app_store_api.py index 49772c97..ad8dd635 100644 --- a/xero_python/appstore/api/app_store_api.py +++ b/xero_python/appstore/api/app_store_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.17.2 + OpenAPI spec version: 2.17.4 """ import importlib diff --git a/xero_python/appstore/docs/Plan.md b/xero_python/appstore/docs/Plan.md index 584fa27c..3d01d9b3 100644 --- a/xero_python/appstore/docs/Plan.md +++ b/xero_python/appstore/docs/Plan.md @@ -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) diff --git a/xero_python/appstore/docs/SubscriptionItem.md b/xero_python/appstore/docs/SubscriptionItem.md index 2f489925..93eac8e8 100644 --- a/xero_python/appstore/docs/SubscriptionItem.md +++ b/xero_python/appstore/docs/SubscriptionItem.md @@ -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'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) diff --git a/xero_python/appstore/models/plan.py b/xero_python/appstore/models/plan.py index 8e7d46e8..6cb32f44 100644 --- a/xero_python/appstore/models/plan.py +++ b/xero_python/appstore/models/plan.py @@ -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 @@ -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 @@ -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: diff --git a/xero_python/appstore/models/subscription.py b/xero_python/appstore/models/subscription.py index ea49e249..caf0f436 100644 --- a/xero_python/appstore/models/subscription.py +++ b/xero_python/appstore/models/subscription.py @@ -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 diff --git a/xero_python/appstore/models/subscription_item.py b/xero_python/appstore/models/subscription_item.py index 50182239..a0d849e2 100644 --- a/xero_python/appstore/models/subscription_item.py +++ b/xero_python/appstore/models/subscription_item.py @@ -35,6 +35,7 @@ class SubscriptionItem(BaseModel): "price": "Price", "product": "Product", "start_date": "datetime", + "status": "str", "test_mode": "bool", } @@ -44,6 +45,7 @@ class SubscriptionItem(BaseModel): "price": "price", "product": "product", "start_date": "startDate", + "status": "status", "test_mode": "testMode", } @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py index 344be5d2..9f1c1d2b 100644 --- a/xero_python/assets/api/asset_api.py +++ b/xero_python/assets/api/asset_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.17.2 + OpenAPI spec version: 2.17.4 """ import importlib diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md index 9320136d..83ca38aa 100644 --- a/xero_python/docs/README.md +++ b/xero_python/docs/README.md @@ -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) diff --git a/xero_python/file/api/files_api.py b/xero_python/file/api/files_api.py index 84a8cd87..b8276289 100644 --- a/xero_python/file/api/files_api.py +++ b/xero_python/file/api/files_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.17.2 + OpenAPI spec version: 2.17.4 """ import importlib diff --git a/xero_python/file/models/object_group.py b/xero_python/file/models/object_group.py index f8da4ff4..bce4e3ed 100644 --- a/xero_python/file/models/object_group.py +++ b/xero_python/file/models/object_group.py @@ -34,4 +34,5 @@ class ObjectGroup(Enum): OVERPAYMENT = "Overpayment" PAYMENT = "Payment" PREPAYMENT = "Prepayment" + QUOTE = "Quote" RECEIPT = "Receipt" diff --git a/xero_python/file/models/object_type.py b/xero_python/file/models/object_type.py index bf6bebd3..ad98a064 100644 --- a/xero_python/file/models/object_type.py +++ b/xero_python/file/models/object_type.py @@ -79,3 +79,4 @@ class ObjectType(Enum): CURRLIAB = "Currliab" TERMLIAB = "Termliab" NONCURRENT = "NonCurrent" + SALESQUOTE = "SalesQuote" diff --git a/xero_python/finance/api/finance_api.py b/xero_python/finance/api/finance_api.py index 1a00421a..5e684727 100644 --- a/xero_python/finance/api/finance_api.py +++ b/xero_python/finance/api/finance_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.17.2 + OpenAPI spec version: 2.17.4 """ import importlib diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py index d05d0212..22a579dd 100644 --- a/xero_python/identity/api/identity_api.py +++ b/xero_python/identity/api/identity_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.17.2 + OpenAPI spec version: 2.17.4 """ import importlib diff --git a/xero_python/payrollau/__init__.py b/xero_python/payrollau/__init__.py index 08f6cc2e..fe296e33 100644 --- a/xero_python/payrollau/__init__.py +++ b/xero_python/payrollau/__init__.py @@ -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 diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py index 1e863f80..7ba632e9 100644 --- a/xero_python/payrollau/api/payroll_au_api.py +++ b/xero_python/payrollau/api/payroll_au_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.17.2 + OpenAPI spec version: 2.17.4 """ import importlib diff --git a/xero_python/payrollau/docs/AllowanceCategory.md b/xero_python/payrollau/docs/AllowanceCategory.md new file mode 100644 index 00000000..479e3ff8 --- /dev/null +++ b/xero_python/payrollau/docs/AllowanceCategory.md @@ -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) + + diff --git a/xero_python/payrollau/docs/EarningsRate.md b/xero_python/payrollau/docs/EarningsRate.md index 522d772f..f7f26bf2 100644 --- a/xero_python/payrollau/docs/EarningsRate.md +++ b/xero_python/payrollau/docs/EarningsRate.md @@ -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) diff --git a/xero_python/payrollau/models/__init__.py b/xero_python/payrollau/models/__init__.py index 300a4658..fabf94f5 100644 --- a/xero_python/payrollau/models/__init__.py +++ b/xero_python/payrollau/models/__init__.py @@ -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 diff --git a/xero_python/payrollau/models/allowance_category.py b/xero_python/payrollau/models/allowance_category.py new file mode 100644 index 00000000..a0264f1b --- /dev/null +++ b/xero_python/payrollau/models/allowance_category.py @@ -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" diff --git a/xero_python/payrollau/models/allowance_type.py b/xero_python/payrollau/models/allowance_type.py index eb39dbcc..970dbeff 100644 --- a/xero_python/payrollau/models/allowance_type.py +++ b/xero_python/payrollau/models/allowance_type.py @@ -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" diff --git a/xero_python/payrollau/models/earnings_rate.py b/xero_python/payrollau/models/earnings_rate.py index 837af61c..6dcd7d71 100644 --- a/xero_python/payrollau/models/earnings_rate.py +++ b/xero_python/payrollau/models/earnings_rate.py @@ -47,6 +47,7 @@ class EarningsRate(BaseModel): "updated_date_utc": "datetime[ms-format]", "current_record": "bool", "allowance_type": "AllowanceType", + "allowance_category": "AllowanceCategory", } attribute_map = { @@ -67,6 +68,7 @@ class EarningsRate(BaseModel): "updated_date_utc": "UpdatedDateUTC", "current_record": "CurrentRecord", "allowance_type": "AllowanceType", + "allowance_category": "AllowanceCategory", } def __init__( @@ -88,6 +90,7 @@ def __init__( updated_date_utc=None, current_record=None, allowance_type=None, + allowance_category=None, ): # noqa: E501 """EarningsRate - a model defined in OpenAPI""" # noqa: E501 @@ -108,6 +111,7 @@ def __init__( self._updated_date_utc = None self._current_record = None self._allowance_type = None + self._allowance_category = None self.discriminator = None if name is not None: @@ -146,6 +150,8 @@ def __init__( self.current_record = current_record if allowance_type is not None: self.allowance_type = allowance_type + if allowance_category is not None: + self.allowance_category = allowance_category @property def name(self): @@ -539,3 +545,24 @@ def allowance_type(self, allowance_type): """ self._allowance_type = allowance_type + + @property + def allowance_category(self): + """Gets the allowance_category of this EarningsRate. # noqa: E501 + + + :return: The allowance_category of this EarningsRate. # noqa: E501 + :rtype: AllowanceCategory + """ + return self._allowance_category + + @allowance_category.setter + def allowance_category(self, allowance_category): + """Sets the allowance_category of this EarningsRate. + + + :param allowance_category: The allowance_category of this EarningsRate. # noqa: E501 + :type: AllowanceCategory + """ + + self._allowance_category = allowance_category diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py index 01b531ca..e94f5055 100644 --- a/xero_python/payrollnz/api/payroll_nz_api.py +++ b/xero_python/payrollnz/api/payroll_nz_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.17.2 + OpenAPI spec version: 2.17.4 """ import importlib diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py index 2a69727a..d14cfc49 100644 --- a/xero_python/payrolluk/api/payroll_uk_api.py +++ b/xero_python/payrolluk/api/payroll_uk_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.17.2 + OpenAPI spec version: 2.17.4 """ import importlib diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py index 4451fa53..aa9819fa 100644 --- a/xero_python/project/api/project_api.py +++ b/xero_python/project/api/project_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.17.2 + OpenAPI spec version: 2.17.4 """ import importlib