diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html
index dae37327..3f9577ad 100644
--- a/docs/v1/accounting/index.html
+++ b/docs/v1/accounting/index.html
@@ -2576,8 +2576,7 @@
},
"SentToContact" : {
"type" : "boolean",
- "description" : "Boolean to set whether the credit note in the Xero app should be marked as “sent”. This can be set only on credit notes that have been approved",
- "readOnly" : true
+ "description" : "Boolean to set whether the credit note in the Xero app should be marked as “sent”. This can be set only on credit notes that have been approved"
},
"CurrencyRate" : {
"type" : "number",
@@ -3204,23 +3203,20 @@
},
"SubTotal" : {
"type" : "number",
- "description" : "Total of invoice excluding taxes",
+ "description" : "Total of invoice excluding taxes. Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can SubTotal be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with TotalTax and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET)\n",
"format" : "double",
- "readOnly" : true,
"x-is-money" : true
},
"TotalTax" : {
"type" : "number",
- "description" : "Total tax on invoice",
+ "description" : "Total tax on invoice. Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can TotalTax be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET)\n",
"format" : "double",
- "readOnly" : true,
"x-is-money" : true
},
"Total" : {
"type" : "number",
- "description" : "Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts",
+ "description" : "Total of Invoice tax inclusive (i.e. SubTotal + TotalTax + RoundingAmount). Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can Total be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and TotalTax, it is validated against the calculated line item totals plus RoundingAmount; in all other cases this will be ignored if it does not equal the sum of the LineAmounts. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET)\n",
"format" : "double",
- "readOnly" : true,
"x-is-money" : true
},
"TotalDiscount" : {
@@ -3230,6 +3226,18 @@
"readOnly" : true,
"x-is-money" : true
},
+ "RoundingAmount" : {
+ "type" : "number",
+ "description" : "An optional rounding adjustment added to SubTotal + TotalTax to give Total (i.e. Total = SubTotal + TotalTax + RoundingAmount). Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Not validated while the invoice is DRAFT. For SUBMITTED and AUTHORISED invoices, RoundingAmount is only applied when SubTotal, TotalTax and Total are all supplied together, and must be between -0.10 and 0.10 – values outside this range are rejected with a validation error (on DRAFT invoices, an out-of-range value is ignored instead). This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET)\n",
+ "format" : "double",
+ "x-is-money" : true
+ },
+ "EnteredTotal" : {
+ "type" : "number",
+ "description" : "The total amount as originally entered for the invoice, before any RoundingAmount adjustment is applied. Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Can only be set while the invoice is DRAFT; once the invoice is no longer DRAFT this reflects Total. This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET)\n",
+ "format" : "double",
+ "x-is-money" : true
+ },
"InvoiceID" : {
"type" : "string",
"description" : "Xero generated unique identifier for invoice",
@@ -6506,7 +6514,7 @@
-
+
createAccount
diff --git a/docs/v1/appstore/index.html b/docs/v1/appstore/index.html
index 2cc515de..1bc0d87a 100644
--- a/docs/v1/appstore/index.html
+++ b/docs/v1/appstore/index.html
@@ -1242,7 +1242,7 @@
-
+
getSubscription
diff --git a/docs/v1/assets/index.html b/docs/v1/assets/index.html
index 0d2a3f99..a20e12f1 100644
--- a/docs/v1/assets/index.html
+++ b/docs/v1/assets/index.html
@@ -1420,7 +1420,7 @@
-
+
createAsset
diff --git a/docs/v1/files/index.html b/docs/v1/files/index.html
index 0aecdb04..608a7824 100644
--- a/docs/v1/files/index.html
+++ b/docs/v1/files/index.html
@@ -1181,7 +1181,7 @@
-
+
createFileAssociation
diff --git a/docs/v1/finance/index.html b/docs/v1/finance/index.html
index 2066001b..05428ae6 100644
--- a/docs/v1/finance/index.html
+++ b/docs/v1/finance/index.html
@@ -2376,7 +2376,7 @@
-
+
getBankStatementAccounting
diff --git a/docs/v1/payroll-au-v2/index.html b/docs/v1/payroll-au-v2/index.html
index fc98f311..7224122e 100644
--- a/docs/v1/payroll-au-v2/index.html
+++ b/docs/v1/payroll-au-v2/index.html
@@ -1160,7 +1160,7 @@
-
+
approveTimesheet
diff --git a/docs/v1/payroll-au/index.html b/docs/v1/payroll-au/index.html
index d10d54ed..fdd25d9b 100644
--- a/docs/v1/payroll-au/index.html
+++ b/docs/v1/payroll-au/index.html
@@ -3450,7 +3450,7 @@
-
+
approveLeaveApplication
diff --git a/docs/v1/payroll-nz/index.html b/docs/v1/payroll-nz/index.html
index d83b751a..ab4f0737 100644
--- a/docs/v1/payroll-nz/index.html
+++ b/docs/v1/payroll-nz/index.html
@@ -4068,7 +4068,7 @@
-
+
approveTimesheet
diff --git a/docs/v1/payroll-uk/index.html b/docs/v1/payroll-uk/index.html
index c7c1528a..b20639ea 100644
--- a/docs/v1/payroll-uk/index.html
+++ b/docs/v1/payroll-uk/index.html
@@ -2418,7 +2418,7 @@
"type" : "string",
"description" : "The employment status of the employee.",
"example" : "Employee",
- "enum" : [ "Employee", "Worker", "Unspecified" ]
+ "enum" : [ "Employee", "Worker", "Unspecified", "OffPayrollWorker" ]
};
defs["InvalidField"] = {
"title" : "",
@@ -3701,7 +3701,7 @@
-
+
approveTimesheet
diff --git a/docs/v1/projects/index.html b/docs/v1/projects/index.html
index 075f297b..6af09d7e 100644
--- a/docs/v1/projects/index.html
+++ b/docs/v1/projects/index.html
@@ -1463,7 +1463,7 @@
-
+
createProject
diff --git a/setup.py b/setup.py
index 4229c0da..e183df3d 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="15.1.0",
+ version="15.2.0",
)
diff --git a/xero_python/__init__.py b/xero_python/__init__.py
index 3d1a4fec..4f040158 100644
--- a/xero_python/__init__.py
+++ b/xero_python/__init__.py
@@ -2,4 +2,4 @@
__author__ = """Xero Developer API"""
__email__ = "api@xero.com"
-__version__ = "15.1.0"
+__version__ = "15.2.0"
diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py
index 1bc445e5..9912a573 100644
--- a/xero_python/accounting/api/accounting_api.py
+++ b/xero_python/accounting/api/accounting_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""
diff --git a/xero_python/accounting/docs/Invoice.md b/xero_python/accounting/docs/Invoice.md
index ef5dc756..6409a0ca 100644
--- a/xero_python/accounting/docs/Invoice.md
+++ b/xero_python/accounting/docs/Invoice.md
@@ -21,10 +21,12 @@ Name | Type | Description | Notes
**planned_payment_date** | **date** | Shown on bills (Accounts Payable) when this has been set | [optional]
**cis_deduction** | **float** | CIS deduction for UK contractors | [optional]
**cis_rate** | **float** | CIS Deduction rate for the organisation | [optional]
-**sub_total** | **float** | Total of invoice excluding taxes | [optional]
-**total_tax** | **float** | Total tax on invoice | [optional]
-**total** | **float** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional]
+**sub_total** | **float** | Total of invoice excluding taxes. Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can SubTotal be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with TotalTax and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) | [optional]
+**total_tax** | **float** | Total tax on invoice. Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can TotalTax be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) | [optional]
+**total** | **float** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax + RoundingAmount). Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can Total be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and TotalTax, it is validated against the calculated line item totals plus RoundingAmount; in all other cases this will be ignored if it does not equal the sum of the LineAmounts. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) | [optional]
**total_discount** | **float** | Total of discounts applied on the invoice line items | [optional]
+**rounding_amount** | **float** | An optional rounding adjustment added to SubTotal + TotalTax to give Total (i.e. Total = SubTotal + TotalTax + RoundingAmount). Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Not validated while the invoice is DRAFT. For SUBMITTED and AUTHORISED invoices, RoundingAmount is only applied when SubTotal, TotalTax and Total are all supplied together, and must be between -0.10 and 0.10 – values outside this range are rejected with a validation error (on DRAFT invoices, an out-of-range value is ignored instead). This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET) | [optional]
+**entered_total** | **float** | The total amount as originally entered for the invoice, before any RoundingAmount adjustment is applied. Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Can only be set while the invoice is DRAFT; once the invoice is no longer DRAFT this reflects Total. This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET) | [optional]
**invoice_id** | **str** | Xero generated unique identifier for invoice | [optional]
**repeating_invoice_id** | **str** | Xero generated unique identifier for repeating invoices | [optional]
**has_attachments** | **bool** | boolean to indicate if an invoice has an attachment | [optional] [default to False]
diff --git a/xero_python/accounting/models/invoice.py b/xero_python/accounting/models/invoice.py
index a55901af..fd4a6c50 100644
--- a/xero_python/accounting/models/invoice.py
+++ b/xero_python/accounting/models/invoice.py
@@ -52,6 +52,8 @@ class Invoice(BaseModel):
"total_tax": "float",
"total": "float",
"total_discount": "float",
+ "rounding_amount": "float",
+ "entered_total": "float",
"invoice_id": "str",
"repeating_invoice_id": "str",
"has_attachments": "bool",
@@ -97,6 +99,8 @@ class Invoice(BaseModel):
"total_tax": "TotalTax",
"total": "Total",
"total_discount": "TotalDiscount",
+ "rounding_amount": "RoundingAmount",
+ "entered_total": "EnteredTotal",
"invoice_id": "InvoiceID",
"repeating_invoice_id": "RepeatingInvoiceID",
"has_attachments": "HasAttachments",
@@ -143,6 +147,8 @@ def __init__(
total_tax=None,
total=None,
total_discount=None,
+ rounding_amount=None,
+ entered_total=None,
invoice_id=None,
repeating_invoice_id=None,
has_attachments=False,
@@ -188,6 +194,8 @@ def __init__(
self._total_tax = None
self._total = None
self._total_discount = None
+ self._rounding_amount = None
+ self._entered_total = None
self._invoice_id = None
self._repeating_invoice_id = None
self._has_attachments = None
@@ -254,6 +262,10 @@ def __init__(
self.total = total
if total_discount is not None:
self.total_discount = total_discount
+ if rounding_amount is not None:
+ self.rounding_amount = rounding_amount
+ if entered_total is not None:
+ self.entered_total = entered_total
if invoice_id is not None:
self.invoice_id = invoice_id
if repeating_invoice_id is not None:
@@ -748,7 +760,7 @@ def cis_rate(self, cis_rate):
def sub_total(self):
"""Gets the sub_total of this Invoice. # noqa: E501
- Total of invoice excluding taxes # noqa: E501
+ Total of invoice excluding taxes. Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can SubTotal be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with TotalTax and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) # noqa: E501
:return: The sub_total of this Invoice. # noqa: E501
:rtype: float
@@ -759,7 +771,7 @@ def sub_total(self):
def sub_total(self, sub_total):
"""Sets the sub_total of this Invoice.
- Total of invoice excluding taxes # noqa: E501
+ Total of invoice excluding taxes. Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can SubTotal be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with TotalTax and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) # noqa: E501
:param sub_total: The sub_total of this Invoice. # noqa: E501
:type: float
@@ -771,7 +783,7 @@ def sub_total(self, sub_total):
def total_tax(self):
"""Gets the total_tax of this Invoice. # noqa: E501
- Total tax on invoice # noqa: E501
+ Total tax on invoice. Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can TotalTax be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) # noqa: E501
:return: The total_tax of this Invoice. # noqa: E501
:rtype: float
@@ -782,7 +794,7 @@ def total_tax(self):
def total_tax(self, total_tax):
"""Sets the total_tax of this Invoice.
- Total tax on invoice # noqa: E501
+ Total tax on invoice. Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can TotalTax be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) # noqa: E501
:param total_tax: The total_tax of this Invoice. # noqa: E501
:type: float
@@ -794,7 +806,7 @@ def total_tax(self, total_tax):
def total(self):
"""Gets the total of this Invoice. # noqa: E501
- Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts # noqa: E501
+ Total of Invoice tax inclusive (i.e. SubTotal + TotalTax + RoundingAmount). Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can Total be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and TotalTax, it is validated against the calculated line item totals plus RoundingAmount; in all other cases this will be ignored if it does not equal the sum of the LineAmounts. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) # noqa: E501
:return: The total of this Invoice. # noqa: E501
:rtype: float
@@ -805,7 +817,7 @@ def total(self):
def total(self, total):
"""Sets the total of this Invoice.
- Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts # noqa: E501
+ Total of Invoice tax inclusive (i.e. SubTotal + TotalTax + RoundingAmount). Calculated automatically by Xero from the invoice's line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can Total be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and TotalTax, it is validated against the calculated line item totals plus RoundingAmount; in all other cases this will be ignored if it does not equal the sum of the LineAmounts. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) # noqa: E501
:param total: The total of this Invoice. # noqa: E501
:type: float
@@ -836,6 +848,52 @@ def total_discount(self, total_discount):
self._total_discount = total_discount
+ @property
+ def rounding_amount(self):
+ """Gets the rounding_amount of this Invoice. # noqa: E501
+
+ An optional rounding adjustment added to SubTotal + TotalTax to give Total (i.e. Total = SubTotal + TotalTax + RoundingAmount). Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Not validated while the invoice is DRAFT. For SUBMITTED and AUTHORISED invoices, RoundingAmount is only applied when SubTotal, TotalTax and Total are all supplied together, and must be between -0.10 and 0.10 – values outside this range are rejected with a validation error (on DRAFT invoices, an out-of-range value is ignored instead). This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET) # noqa: E501
+
+ :return: The rounding_amount of this Invoice. # noqa: E501
+ :rtype: float
+ """
+ return self._rounding_amount
+
+ @rounding_amount.setter
+ def rounding_amount(self, rounding_amount):
+ """Sets the rounding_amount of this Invoice.
+
+ An optional rounding adjustment added to SubTotal + TotalTax to give Total (i.e. Total = SubTotal + TotalTax + RoundingAmount). Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Not validated while the invoice is DRAFT. For SUBMITTED and AUTHORISED invoices, RoundingAmount is only applied when SubTotal, TotalTax and Total are all supplied together, and must be between -0.10 and 0.10 – values outside this range are rejected with a validation error (on DRAFT invoices, an out-of-range value is ignored instead). This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET) # noqa: E501
+
+ :param rounding_amount: The rounding_amount of this Invoice. # noqa: E501
+ :type: float
+ """
+
+ self._rounding_amount = rounding_amount
+
+ @property
+ def entered_total(self):
+ """Gets the entered_total of this Invoice. # noqa: E501
+
+ The total amount as originally entered for the invoice, before any RoundingAmount adjustment is applied. Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Can only be set while the invoice is DRAFT; once the invoice is no longer DRAFT this reflects Total. This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET) # noqa: E501
+
+ :return: The entered_total of this Invoice. # noqa: E501
+ :rtype: float
+ """
+ return self._entered_total
+
+ @entered_total.setter
+ def entered_total(self, entered_total):
+ """Sets the entered_total of this Invoice.
+
+ The total amount as originally entered for the invoice, before any RoundingAmount adjustment is applied. Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Can only be set while the invoice is DRAFT; once the invoice is no longer DRAFT this reflects Total. This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET) # noqa: E501
+
+ :param entered_total: The entered_total of this Invoice. # noqa: E501
+ :type: float
+ """
+
+ self._entered_total = entered_total
+
@property
def invoice_id(self):
"""Gets the invoice_id of this Invoice. # noqa: E501
diff --git a/xero_python/appstore/api/app_store_api.py b/xero_python/appstore/api/app_store_api.py
index b201bc02..b5f50f8a 100644
--- a/xero_python/appstore/api/app_store_api.py
+++ b/xero_python/appstore/api/app_store_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""
diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py
index d15296ad..788612d8 100644
--- a/xero_python/assets/api/asset_api.py
+++ b/xero_python/assets/api/asset_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""
diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md
index 550a5b28..9071cd21 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: 16.2.0
-- Package version: 15.1.0
+- API version: 19.0.0
+- Package version: 15.2.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 1f799f6c..19ec08e4 100644
--- a/xero_python/file/api/files_api.py
+++ b/xero_python/file/api/files_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""
diff --git a/xero_python/finance/api/finance_api.py b/xero_python/finance/api/finance_api.py
index 826c35ad..7606b809 100644
--- a/xero_python/finance/api/finance_api.py
+++ b/xero_python/finance/api/finance_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""
diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py
index d412386d..b4a7a0ea 100644
--- a/xero_python/identity/api/identity_api.py
+++ b/xero_python/identity/api/identity_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""
diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py
index 68b77542..478da00b 100644
--- a/xero_python/payrollau/api/payroll_au_api.py
+++ b/xero_python/payrollau/api/payroll_au_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""
diff --git a/xero_python/payrollauv2/api/payroll_au_v2_api.py b/xero_python/payrollauv2/api/payroll_au_v2_api.py
index fcc58aa7..191da01a 100644
--- a/xero_python/payrollauv2/api/payroll_au_v2_api.py
+++ b/xero_python/payrollauv2/api/payroll_au_v2_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""
diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py
index 7c37737e..fd5b108c 100644
--- a/xero_python/payrollnz/api/payroll_nz_api.py
+++ b/xero_python/payrollnz/api/payroll_nz_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""
diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py
index 2025c28b..b7674d94 100644
--- a/xero_python/payrolluk/api/payroll_uk_api.py
+++ b/xero_python/payrolluk/api/payroll_uk_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""
diff --git a/xero_python/payrolluk/models/employment_status.py b/xero_python/payrolluk/models/employment_status.py
index ab4e2e49..25682157 100644
--- a/xero_python/payrolluk/models/employment_status.py
+++ b/xero_python/payrolluk/models/employment_status.py
@@ -27,3 +27,4 @@ class EmploymentStatus(Enum):
EMPLOYEE = "Employee"
WORKER = "Worker"
UNSPECIFIED = "Unspecified"
+ OFFPAYROLLWORKER = "OffPayrollWorker"
diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py
index cfddf7ba..f7040f83 100644
--- a/xero_python/project/api/project_api.py
+++ b/xero_python/project/api/project_api.py
@@ -21,7 +21,7 @@
"""
"""
- OpenAPI spec version: 16.2.0
+ OpenAPI spec version: 19.0.0
"""