diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index d72cc1a7..a5dbbb7c 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -6008,7 +6008,7 @@ SDK: - VSN: 1.20.0 + VSN: 1.21.0 Methods createAccount diff --git a/docs/v1/appstore/index.html b/docs/v1/appstore/index.html index b081cf9e..2fda0c4b 100644 --- a/docs/v1/appstore/index.html +++ b/docs/v1/appstore/index.html @@ -1133,7 +1133,7 @@ SDK: - VSN: 1.20.0 + VSN: 1.21.0 Methods getSubscription diff --git a/docs/v1/assets/index.html b/docs/v1/assets/index.html index 4ee182b7..11f2c723 100644 --- a/docs/v1/assets/index.html +++ b/docs/v1/assets/index.html @@ -1392,7 +1392,7 @@ SDK: - VSN: 1.20.0 + VSN: 1.21.0 Methods createAsset diff --git a/docs/v1/files/index.html b/docs/v1/files/index.html index efc7e727..e1042f79 100644 --- a/docs/v1/files/index.html +++ b/docs/v1/files/index.html @@ -1155,7 +1155,7 @@ SDK: - VSN: 1.20.0 + VSN: 1.21.0 Methods createFileAssociation diff --git a/docs/v1/finance/index.html b/docs/v1/finance/index.html index f076aa0a..5633b3de 100644 --- a/docs/v1/finance/index.html +++ b/docs/v1/finance/index.html @@ -2706,7 +2706,7 @@ SDK: - VSN: 1.20.0 + VSN: 1.21.0 Methods getAccountingActivityAccountUsage diff --git a/docs/v1/payroll-au/index.html b/docs/v1/payroll-au/index.html index 15c7de46..f57f7092 100644 --- a/docs/v1/payroll-au/index.html +++ b/docs/v1/payroll-au/index.html @@ -3254,7 +3254,7 @@ SDK: - VSN: 1.20.0 + VSN: 1.21.0 Methods createEmployee diff --git a/docs/v1/payroll-nz/index.html b/docs/v1/payroll-nz/index.html index cc0655c0..80d5357c 100644 --- a/docs/v1/payroll-nz/index.html +++ b/docs/v1/payroll-nz/index.html @@ -3838,7 +3838,7 @@ SDK: - VSN: 1.20.0 + VSN: 1.21.0 Methods approveTimesheet diff --git a/docs/v1/payroll-uk/index.html b/docs/v1/payroll-uk/index.html index 1141c4d5..274dd508 100644 --- a/docs/v1/payroll-uk/index.html +++ b/docs/v1/payroll-uk/index.html @@ -3510,7 +3510,7 @@ SDK: - VSN: 1.20.0 + VSN: 1.21.0 Methods approveTimesheet diff --git a/docs/v1/projects/index.html b/docs/v1/projects/index.html index 734fc68b..3013342f 100644 --- a/docs/v1/projects/index.html +++ b/docs/v1/projects/index.html @@ -1468,7 +1468,7 @@ SDK: - VSN: 1.20.0 + VSN: 1.21.0 Methods createProject diff --git a/setup.py b/setup.py index 227efbdd..3a5eacd2 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.20.0", + version="1.21.0", ) diff --git a/xero_python/__init__.py b/xero_python/__init__.py index 9018c9a3..9af1a754 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.20.0" +__version__ = "1.21.0" diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py index b5dcabfc..1021d2a7 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.31.0 + OpenAPI spec version: 2.33.1 """ import importlib @@ -968,7 +968,7 @@ def create_branding_theme_payment_services( self, xero_tenant_id, branding_theme_id, - payment_service, + payment_services, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -977,7 +977,7 @@ def create_branding_theme_payment_services( OAuth2 scope: paymentservices :param str xero_tenant_id: Xero identifier for Tenant (required) :param str branding_theme_id: Unique identifier for a Branding Theme (required) - :param PaymentService payment_service: PaymentService object in body of request (required) + :param PaymentServices payment_services: PaymentServices array with PaymentService object in body of request (required) :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 @@ -996,10 +996,10 @@ def create_branding_theme_payment_services( "Missing the required parameter `branding_theme_id` " "when calling `create_branding_theme_payment_services`" ) - # verify the required parameter 'payment_service' is set - if payment_service is None: + # verify the required parameter 'payment_services' is set + if payment_services is None: raise ValueError( - "Missing the required parameter `payment_service` " + "Missing the required parameter `payment_services` " "when calling `create_branding_theme_payment_services`" ) @@ -1017,7 +1017,7 @@ def create_branding_theme_payment_services( local_var_files = {} form_params = [] - body_params = payment_service + body_params = payment_services # HTTP header `Accept` header_params["Accept"] = self.api_client.select_header_accept( ["application/json"] diff --git a/xero_python/accounting/docs/AccountingApi.md b/xero_python/accounting/docs/AccountingApi.md index 9f4604cc..deebd107 100644 --- a/xero_python/accounting/docs/AccountingApi.md +++ b/xero_python/accounting/docs/AccountingApi.md @@ -893,7 +893,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) # **create_branding_theme_payment_services** -> PaymentServices create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_service) +> PaymentServices create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_services) Creates a new custom payment service for a specific branding theme @@ -925,10 +925,10 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant branding_theme_id = '00000000-0000-0000-0000-000000000000' # str | Unique identifier for a Branding Theme -payment_service = { "PaymentServiceID": "00000000-0000-0000-0000-000000000000", "PaymentServiceName": "Payments Service", "PaymentServiceUrl": "https://www.paymentservice.com/", "PayNowText": "Pay Now" } # PaymentService | PaymentService object in body of request +payment_services = { "PaymentServices": [ { "PaymentServiceID": "54b3b4f6-0443-4fba-bcd1-61ec0c35ca55", "PaymentServiceName": "PayUpNow", "PaymentServiceUrl": "https://www.payupnow.com/", "PaymentServiceType": "Custom", "PayNowText": "Time To Pay" } ] } # PaymentServices | PaymentServices array with PaymentService object in body of request try: # Creates a new custom payment service for a specific branding theme - api_response = api_instance.create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_service) + api_response = api_instance.create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_services) pprint(api_response) except ApiException as e: print("Exception when calling AccountingApi->create_branding_theme_payment_services: %s\n" % e) @@ -940,7 +940,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **str**| Xero identifier for Tenant | **branding_theme_id** | [**str**](.md)| Unique identifier for a Branding Theme | - **payment_service** | [**PaymentService**](PaymentService.md)| PaymentService object in body of request | + **payment_services** | [**PaymentServices**](PaymentServices.md)| PaymentServices array with PaymentService object in body of request | ### Return type diff --git a/xero_python/accounting/docs/BatchPayment.md b/xero_python/accounting/docs/BatchPayment.md index 527a54dc..52b41030 100644 --- a/xero_python/accounting/docs/BatchPayment.md +++ b/xero_python/accounting/docs/BatchPayment.md @@ -16,9 +16,9 @@ Name | Type | Description | Notes **payments** | [**list[Payment]**](Payment.md) | An array of payments | [optional] **type** | **str** | PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only) | [optional] **status** | **str** | AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API. | [optional] -**total_amount** | **str** | The total of the payments that make up the batch (read-only) | [optional] +**total_amount** | **float** | The total of the payments that make up the batch (read-only) | [optional] **updated_date_utc** | **datetime** | UTC timestamp of last update to the payment | [optional] -**is_reconciled** | **str** | Booelan that tells you if the batch payment has been reconciled (read-only) | [optional] +**is_reconciled** | **bool** | Booelan that tells you if the batch payment has been reconciled (read-only) | [optional] **validation_errors** | [**list[ValidationError]**](ValidationError.md) | Displays array of validation error messages from the API | [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/accounting/docs/Payment.md b/xero_python/accounting/docs/Payment.md index f387655b..44957f6a 100644 --- a/xero_python/accounting/docs/Payment.md +++ b/xero_python/accounting/docs/Payment.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **overpayment** | [**Overpayment**](Overpayment.md) | | [optional] **invoice_number** | **str** | Number of invoice or credit note you are applying payment to e.g.INV-4003 | [optional] **credit_note_number** | **str** | Number of invoice or credit note you are applying payment to e.g. INV-4003 | [optional] +**batch_payment** | [**BatchPayment**](BatchPayment.md) | | [optional] **account** | [**Account**](Account.md) | | [optional] **code** | **str** | Code of account you are using to make the payment e.g. 001 (note- not all accounts have a code value) | [optional] **date** | **date** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional] diff --git a/xero_python/accounting/models/batch_payment.py b/xero_python/accounting/models/batch_payment.py index 4cfddad7..35ad7b61 100644 --- a/xero_python/accounting/models/batch_payment.py +++ b/xero_python/accounting/models/batch_payment.py @@ -43,9 +43,9 @@ class BatchPayment(BaseModel): "payments": "list[Payment]", "type": "str", "status": "str", - "total_amount": "str", + "total_amount": "float", "updated_date_utc": "datetime[ms-format]", - "is_reconciled": "str", + "is_reconciled": "bool", "validation_errors": "list[ValidationError]", } @@ -486,7 +486,7 @@ def total_amount(self): The total of the payments that make up the batch (read-only) # noqa: E501 :return: The total_amount of this BatchPayment. # noqa: E501 - :rtype: str + :rtype: float """ return self._total_amount @@ -497,7 +497,7 @@ def total_amount(self, total_amount): The total of the payments that make up the batch (read-only) # noqa: E501 :param total_amount: The total_amount of this BatchPayment. # noqa: E501 - :type: str + :type: float """ self._total_amount = total_amount @@ -532,7 +532,7 @@ def is_reconciled(self): Booelan that tells you if the batch payment has been reconciled (read-only) # noqa: E501 :return: The is_reconciled of this BatchPayment. # noqa: E501 - :rtype: str + :rtype: bool """ return self._is_reconciled @@ -543,7 +543,7 @@ def is_reconciled(self, is_reconciled): Booelan that tells you if the batch payment has been reconciled (read-only) # noqa: E501 :param is_reconciled: The is_reconciled of this BatchPayment. # noqa: E501 - :type: str + :type: bool """ self._is_reconciled = is_reconciled diff --git a/xero_python/accounting/models/payment.py b/xero_python/accounting/models/payment.py index f6f5aa12..bb5f4148 100644 --- a/xero_python/accounting/models/payment.py +++ b/xero_python/accounting/models/payment.py @@ -36,6 +36,7 @@ class Payment(BaseModel): "overpayment": "Overpayment", "invoice_number": "str", "credit_note_number": "str", + "batch_payment": "BatchPayment", "account": "Account", "code": "str", "date": "date[ms-format]", @@ -65,6 +66,7 @@ class Payment(BaseModel): "overpayment": "Overpayment", "invoice_number": "InvoiceNumber", "credit_note_number": "CreditNoteNumber", + "batch_payment": "BatchPayment", "account": "Account", "code": "Code", "date": "Date", @@ -95,6 +97,7 @@ def __init__( overpayment=None, invoice_number=None, credit_note_number=None, + batch_payment=None, account=None, code=None, date=None, @@ -124,6 +127,7 @@ def __init__( self._overpayment = None self._invoice_number = None self._credit_note_number = None + self._batch_payment = None self._account = None self._code = None self._date = None @@ -158,6 +162,8 @@ def __init__( self.invoice_number = invoice_number if credit_note_number is not None: self.credit_note_number = credit_note_number + if batch_payment is not None: + self.batch_payment = batch_payment if account is not None: self.account = account if code is not None: @@ -329,6 +335,27 @@ def credit_note_number(self, credit_note_number): self._credit_note_number = credit_note_number + @property + def batch_payment(self): + """Gets the batch_payment of this Payment. # noqa: E501 + + + :return: The batch_payment of this Payment. # noqa: E501 + :rtype: BatchPayment + """ + return self._batch_payment + + @batch_payment.setter + def batch_payment(self, batch_payment): + """Sets the batch_payment of this Payment. + + + :param batch_payment: The batch_payment of this Payment. # noqa: E501 + :type: BatchPayment + """ + + self._batch_payment = batch_payment + @property def account(self): """Gets the account of this Payment. # noqa: E501 diff --git a/xero_python/accounting/models/tax_rate.py b/xero_python/accounting/models/tax_rate.py index 82c17373..3909dc58 100644 --- a/xero_python/accounting/models/tax_rate.py +++ b/xero_python/accounting/models/tax_rate.py @@ -332,6 +332,9 @@ def report_tax_type(self, report_tax_type): "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", + "SROVRRS", + "SROVRLVG", + "SRLVG", "None", ] # noqa: E501 diff --git a/xero_python/accounting/models/tax_type.py b/xero_python/accounting/models/tax_type.py index ce5340f4..a44c85bc 100644 --- a/xero_python/accounting/models/tax_type.py +++ b/xero_python/accounting/models/tax_type.py @@ -91,3 +91,18 @@ class TaxType(Enum): TXRCREINPUT = "TXRCREINPUT" TXRCESSINPUT = "TXRCESSINPUT" TXRCTSINPUT = "TXRCTSINPUT" + OUTPUTY23 = "OUTPUTY23" + DSOUTPUTY23 = "DSOUTPUTY23" + INPUTY23 = "INPUTY23" + IMINPUT2Y23 = "IMINPUT2Y23" + IGDSINPUT2Y23 = "IGDSINPUT2Y23" + TXPETINPUTY23 = "TXPETINPUTY23" + TXESSINPUTY23 = "TXESSINPUTY23" + TXN33INPUTY23 = "TXN33INPUTY23" + TXREINPUTY23 = "TXREINPUTY23" + TXCAY23 = "TXCAY23" + BADDEBTRELIEFY23 = "BADDEBTRELIEFY23" + IGDSINPUT3Y23 = "IGDSINPUT3Y23" + SROVRRSY23 = "SROVRRSY23" + SROVRLVGY23 = "SROVRLVGY23" + SRLVGY23 = "SRLVGY23" diff --git a/xero_python/appstore/api/app_store_api.py b/xero_python/appstore/api/app_store_api.py index b5d5c829..7f6a8ab8 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.31.0 + OpenAPI spec version: 2.33.1 """ import importlib diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py index 64b20f2d..6ecb5cc0 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.31.0 + OpenAPI spec version: 2.33.1 """ import importlib diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md index 4caf8606..a3ccffc9 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.31.0 -- Package version: 1.20.0 +- API version: 2.33.1 +- Package version: 1.21.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 1bf186db..20cb70a0 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.31.0 + OpenAPI spec version: 2.33.1 """ import importlib diff --git a/xero_python/finance/api/finance_api.py b/xero_python/finance/api/finance_api.py index d2122b5a..bec31e3c 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.31.0 + OpenAPI spec version: 2.33.1 """ import importlib diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py index 0378f40b..aae7d38a 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.31.0 + OpenAPI spec version: 2.33.1 """ import importlib diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py index f3d4915d..a29a805b 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.31.0 + OpenAPI spec version: 2.33.1 """ import importlib diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py index cb4c2f96..c5ad369a 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.31.0 + OpenAPI spec version: 2.33.1 """ import importlib diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py index 744c0e40..ecc7b738 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.31.0 + OpenAPI spec version: 2.33.1 """ import importlib diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py index 49f9e3a8..2c77a0d8 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.31.0 + OpenAPI spec version: 2.33.1 """ import importlib @@ -865,7 +865,7 @@ def get_tasks( :param str project_id: You can specify an individual project by appending the projectId to the endpoint (required) :param int page: Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. :param int page_size: Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. - :param str task_ids: taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID} + :param str task_ids: Search for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID} :param ChargeType charge_type: :param bool _return_http_data_only: return received data only :param bool _preload_content: load received data in models diff --git a/xero_python/project/docs/ProjectApi.md b/xero_python/project/docs/ProjectApi.md index aacd83ef..502d2da8 100644 --- a/xero_python/project/docs/ProjectApi.md +++ b/xero_python/project/docs/ProjectApi.md @@ -660,7 +660,7 @@ xero_tenant_id = 'xero_tenant_id_example' # str | Xero identifier for Tenant project_id = 'project_id_example' # str | You can specify an individual project by appending the projectId to the endpoint page = 1 # int | Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. (optional) page_size = 10 # int | Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. (optional) -task_ids = 'task_ids_example' # str | taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID} (optional) +task_ids = 'task_ids_example' # str | Search for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID} (optional) charge_type = xero_python.project.ChargeType() # ChargeType | (optional) try: # Retrieves all project tasks @@ -678,7 +678,7 @@ Name | Type | Description | Notes **project_id** | [**str**](.md)| You can specify an individual project by appending the projectId to the endpoint | **page** | **int**| Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. | [optional] **page_size** | **int**| Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. | [optional] - **task_ids** | **str**| taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID} | [optional] + **task_ids** | **str**| Search for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID} | [optional] **charge_type** | [**ChargeType**](.md)| | [optional] ### Return type