diff --git a/setup.py b/setup.py index c524c5f4..a7d760ee 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.2.0", + version="1.3.0", ) diff --git a/xero_python/__init__.py b/xero_python/__init__.py index d57a2bf7..ea2527e3 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.2.0" +__version__ = "1.3.0" diff --git a/xero_python/accounting/__init__.py b/xero_python/accounting/__init__.py index 1c06a0b4..e7a8eb9e 100644 --- a/xero_python/accounting/__init__.py +++ b/xero_python/accounting/__init__.py @@ -7,7 +7,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py index af4d3a57..0f4f8cc2 100644 --- a/xero_python/accounting/api/accounting_api.py +++ b/xero_python/accounting/api/accounting_api.py @@ -5,11 +5,13 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ +""" + OpenAPI spec version: 2.8.4 +""" import importlib import re # noqa: F401 @@ -705,7 +707,7 @@ def create_bank_transfer_history_record( _preload_content=True, _request_timeout=None, ): - """create_bank_transfer_history_record # noqa: E501 + """Allows you to create history record for a bank transfers # noqa: E501 OAuth2 scope: accounting.transactions :param str xero_tenant_id: Xero identifier for Tenant (required) :param str bank_transfer_id: Xero generated unique identifier for a bank transfer (required) @@ -1885,7 +1887,7 @@ def create_currency( _preload_content=True, _request_timeout=None, ): - """create_currency # noqa: E501 + """Allows you to create a new currency for an org # noqa: E501 OAuth2 scope: accounting.settings :param str xero_tenant_id: Xero identifier for Tenant (required) :param Currency currency: Currency obejct in the body of request (required) @@ -16483,7 +16485,7 @@ def update_contact( _preload_content=True, _request_timeout=None, ): - """update_contact # noqa: E501 + """Allows you to update one contact in a Xero organisation # noqa: E501 OAuth2 scope: accounting.contacts :param str xero_tenant_id: Xero identifier for Tenant (required) :param str contact_id: Unique identifier for a Contact (required) diff --git a/xero_python/accounting/docs/AccountingApi.md b/xero_python/accounting/docs/AccountingApi.md index 91758d72..a90e9b0b 100644 --- a/xero_python/accounting/docs/AccountingApi.md +++ b/xero_python/accounting/docs/AccountingApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description [**create_bank_transactions**](AccountingApi.md#create_bank_transactions) | **PUT** /BankTransactions | Allows you to create one or more spend or receive money transaction [**create_bank_transfer**](AccountingApi.md#create_bank_transfer) | **PUT** /BankTransfers | Allows you to create a bank transfers [**create_bank_transfer_attachment_by_file_name**](AccountingApi.md#create_bank_transfer_attachment_by_file_name) | **PUT** /BankTransfers/{BankTransferID}/Attachments/{FileName} | -[**create_bank_transfer_history_record**](AccountingApi.md#create_bank_transfer_history_record) | **PUT** /BankTransfers/{BankTransferID}/History | +[**create_bank_transfer_history_record**](AccountingApi.md#create_bank_transfer_history_record) | **PUT** /BankTransfers/{BankTransferID}/History | Allows you to create history record for a bank transfers [**create_batch_payment**](AccountingApi.md#create_batch_payment) | **PUT** /BatchPayments | Create one or many BatchPayments for invoices [**create_batch_payment_history_record**](AccountingApi.md#create_batch_payment_history_record) | **PUT** /BatchPayments/{BatchPaymentID}/History | Allows you to create a history record for a Batch Payment [**create_branding_theme_payment_services**](AccountingApi.md#create_branding_theme_payment_services) | **POST** /BrandingThemes/{BrandingThemeID}/PaymentServices | Allow for the creation of new custom payment service for specified Branding Theme @@ -24,7 +24,7 @@ Method | HTTP request | Description [**create_credit_note_attachment_by_file_name**](AccountingApi.md#create_credit_note_attachment_by_file_name) | **PUT** /CreditNotes/{CreditNoteID}/Attachments/{FileName} | Allows you to create Attachments on CreditNote by file name [**create_credit_note_history**](AccountingApi.md#create_credit_note_history) | **PUT** /CreditNotes/{CreditNoteID}/History | Allows you to retrieve a history records of an CreditNote [**create_credit_notes**](AccountingApi.md#create_credit_notes) | **PUT** /CreditNotes | Allows you to create a credit note -[**create_currency**](AccountingApi.md#create_currency) | **PUT** /Currencies | +[**create_currency**](AccountingApi.md#create_currency) | **PUT** /Currencies | Allows you to create a new currency for an org [**create_employees**](AccountingApi.md#create_employees) | **PUT** /Employees | Allows you to create new employees used in Xero payrun [**create_expense_claim_history**](AccountingApi.md#create_expense_claim_history) | **PUT** /ExpenseClaims/{ExpenseClaimID}/History | Allows you to create a history records of an ExpenseClaim [**create_expense_claims**](AccountingApi.md#create_expense_claims) | **PUT** /ExpenseClaims | Allows you to retrieve expense claims @@ -197,7 +197,7 @@ Method | HTTP request | Description [**update_bank_transaction**](AccountingApi.md#update_bank_transaction) | **POST** /BankTransactions/{BankTransactionID} | Allows you to update a single spend or receive money transaction [**update_bank_transaction_attachment_by_file_name**](AccountingApi.md#update_bank_transaction_attachment_by_file_name) | **POST** /BankTransactions/{BankTransactionID}/Attachments/{FileName} | Allows you to update an Attachment on BankTransaction by Filename [**update_bank_transfer_attachment_by_file_name**](AccountingApi.md#update_bank_transfer_attachment_by_file_name) | **POST** /BankTransfers/{BankTransferID}/Attachments/{FileName} | -[**update_contact**](AccountingApi.md#update_contact) | **POST** /Contacts/{ContactID} | +[**update_contact**](AccountingApi.md#update_contact) | **POST** /Contacts/{ContactID} | Allows you to update one contact in a Xero organisation [**update_contact_attachment_by_file_name**](AccountingApi.md#update_contact_attachment_by_file_name) | **POST** /Contacts/{ContactID}/Attachments/{FileName} | [**update_contact_group**](AccountingApi.md#update_contact_group) | **POST** /ContactGroups/{ContactGroupID} | Allows you to update a Contact Group [**update_credit_note**](AccountingApi.md#update_credit_note) | **POST** /CreditNotes/{CreditNoteID} | Allows you to update a specific credit note @@ -691,7 +691,7 @@ Name | Type | Description | Notes # **create_bank_transfer_history_record** > HistoryRecords create_bank_transfer_history_record(xero_tenant_id, bank_transfer_id, history_records) - +Allows you to create history record for a bank transfers ### Example @@ -723,6 +723,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant bank_transfer_id = '00000000-0000-0000-000-000000000000' # str | Xero generated unique identifier for a bank transfer history_records = { "HistoryRecords": [ { "Details": "Hello World" } ] } # HistoryRecords | HistoryRecords containing an array of HistoryRecord objects in body of request try: + # Allows you to create history record for a bank transfers api_response = api_instance.create_bank_transfer_history_record(xero_tenant_id, bank_transfer_id, history_records) pprint(api_response) except ApiException as e: @@ -1542,7 +1543,7 @@ Name | Type | Description | Notes # **create_currency** > Currencies create_currency(xero_tenant_id, currency) - +Allows you to create a new currency for an org ### Example @@ -1573,6 +1574,7 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant currency = { "Code": "USD", "Description": "United States Dollar" } # Currency | Currency obejct in the body of request try: + # Allows you to create a new currency for an org api_response = api_instance.create_currency(xero_tenant_id, currency) pprint(api_response) except ApiException as e: @@ -4684,7 +4686,7 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + Account.StatusEnum.ACTIVE + '\" AND Type==\"' + Account.BankAccountTypeEnum.BANK + '\"' # str | Filter by an any element (optional) +where = 'Status=="ACTIVE" AND Type=="BANK"' # str | Filter by an any element (optional) order = 'Name ASC' # str | Order by an any element (optional) try: # Allows you to retrieve the full chart of accounts @@ -5013,7 +5015,7 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + BankTransaction.StatusEnum.AUTHORISED + '\"' # str | Filter by an any element (optional) +where = 'Status==\"AUTHORISED\"' # str | Filter by an any element (optional) order = 'Type ASC' # str | Order by an any element (optional) page = 1 # int | Up to 100 bank transactions will be returned in a single API call with line items details (optional) unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) @@ -5600,7 +5602,7 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + BatchPayment.StatusEnum.AUTHORISED + '\"' # str | Filter by an any element (optional) +where = 'Status==\"AUTHORISED\"' # str | Filter by an any element (optional) order = 'Date ASC' # str | Order by an any element (optional) try: # Retrieve either one or many BatchPayments for invoices @@ -6302,7 +6304,7 @@ api_client = ApiClient( api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant -where = 'Status==\"' + ContactGroup.StatusEnum.ACTIVE + '\"' # str | Filter by an any element (optional) +where = 'Status==\"ACTIVE\"' # str | Filter by an any element (optional) order = 'Name ASC' # str | Order by an any element (optional) try: # Allows you to retrieve the ContactID and Name of all the contacts in a contact group @@ -6431,9 +6433,9 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'ContactStatus==\"' + Contact.ContactStatusEnum.ACTIVE + '\"' # str | Filter by an any element (optional) +where = 'ContactStatus=="ACTIVE"' # str | Filter by an any element (optional) order = 'Name ASC' # str | Order by an any element (optional) -i_ds = ['00000000-0000-0000-000-000000000000,00000000-0000-0000-000-000000000000'] # list[str] | Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. (optional) +i_ds = ['"00000000-0000-0000-000-000000000000"'] # list[str] | Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. (optional) 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) try: @@ -6892,7 +6894,7 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + CreditNote.StatusEnum.DRAFT + '\"' # str | Filter by an any element (optional) +where = 'Status==\"DRAFT\"' # str | Filter by an any element (optional) order = 'CreditNoteNumber ASC' # str | Order by an any element (optional) page = 1 # int | e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note (optional) unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) @@ -6962,7 +6964,7 @@ api_client = ApiClient( api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant -where = 'Status==\"' + Currency.StatusEnum.ACTIVE + '\"' # str | Filter by an any element (optional) +where = 'Code==\"USD\"' # str | Filter by an any element (optional) order = 'Code ASC' # str | Order by an any element (optional) try: # Allows you to retrieve currencies for your organisation @@ -7091,8 +7093,8 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + Employee.StatusEnum.ACTIVE + '\"' # str | Filter by an any element (optional) -order = 'ASC' # str | Order by an any element (optional) +where = 'Status==\"ACTIVE\"' # str | Filter by an any element (optional) +order = 'LastName ASC' # str | Order by an any element (optional) try: # Allows you to retrieve employees used in Xero payrun api_response = api_instance.get_employees(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order) @@ -7284,7 +7286,7 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + ExpenseClaim.StatusEnum.SUBMITTED + '\"' # str | Filter by an any element (optional) +where = 'Status==\"SUBMITTED\"' # str | Filter by an any element (optional) order = 'Status ASC' # str | Order by an any element (optional) try: # Allows you to retrieve expense claims @@ -7800,12 +7802,12 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + Invoice.StatusEnum.DRAFT + '\"' # str | Filter by an any element (optional) +where = 'Status==\"DRAFT\"' # str | Filter by an any element (optional) order = 'InvoiceNumber ASC' # str | Order by an any element (optional) -i_ds = ['00000000-0000-0000-000-000000000000,00000000-0000-0000-000-000000000000'] # list[str] | Filter by a comma-separated list of InvoicesIDs. (optional) -invoice_numbers = ['null'] # list[str] | Filter by a comma-separated list of InvoiceNumbers. (optional) -contact_i_ds = ['00000000-0000-0000-000-000000000000,00000000-0000-0000-000-000000000000'] # list[str] | Filter by a comma-separated list of ContactIDs. (optional) -statuses = ['null'] # list[str] | Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter. (optional) +i_ds = ['"00000000-0000-0000-000-000000000000"'] # list[str] | Filter by a comma-separated list of InvoicesIDs. (optional) +invoice_numbers = ['"INV-001", "INV-002"'] # list[str] | Filter by a comma-separated list of InvoiceNumbers. (optional) +contact_i_ds = ['"00000000-0000-0000-000-000000000000"'] # list[str] | Filter by a comma-separated list of ContactIDs. (optional) +statuses = ['"DRAFT", "SUBMITTED"'] # list[str] | Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter. (optional) page = 1 # int | e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice (optional) include_archived = True # bool | e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional) created_by_my_app = false # bool | When set to true you'll only retrieve Invoices created by your app (optional) @@ -8606,7 +8608,7 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + ManualJournal.StatusEnum.DRAFT + '\"' # str | Filter by an any element (optional) +where = 'Status==\"DRAFT\"' # str | Filter by an any element (optional) order = 'Date ASC' # str | Order by an any element (optional) page = 1 # int | e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment (optional) try: @@ -9112,8 +9114,8 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + Overpayment.StatusEnum.AUTHORISED + '\"' # str | Filter by an any element (optional) -order = 'RemainingCredit ASC' # str | Order by an any element (optional) +where = 'Status==\"AUTHORISED\"' # str | Filter by an any element (optional) +order = 'Status ASC' # str | Order by an any element (optional) page = 1 # int | e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment (optional) unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) try: @@ -9370,7 +9372,7 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + Payment.StatusEnum.AUTHORISED + '\"' # str | Filter by an any element (optional) +where = 'Status==\"AUTHORISED\"' # str | Filter by an any element (optional) order = 'Amount ASC' # str | Order by an any element (optional) page = 1 # int | Up to 100 payments will be returned in a single API call (optional) try: @@ -9565,7 +9567,7 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + Prepayment.StatusEnum.AUTHORISED + '\"' # str | Filter by an any element (optional) +where = 'Status==\"AUTHORISED\"' # str | Filter by an any element (optional) order = 'Reference ASC' # str | Order by an any element (optional) page = 1 # int | e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment (optional) unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) @@ -10549,10 +10551,10 @@ date_to = '2013-10-20' # date | Filter for quotes before a particular date (opti expiry_date_from = '2013-10-20' # date | Filter for quotes expiring after a particular date (optional) expiry_date_to = '2013-10-20' # date | Filter for quotes before a particular date (optional) contact_id = '00000000-0000-0000-000-000000000000' # str | Filter for quotes belonging to a particular contact (optional) -status = 'status_example' # str | Filter for quotes of a particular Status (optional) +status = 'DRAFT' # str | Filter for quotes of a particular Status (optional) page = 1 # int | e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote (optional) -order = 'ASC' # str | Order by an any element (optional) -quote_number = 'quote_number_example' # str | Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001) (optional) +order = 'Status ASC' # str | Order by an any element (optional) +quote_number = 'QU-0001' # str | Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001) (optional) try: # Allows you to retrieve any sales quotes api_response = api_instance.get_quotes(xero_tenant_id, if_modified_since=if_modified_since, date_from=date_from, date_to=date_to, expiry_date_from=expiry_date_from, expiry_date_to=expiry_date_to, contact_id=contact_id, status=status, page=page, order=order, quote_number=quote_number) @@ -10950,7 +10952,7 @@ api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional) -where = 'Status==\"' + Receipt.StatusEnum.DRAFT + '\"' # str | Filter by an any element (optional) +where = 'Status==\"DRAFT\"' # str | Filter by an any element (optional) order = 'ReceiptNumber ASC' # str | Order by an any element (optional) unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) try: @@ -11341,7 +11343,7 @@ api_client = ApiClient( api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant -where = 'Status==\"' + RepeatingInvoice.StatusEnum.DRAFT + '\"' # str | Filter by an any element (optional) +where = 'Status==\"DRAFT\"' # str | Filter by an any element (optional) order = 'Total ASC' # str | Order by an any element (optional) try: # Allows you to retrieve any repeating invoices @@ -12147,7 +12149,7 @@ api_client = ApiClient( api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant -where = 'Status==\"' + TaxRate.StatusEnum.ACTIVE + '\"' # str | Filter by an any element (optional) +where = 'Status==\"ACTIVE\"' # str | Filter by an any element (optional) order = 'Name ASC' # str | Order by an any element (optional) tax_type = 'INPUT' # str | Filter by tax type (optional) try: @@ -12214,7 +12216,7 @@ api_client = ApiClient( api_instance = AccountingApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant -where = 'Status==\"' + TrackingCategory.StatusEnum.ACTIVE + '\"' # str | Filter by an any element (optional) +where = 'Status==\"ACTIVE\"' # str | Filter by an any element (optional) order = 'Name ASC' # str | Order by an any element (optional) include_archived = True # bool | e.g. includeArchived=true - Categories and options with a status of ARCHIVED will be included in the response (optional) try: @@ -12840,7 +12842,7 @@ Name | Type | Description | Notes # **update_contact** > Contacts update_contact(xero_tenant_id, contact_id, contacts) - +Allows you to update one contact in a Xero organisation ### Example @@ -12872,6 +12874,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant contact_id = '00000000-0000-0000-000-000000000000' # str | Unique identifier for a Contact contacts = { "Contacts": [{ "ContactID": "00000000-0000-0000-000-000000000000", "Name": "Thanos" }]} # Contacts | an array of Contacts containing single Contact object with properties to update try: + # Allows you to update one contact in a Xero organisation api_response = api_instance.update_contact(xero_tenant_id, contact_id, contacts) pprint(api_response) except ApiException as e: diff --git a/xero_python/accounting/models/__init__.py b/xero_python/accounting/models/__init__.py index 94ab7112..48003c1b 100644 --- a/xero_python/accounting/models/__init__.py +++ b/xero_python/accounting/models/__init__.py @@ -6,7 +6,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/account.py b/xero_python/accounting/models/account.py index a616c4b6..dd72e0bf 100644 --- a/xero_python/accounting/models/account.py +++ b/xero_python/accounting/models/account.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -303,12 +302,14 @@ def status(self, status): :type: str """ allowed_values = ["ACTIVE", "ARCHIVED", "DELETED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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 @@ -363,12 +364,14 @@ def bank_account_type(self, bank_account_type): "", "None", ] # noqa: E501 - if bank_account_type not in allowed_values: - raise ValueError( - "Invalid value for `bank_account_type` ({0}), must be one of {1}".format( # noqa: E501 - bank_account_type, allowed_values + + if bank_account_type: + if bank_account_type not in allowed_values: + raise ValueError( + "Invalid value for `bank_account_type` ({0}), must be one of {1}".format( # noqa: E501 + bank_account_type, allowed_values + ) ) - ) self._bank_account_type = bank_account_type @@ -490,12 +493,14 @@ def _class(self, _class): "REVENUE", "None", ] # noqa: E501 - if _class not in allowed_values: - raise ValueError( - "Invalid value for `_class` ({0}), must be one of {1}".format( # noqa: E501 - _class, allowed_values + + if _class: + if _class not in allowed_values: + raise ValueError( + "Invalid value for `_class` ({0}), must be one of {1}".format( # noqa: E501 + _class, allowed_values + ) ) - ) self.__class = _class @@ -543,12 +548,14 @@ def system_account(self, system_account): "", "None", ] # noqa: E501 - if system_account not in allowed_values: - raise ValueError( - "Invalid value for `system_account` ({0}), must be one of {1}".format( # noqa: E501 - system_account, allowed_values + + if system_account: + if system_account not in allowed_values: + raise ValueError( + "Invalid value for `system_account` ({0}), must be one of {1}".format( # noqa: E501 + system_account, allowed_values + ) ) - ) self._system_account = system_account diff --git a/xero_python/accounting/models/account_type.py b/xero_python/accounting/models/account_type.py index 4f1cfada..59625af0 100644 --- a/xero_python/accounting/models/account_type.py +++ b/xero_python/accounting/models/account_type.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/accounts.py b/xero_python/accounting/models/accounts.py index 67df5da2..683f097a 100644 --- a/xero_python/accounting/models/accounts.py +++ b/xero_python/accounting/models/accounts.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/accounts_payable.py b/xero_python/accounting/models/accounts_payable.py index 44d9f6b8..3284c5c0 100644 --- a/xero_python/accounting/models/accounts_payable.py +++ b/xero_python/accounting/models/accounts_payable.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/accounts_receivable.py b/xero_python/accounting/models/accounts_receivable.py index d8252404..ef8940ec 100644 --- a/xero_python/accounting/models/accounts_receivable.py +++ b/xero_python/accounting/models/accounts_receivable.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/action.py b/xero_python/accounting/models/action.py index b3ed90cc..72eda542 100644 --- a/xero_python/accounting/models/action.py +++ b/xero_python/accounting/models/action.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -90,11 +89,13 @@ def status(self, status): :type: str """ allowed_values = ["ALLOWED", "NOT-ALLOWED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/actions.py b/xero_python/accounting/models/actions.py index 8f49b059..d490d35e 100644 --- a/xero_python/accounting/models/actions.py +++ b/xero_python/accounting/models/actions.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/address.py b/xero_python/accounting/models/address.py index ac5c071b..55be0a9d 100644 --- a/xero_python/accounting/models/address.py +++ b/xero_python/accounting/models/address.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -125,12 +124,14 @@ def address_type(self, address_type): :type: str """ allowed_values = ["POBOX", "STREET", "None"] # noqa: E501 - if address_type not in allowed_values: - raise ValueError( - "Invalid value for `address_type` ({0}), must be one of {1}".format( # noqa: E501 - address_type, allowed_values + + if address_type: + if address_type not in allowed_values: + raise ValueError( + "Invalid value for `address_type` ({0}), must be one of {1}".format( # noqa: E501 + address_type, allowed_values + ) ) - ) self._address_type = address_type diff --git a/xero_python/accounting/models/address_for_organisation.py b/xero_python/accounting/models/address_for_organisation.py index c2cafb4f..d84e7a9c 100644 --- a/xero_python/accounting/models/address_for_organisation.py +++ b/xero_python/accounting/models/address_for_organisation.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -125,12 +124,14 @@ def address_type(self, address_type): :type: str """ allowed_values = ["POBOX", "STREET", "DELIVERY", "None"] # noqa: E501 - if address_type not in allowed_values: - raise ValueError( - "Invalid value for `address_type` ({0}), must be one of {1}".format( # noqa: E501 - address_type, allowed_values + + if address_type: + if address_type not in allowed_values: + raise ValueError( + "Invalid value for `address_type` ({0}), must be one of {1}".format( # noqa: E501 + address_type, allowed_values + ) ) - ) self._address_type = address_type diff --git a/xero_python/accounting/models/allocation.py b/xero_python/accounting/models/allocation.py index 52413d24..293dd15f 100644 --- a/xero_python/accounting/models/allocation.py +++ b/xero_python/accounting/models/allocation.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/allocations.py b/xero_python/accounting/models/allocations.py index 3cda2f99..35841ec7 100644 --- a/xero_python/accounting/models/allocations.py +++ b/xero_python/accounting/models/allocations.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/attachment.py b/xero_python/accounting/models/attachment.py index a9ba747e..cac9e0dd 100644 --- a/xero_python/accounting/models/attachment.py +++ b/xero_python/accounting/models/attachment.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/attachments.py b/xero_python/accounting/models/attachments.py index ae4ae986..dff180ef 100644 --- a/xero_python/accounting/models/attachments.py +++ b/xero_python/accounting/models/attachments.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/balance_details.py b/xero_python/accounting/models/balance_details.py index d98f0c8d..d13fc7cf 100644 --- a/xero_python/accounting/models/balance_details.py +++ b/xero_python/accounting/models/balance_details.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/balances.py b/xero_python/accounting/models/balances.py index 4182fb09..ce958b26 100644 --- a/xero_python/accounting/models/balances.py +++ b/xero_python/accounting/models/balances.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/bank_transaction.py b/xero_python/accounting/models/bank_transaction.py index e3a68a07..627685fc 100644 --- a/xero_python/accounting/models/bank_transaction.py +++ b/xero_python/accounting/models/bank_transaction.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -208,12 +207,14 @@ def type(self, type): "SPEND-TRANSFER", "None", ] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type @@ -447,12 +448,14 @@ def status(self, status): :type: str """ allowed_values = ["AUTHORISED", "DELETED", "VOIDED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/bank_transactions.py b/xero_python/accounting/models/bank_transactions.py index 73c260c0..1df5e2d0 100644 --- a/xero_python/accounting/models/bank_transactions.py +++ b/xero_python/accounting/models/bank_transactions.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/bank_transfer.py b/xero_python/accounting/models/bank_transfer.py index e008c410..6090bb9b 100644 --- a/xero_python/accounting/models/bank_transfer.py +++ b/xero_python/accounting/models/bank_transfer.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/bank_transfers.py b/xero_python/accounting/models/bank_transfers.py index 7bbd66df..9420d107 100644 --- a/xero_python/accounting/models/bank_transfers.py +++ b/xero_python/accounting/models/bank_transfers.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/batch_payment.py b/xero_python/accounting/models/batch_payment.py index 748f604b..9afe70b7 100644 --- a/xero_python/accounting/models/batch_payment.py +++ b/xero_python/accounting/models/batch_payment.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -431,12 +430,14 @@ def type(self, type): :type: str """ allowed_values = ["PAYBATCH", "RECBATCH", "None"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type @@ -461,12 +462,14 @@ def status(self, status): :type: str """ allowed_values = ["AUTHORISED", "DELETED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/batch_payment_details.py b/xero_python/accounting/models/batch_payment_details.py index 1bc29188..7e1b5228 100644 --- a/xero_python/accounting/models/batch_payment_details.py +++ b/xero_python/accounting/models/batch_payment_details.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/batch_payments.py b/xero_python/accounting/models/batch_payments.py index 6e6959fd..76aa391c 100644 --- a/xero_python/accounting/models/batch_payments.py +++ b/xero_python/accounting/models/batch_payments.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/bill.py b/xero_python/accounting/models/bill.py index e4d79b44..1fa620a7 100644 --- a/xero_python/accounting/models/bill.py +++ b/xero_python/accounting/models/bill.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/branding_theme.py b/xero_python/accounting/models/branding_theme.py index fba911ac..7ee0ad42 100644 --- a/xero_python/accounting/models/branding_theme.py +++ b/xero_python/accounting/models/branding_theme.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -170,12 +169,14 @@ def type(self, type): :type: str """ allowed_values = ["INVOICE", "None"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type diff --git a/xero_python/accounting/models/branding_themes.py b/xero_python/accounting/models/branding_themes.py index 4306fa16..2afa5317 100644 --- a/xero_python/accounting/models/branding_themes.py +++ b/xero_python/accounting/models/branding_themes.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/cis_org_setting.py b/xero_python/accounting/models/cis_org_setting.py index 9ece6f50..06c066f4 100644 --- a/xero_python/accounting/models/cis_org_setting.py +++ b/xero_python/accounting/models/cis_org_setting.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/cis_setting.py b/xero_python/accounting/models/cis_setting.py index 46a3b8c6..7dc8597b 100644 --- a/xero_python/accounting/models/cis_setting.py +++ b/xero_python/accounting/models/cis_setting.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/cis_settings.py b/xero_python/accounting/models/cis_settings.py index d77602c2..c022e04c 100644 --- a/xero_python/accounting/models/cis_settings.py +++ b/xero_python/accounting/models/cis_settings.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/contact.py b/xero_python/accounting/models/contact.py index cdb36fb6..f4cc799c 100644 --- a/xero_python/accounting/models/contact.py +++ b/xero_python/accounting/models/contact.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -378,12 +377,14 @@ def contact_status(self, contact_status): :type: str """ allowed_values = ["ACTIVE", "ARCHIVED", "GDPRREQUEST", "None"] # noqa: E501 - if contact_status not in allowed_values: - raise ValueError( - "Invalid value for `contact_status` ({0}), must be one of {1}".format( # noqa: E501 - contact_status, allowed_values + + if contact_status: + if contact_status not in allowed_values: + raise ValueError( + "Invalid value for `contact_status` ({0}), must be one of {1}".format( # noqa: E501 + contact_status, allowed_values + ) ) - ) self._contact_status = contact_status diff --git a/xero_python/accounting/models/contact_group.py b/xero_python/accounting/models/contact_group.py index 0759fb3f..dff69353 100644 --- a/xero_python/accounting/models/contact_group.py +++ b/xero_python/accounting/models/contact_group.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -108,12 +107,14 @@ def status(self, status): :type: str """ allowed_values = ["ACTIVE", "DELETED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/contact_groups.py b/xero_python/accounting/models/contact_groups.py index 385a1c40..44c5b00b 100644 --- a/xero_python/accounting/models/contact_groups.py +++ b/xero_python/accounting/models/contact_groups.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/contact_person.py b/xero_python/accounting/models/contact_person.py index 1885601b..a9f79e68 100644 --- a/xero_python/accounting/models/contact_person.py +++ b/xero_python/accounting/models/contact_person.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/contacts.py b/xero_python/accounting/models/contacts.py index bc4549d9..d2fdf56b 100644 --- a/xero_python/accounting/models/contacts.py +++ b/xero_python/accounting/models/contacts.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/conversion_balances.py b/xero_python/accounting/models/conversion_balances.py index 4ba72afb..9e2efc08 100644 --- a/xero_python/accounting/models/conversion_balances.py +++ b/xero_python/accounting/models/conversion_balances.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/conversion_date.py b/xero_python/accounting/models/conversion_date.py index 12275250..633b35b5 100644 --- a/xero_python/accounting/models/conversion_date.py +++ b/xero_python/accounting/models/conversion_date.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/country_code.py b/xero_python/accounting/models/country_code.py index 528d7ac8..16394a5b 100644 --- a/xero_python/accounting/models/country_code.py +++ b/xero_python/accounting/models/country_code.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/credit_note.py b/xero_python/accounting/models/credit_note.py index 28b12280..7f85f39a 100644 --- a/xero_python/accounting/models/credit_note.py +++ b/xero_python/accounting/models/credit_note.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -239,12 +238,14 @@ def type(self, type): :type: str """ allowed_values = ["ACCPAYCREDIT", "ACCRECCREDIT", "None"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type @@ -344,12 +345,14 @@ def status(self, status): "VOIDED", "None", ] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/credit_notes.py b/xero_python/accounting/models/credit_notes.py index 65dec9ad..d904758f 100644 --- a/xero_python/accounting/models/credit_notes.py +++ b/xero_python/accounting/models/credit_notes.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/currencies.py b/xero_python/accounting/models/currencies.py index aabe723a..07d7758d 100644 --- a/xero_python/accounting/models/currencies.py +++ b/xero_python/accounting/models/currencies.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/currency.py b/xero_python/accounting/models/currency.py index 0011a3a5..3d8ebaff 100644 --- a/xero_python/accounting/models/currency.py +++ b/xero_python/accounting/models/currency.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/currency_code.py b/xero_python/accounting/models/currency_code.py index 006b521a..6cf13dc7 100644 --- a/xero_python/accounting/models/currency_code.py +++ b/xero_python/accounting/models/currency_code.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/element.py b/xero_python/accounting/models/element.py index 2ed77f94..b4b5526a 100644 --- a/xero_python/accounting/models/element.py +++ b/xero_python/accounting/models/element.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/employee.py b/xero_python/accounting/models/employee.py index e6379448..73675ff9 100644 --- a/xero_python/accounting/models/employee.py +++ b/xero_python/accounting/models/employee.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -142,12 +141,14 @@ def status(self, status): "DELETED", "None", ] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/employees.py b/xero_python/accounting/models/employees.py index 9069827d..a17af567 100644 --- a/xero_python/accounting/models/employees.py +++ b/xero_python/accounting/models/employees.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/error.py b/xero_python/accounting/models/error.py index edde57b6..c713c4a4 100644 --- a/xero_python/accounting/models/error.py +++ b/xero_python/accounting/models/error.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/expense_claim.py b/xero_python/accounting/models/expense_claim.py index 4b0612ba..04e58947 100644 --- a/xero_python/accounting/models/expense_claim.py +++ b/xero_python/accounting/models/expense_claim.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -167,12 +166,14 @@ def status(self, status): "DELETED", "None", ] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/expense_claims.py b/xero_python/accounting/models/expense_claims.py index bc2bc819..4f948774 100644 --- a/xero_python/accounting/models/expense_claims.py +++ b/xero_python/accounting/models/expense_claims.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/external_link.py b/xero_python/accounting/models/external_link.py index 16308bf0..4fd58007 100644 --- a/xero_python/accounting/models/external_link.py +++ b/xero_python/accounting/models/external_link.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -81,12 +80,14 @@ def link_type(self, link_type): "Website", "None", ] # noqa: E501 - if link_type not in allowed_values: - raise ValueError( - "Invalid value for `link_type` ({0}), must be one of {1}".format( # noqa: E501 - link_type, allowed_values + + if link_type: + if link_type not in allowed_values: + raise ValueError( + "Invalid value for `link_type` ({0}), must be one of {1}".format( # noqa: E501 + link_type, allowed_values + ) ) - ) self._link_type = link_type diff --git a/xero_python/accounting/models/history_record.py b/xero_python/accounting/models/history_record.py index 05ad006c..ec738d72 100644 --- a/xero_python/accounting/models/history_record.py +++ b/xero_python/accounting/models/history_record.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/history_records.py b/xero_python/accounting/models/history_records.py index 7f5f748e..2b6a1909 100644 --- a/xero_python/accounting/models/history_records.py +++ b/xero_python/accounting/models/history_records.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/import_summary.py b/xero_python/accounting/models/import_summary.py index bfc9fc07..4b99df1f 100644 --- a/xero_python/accounting/models/import_summary.py +++ b/xero_python/accounting/models/import_summary.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/import_summary_accounts.py b/xero_python/accounting/models/import_summary_accounts.py index 207b1f25..49cdb3f4 100644 --- a/xero_python/accounting/models/import_summary_accounts.py +++ b/xero_python/accounting/models/import_summary_accounts.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/import_summary_object.py b/xero_python/accounting/models/import_summary_object.py index b576826b..8bd832ed 100644 --- a/xero_python/accounting/models/import_summary_object.py +++ b/xero_python/accounting/models/import_summary_object.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/import_summary_organisation.py b/xero_python/accounting/models/import_summary_organisation.py index 5d8486bc..4dd5692e 100644 --- a/xero_python/accounting/models/import_summary_organisation.py +++ b/xero_python/accounting/models/import_summary_organisation.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/invoice.py b/xero_python/accounting/models/invoice.py index 364303a9..9cc46bbe 100644 --- a/xero_python/accounting/models/invoice.py +++ b/xero_python/accounting/models/invoice.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -315,12 +314,14 @@ def type(self, type): "ARPREPAYMENT", "None", ] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type @@ -605,12 +606,14 @@ def status(self, status): "VOIDED", "None", ] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/invoice_reminder.py b/xero_python/accounting/models/invoice_reminder.py index 480f7087..6df47bcf 100644 --- a/xero_python/accounting/models/invoice_reminder.py +++ b/xero_python/accounting/models/invoice_reminder.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/invoice_reminders.py b/xero_python/accounting/models/invoice_reminders.py index 5bdb0e43..39163de6 100644 --- a/xero_python/accounting/models/invoice_reminders.py +++ b/xero_python/accounting/models/invoice_reminders.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/invoices.py b/xero_python/accounting/models/invoices.py index d140fc06..8be2869a 100644 --- a/xero_python/accounting/models/invoices.py +++ b/xero_python/accounting/models/invoices.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/item.py b/xero_python/accounting/models/item.py index af617d46..2e88ea37 100644 --- a/xero_python/accounting/models/item.py +++ b/xero_python/accounting/models/item.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/items.py b/xero_python/accounting/models/items.py index 81b250c9..9bb1992d 100644 --- a/xero_python/accounting/models/items.py +++ b/xero_python/accounting/models/items.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/journal.py b/xero_python/accounting/models/journal.py index 027b6339..36fb9782 100644 --- a/xero_python/accounting/models/journal.py +++ b/xero_python/accounting/models/journal.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -278,12 +277,14 @@ def source_type(self, source_type): "INTEGRATEDPAYROLLCN", "None", ] # noqa: E501 - if source_type not in allowed_values: - raise ValueError( - "Invalid value for `source_type` ({0}), must be one of {1}".format( # noqa: E501 - source_type, allowed_values + + if source_type: + if source_type not in allowed_values: + raise ValueError( + "Invalid value for `source_type` ({0}), must be one of {1}".format( # noqa: E501 + source_type, allowed_values + ) ) - ) self._source_type = source_type diff --git a/xero_python/accounting/models/journal_line.py b/xero_python/accounting/models/journal_line.py index b80e5666..aca1bf1a 100644 --- a/xero_python/accounting/models/journal_line.py +++ b/xero_python/accounting/models/journal_line.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/journals.py b/xero_python/accounting/models/journals.py index bdca7fe6..c63ae702 100644 --- a/xero_python/accounting/models/journals.py +++ b/xero_python/accounting/models/journals.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/line_amount_types.py b/xero_python/accounting/models/line_amount_types.py index 5e9c63fc..55ccb1e8 100644 --- a/xero_python/accounting/models/line_amount_types.py +++ b/xero_python/accounting/models/line_amount_types.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/line_item.py b/xero_python/accounting/models/line_item.py index 63836538..b43bce39 100644 --- a/xero_python/accounting/models/line_item.py +++ b/xero_python/accounting/models/line_item.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/line_item_tracking.py b/xero_python/accounting/models/line_item_tracking.py index c83f28cd..87d945c4 100644 --- a/xero_python/accounting/models/line_item_tracking.py +++ b/xero_python/accounting/models/line_item_tracking.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/linked_transaction.py b/xero_python/accounting/models/linked_transaction.py index 17ce4cdd..57711d7d 100644 --- a/xero_python/accounting/models/linked_transaction.py +++ b/xero_python/accounting/models/linked_transaction.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -276,12 +275,14 @@ def status(self, status): "VOIDED", "None", ] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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 @@ -306,12 +307,14 @@ def type(self, type): :type: str """ allowed_values = ["BILLABLEEXPENSE", "None"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type @@ -359,12 +362,14 @@ def source_transaction_type_code(self, source_transaction_type_code): :type: str """ allowed_values = ["ACCPAY", "SPEND", "None"] # noqa: E501 - if source_transaction_type_code not in allowed_values: - raise ValueError( - "Invalid value for `source_transaction_type_code` ({0}), must be one of {1}".format( # noqa: E501 - source_transaction_type_code, allowed_values + + if source_transaction_type_code: + if source_transaction_type_code not in allowed_values: + raise ValueError( + "Invalid value for `source_transaction_type_code` ({0}), must be one of {1}".format( # noqa: E501 + source_transaction_type_code, allowed_values + ) ) - ) self._source_transaction_type_code = source_transaction_type_code diff --git a/xero_python/accounting/models/linked_transactions.py b/xero_python/accounting/models/linked_transactions.py index e64d32cd..2d163624 100644 --- a/xero_python/accounting/models/linked_transactions.py +++ b/xero_python/accounting/models/linked_transactions.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/manual_journal.py b/xero_python/accounting/models/manual_journal.py index 77cf1d90..d29d14ac 100644 --- a/xero_python/accounting/models/manual_journal.py +++ b/xero_python/accounting/models/manual_journal.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -249,12 +248,14 @@ def status(self, status): "ARCHIVED", "None", ] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/manual_journal_line.py b/xero_python/accounting/models/manual_journal_line.py index 9bdc06f5..0d704936 100644 --- a/xero_python/accounting/models/manual_journal_line.py +++ b/xero_python/accounting/models/manual_journal_line.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/manual_journals.py b/xero_python/accounting/models/manual_journals.py index 68d2f366..1b9a06f5 100644 --- a/xero_python/accounting/models/manual_journals.py +++ b/xero_python/accounting/models/manual_journals.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/online_invoice.py b/xero_python/accounting/models/online_invoice.py index 8bdfa599..cc771aeb 100644 --- a/xero_python/accounting/models/online_invoice.py +++ b/xero_python/accounting/models/online_invoice.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/online_invoices.py b/xero_python/accounting/models/online_invoices.py index cea31f70..39e6500a 100644 --- a/xero_python/accounting/models/online_invoices.py +++ b/xero_python/accounting/models/online_invoices.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/organisation.py b/xero_python/accounting/models/organisation.py index 356b24fa..8d603f9f 100644 --- a/xero_python/accounting/models/organisation.py +++ b/xero_python/accounting/models/organisation.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -390,12 +389,14 @@ def version(self, version): "USONRAMP", "None", ] # noqa: E501 - if version not in allowed_values: - raise ValueError( - "Invalid value for `version` ({0}), must be one of {1}".format( # noqa: E501 - version, allowed_values + + if version: + if version not in allowed_values: + raise ValueError( + "Invalid value for `version` ({0}), must be one of {1}".format( # noqa: E501 + version, allowed_values + ) ) - ) self._version = version @@ -434,12 +435,14 @@ def organisation_type(self, organisation_type): "TRUST", "None", ] # noqa: E501 - if organisation_type not in allowed_values: - raise ValueError( - "Invalid value for `organisation_type` ({0}), must be one of {1}".format( # noqa: E501 - organisation_type, allowed_values + + if organisation_type: + if organisation_type not in allowed_values: + raise ValueError( + "Invalid value for `organisation_type` ({0}), must be one of {1}".format( # noqa: E501 + organisation_type, allowed_values + ) ) - ) self._organisation_type = organisation_type @@ -677,12 +680,14 @@ def sales_tax_basis(self, sales_tax_basis): "ACCRUALS", "None", ] # noqa: E501 - if sales_tax_basis not in allowed_values: - raise ValueError( - "Invalid value for `sales_tax_basis` ({0}), must be one of {1}".format( # noqa: E501 - sales_tax_basis, allowed_values + + if sales_tax_basis: + if sales_tax_basis not in allowed_values: + raise ValueError( + "Invalid value for `sales_tax_basis` ({0}), must be one of {1}".format( # noqa: E501 + sales_tax_basis, allowed_values + ) ) - ) self._sales_tax_basis = sales_tax_basis @@ -724,12 +729,14 @@ def sales_tax_period(self, sales_tax_period): "NONE", "None", ] # noqa: E501 - if sales_tax_period not in allowed_values: - raise ValueError( - "Invalid value for `sales_tax_period` ({0}), must be one of {1}".format( # noqa: E501 - sales_tax_period, allowed_values + + if sales_tax_period: + if sales_tax_period not in allowed_values: + raise ValueError( + "Invalid value for `sales_tax_period` ({0}), must be one of {1}".format( # noqa: E501 + sales_tax_period, allowed_values + ) ) - ) self._sales_tax_period = sales_tax_period @@ -904,12 +911,14 @@ def organisation_entity_type(self, organisation_entity_type): "TRUST", "None", ] # noqa: E501 - if organisation_entity_type not in allowed_values: - raise ValueError( - "Invalid value for `organisation_entity_type` ({0}), must be one of {1}".format( # noqa: E501 - organisation_entity_type, allowed_values + + if organisation_entity_type: + if organisation_entity_type not in allowed_values: + raise ValueError( + "Invalid value for `organisation_entity_type` ({0}), must be one of {1}".format( # noqa: E501 + organisation_entity_type, allowed_values + ) ) - ) self._organisation_entity_type = organisation_entity_type @@ -970,12 +979,14 @@ def _class(self, _class): "NON_GST_CASHBOOK", "None", ] # noqa: E501 - if _class not in allowed_values: - raise ValueError( - "Invalid value for `_class` ({0}), must be one of {1}".format( # noqa: E501 - _class, allowed_values + + if _class: + if _class not in allowed_values: + raise ValueError( + "Invalid value for `_class` ({0}), must be one of {1}".format( # noqa: E501 + _class, allowed_values + ) ) - ) self.__class = _class @@ -1000,12 +1011,14 @@ def edition(self, edition): :type: str """ allowed_values = ["BUSINESS", "PARTNER", "None"] # noqa: E501 - if edition not in allowed_values: - raise ValueError( - "Invalid value for `edition` ({0}), must be one of {1}".format( # noqa: E501 - edition, allowed_values + + if edition: + if edition not in allowed_values: + raise ValueError( + "Invalid value for `edition` ({0}), must be one of {1}".format( # noqa: E501 + edition, allowed_values + ) ) - ) self._edition = edition diff --git a/xero_python/accounting/models/organisations.py b/xero_python/accounting/models/organisations.py index cdde90c0..5ad6c3b4 100644 --- a/xero_python/accounting/models/organisations.py +++ b/xero_python/accounting/models/organisations.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/overpayment.py b/xero_python/accounting/models/overpayment.py index 62eb9709..f444ec43 100644 --- a/xero_python/accounting/models/overpayment.py +++ b/xero_python/accounting/models/overpayment.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -184,12 +183,14 @@ def type(self, type): "AROVERPAYMENT", "None", ] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type @@ -258,12 +259,14 @@ def status(self, status): :type: str """ allowed_values = ["AUTHORISED", "PAID", "VOIDED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/overpayments.py b/xero_python/accounting/models/overpayments.py index e69e515c..ed014226 100644 --- a/xero_python/accounting/models/overpayments.py +++ b/xero_python/accounting/models/overpayments.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/payment.py b/xero_python/accounting/models/payment.py index 6f665ce3..b63ba15e 100644 --- a/xero_python/accounting/models/payment.py +++ b/xero_python/accounting/models/payment.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -498,12 +497,14 @@ def status(self, status): :type: str """ allowed_values = ["AUTHORISED", "DELETED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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 @@ -538,12 +539,14 @@ def payment_type(self, payment_type): "APOVERPAYMENTPAYMENT", "None", ] # noqa: E501 - if payment_type not in allowed_values: - raise ValueError( - "Invalid value for `payment_type` ({0}), must be one of {1}".format( # noqa: E501 - payment_type, allowed_values + + if payment_type: + if payment_type not in allowed_values: + raise ValueError( + "Invalid value for `payment_type` ({0}), must be one of {1}".format( # noqa: E501 + payment_type, allowed_values + ) ) - ) self._payment_type = payment_type diff --git a/xero_python/accounting/models/payment_delete.py b/xero_python/accounting/models/payment_delete.py index 9ed55c32..b65acb14 100644 --- a/xero_python/accounting/models/payment_delete.py +++ b/xero_python/accounting/models/payment_delete.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/payment_service.py b/xero_python/accounting/models/payment_service.py index 186ce1bf..ce6b941d 100644 --- a/xero_python/accounting/models/payment_service.py +++ b/xero_python/accounting/models/payment_service.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/payment_services.py b/xero_python/accounting/models/payment_services.py index cf0bfe8e..458b6919 100644 --- a/xero_python/accounting/models/payment_services.py +++ b/xero_python/accounting/models/payment_services.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/payment_term.py b/xero_python/accounting/models/payment_term.py index edaae6ec..427c10da 100644 --- a/xero_python/accounting/models/payment_term.py +++ b/xero_python/accounting/models/payment_term.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/payment_term_type.py b/xero_python/accounting/models/payment_term_type.py index 3d469c3e..476d896a 100644 --- a/xero_python/accounting/models/payment_term_type.py +++ b/xero_python/accounting/models/payment_term_type.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/payments.py b/xero_python/accounting/models/payments.py index 67ae9006..e93d5745 100644 --- a/xero_python/accounting/models/payments.py +++ b/xero_python/accounting/models/payments.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/phone.py b/xero_python/accounting/models/phone.py index eeacd82a..9b4e2195 100644 --- a/xero_python/accounting/models/phone.py +++ b/xero_python/accounting/models/phone.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -94,12 +93,14 @@ def phone_type(self, phone_type): "OFFICE", "None", ] # noqa: E501 - if phone_type not in allowed_values: - raise ValueError( - "Invalid value for `phone_type` ({0}), must be one of {1}".format( # noqa: E501 - phone_type, allowed_values + + if phone_type: + if phone_type not in allowed_values: + raise ValueError( + "Invalid value for `phone_type` ({0}), must be one of {1}".format( # noqa: E501 + phone_type, allowed_values + ) ) - ) self._phone_type = phone_type diff --git a/xero_python/accounting/models/prepayment.py b/xero_python/accounting/models/prepayment.py index 32092f6e..9fc0e0bc 100644 --- a/xero_python/accounting/models/prepayment.py +++ b/xero_python/accounting/models/prepayment.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -185,12 +184,14 @@ def type(self, type): "APPREPAYMENT", "None", ] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type @@ -259,12 +260,14 @@ def status(self, status): :type: str """ allowed_values = ["AUTHORISED", "PAID", "VOIDED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/prepayments.py b/xero_python/accounting/models/prepayments.py index 85d07ee0..5c8b6c77 100644 --- a/xero_python/accounting/models/prepayments.py +++ b/xero_python/accounting/models/prepayments.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/purchase.py b/xero_python/accounting/models/purchase.py index 815845d2..3b909a42 100644 --- a/xero_python/accounting/models/purchase.py +++ b/xero_python/accounting/models/purchase.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/purchase_order.py b/xero_python/accounting/models/purchase_order.py index ed878ac2..3cb23ae7 100644 --- a/xero_python/accounting/models/purchase_order.py +++ b/xero_python/accounting/models/purchase_order.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -441,12 +440,14 @@ def status(self, status): "DELETED", "None", ] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/purchase_orders.py b/xero_python/accounting/models/purchase_orders.py index 9e97d12f..cc6f4472 100644 --- a/xero_python/accounting/models/purchase_orders.py +++ b/xero_python/accounting/models/purchase_orders.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/quote.py b/xero_python/accounting/models/quote.py index 18ad390d..0ee9ec65 100644 --- a/xero_python/accounting/models/quote.py +++ b/xero_python/accounting/models/quote.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/quote_line_amount_types.py b/xero_python/accounting/models/quote_line_amount_types.py index acb6d69e..390226a6 100644 --- a/xero_python/accounting/models/quote_line_amount_types.py +++ b/xero_python/accounting/models/quote_line_amount_types.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/quote_status_codes.py b/xero_python/accounting/models/quote_status_codes.py index 57bb4c7b..87ea9977 100644 --- a/xero_python/accounting/models/quote_status_codes.py +++ b/xero_python/accounting/models/quote_status_codes.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/quotes.py b/xero_python/accounting/models/quotes.py index 9e37b201..acdadefb 100644 --- a/xero_python/accounting/models/quotes.py +++ b/xero_python/accounting/models/quotes.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/receipt.py b/xero_python/accounting/models/receipt.py index ce003953..4b6d646f 100644 --- a/xero_python/accounting/models/receipt.py +++ b/xero_python/accounting/models/receipt.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -402,12 +401,14 @@ def status(self, status): "VOIDED", "None", ] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/receipts.py b/xero_python/accounting/models/receipts.py index 61993c0e..56d1624e 100644 --- a/xero_python/accounting/models/receipts.py +++ b/xero_python/accounting/models/receipts.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/repeating_invoice.py b/xero_python/accounting/models/repeating_invoice.py index 064eb1a6..437af7b5 100644 --- a/xero_python/accounting/models/repeating_invoice.py +++ b/xero_python/accounting/models/repeating_invoice.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -161,12 +160,14 @@ def type(self, type): :type: str """ allowed_values = ["ACCPAY", "ACCREC", "None"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type @@ -344,12 +345,14 @@ def status(self, status): :type: str """ allowed_values = ["DRAFT", "AUTHORISED", "DELETED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/repeating_invoices.py b/xero_python/accounting/models/repeating_invoices.py index 729b68c1..aa9afded 100644 --- a/xero_python/accounting/models/repeating_invoices.py +++ b/xero_python/accounting/models/repeating_invoices.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/report.py b/xero_python/accounting/models/report.py index ebb86da4..95ac43d5 100644 --- a/xero_python/accounting/models/report.py +++ b/xero_python/accounting/models/report.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -153,12 +152,14 @@ def report_type(self, report_type): :type: str """ allowed_values = ["AgedPayablesByContact", "None"] # noqa: E501 - if report_type not in allowed_values: - raise ValueError( - "Invalid value for `report_type` ({0}), must be one of {1}".format( # noqa: E501 - report_type, allowed_values + + if report_type: + if report_type not in allowed_values: + raise ValueError( + "Invalid value for `report_type` ({0}), must be one of {1}".format( # noqa: E501 + report_type, allowed_values + ) ) - ) self._report_type = report_type diff --git a/xero_python/accounting/models/report_attribute.py b/xero_python/accounting/models/report_attribute.py index 74231fae..85c796ee 100644 --- a/xero_python/accounting/models/report_attribute.py +++ b/xero_python/accounting/models/report_attribute.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/report_cell.py b/xero_python/accounting/models/report_cell.py index 5492c0a3..b1828981 100644 --- a/xero_python/accounting/models/report_cell.py +++ b/xero_python/accounting/models/report_cell.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/report_fields.py b/xero_python/accounting/models/report_fields.py index ee31f589..cee654bb 100644 --- a/xero_python/accounting/models/report_fields.py +++ b/xero_python/accounting/models/report_fields.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/report_row.py b/xero_python/accounting/models/report_row.py index e0312542..07343112 100644 --- a/xero_python/accounting/models/report_row.py +++ b/xero_python/accounting/models/report_row.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/report_rows.py b/xero_python/accounting/models/report_rows.py index ef17bd74..b55c287b 100644 --- a/xero_python/accounting/models/report_rows.py +++ b/xero_python/accounting/models/report_rows.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/report_with_row.py b/xero_python/accounting/models/report_with_row.py index bb24a2ea..9188eafe 100644 --- a/xero_python/accounting/models/report_with_row.py +++ b/xero_python/accounting/models/report_with_row.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/report_with_rows.py b/xero_python/accounting/models/report_with_rows.py index 2d115666..84e125b1 100644 --- a/xero_python/accounting/models/report_with_rows.py +++ b/xero_python/accounting/models/report_with_rows.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/reports.py b/xero_python/accounting/models/reports.py index 24f6a2be..e0561f16 100644 --- a/xero_python/accounting/models/reports.py +++ b/xero_python/accounting/models/reports.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/request_empty.py b/xero_python/accounting/models/request_empty.py index d9eaff46..d30d00c8 100644 --- a/xero_python/accounting/models/request_empty.py +++ b/xero_python/accounting/models/request_empty.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/row_type.py b/xero_python/accounting/models/row_type.py index 973332db..2ae55492 100644 --- a/xero_python/accounting/models/row_type.py +++ b/xero_python/accounting/models/row_type.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/sales_tracking_category.py b/xero_python/accounting/models/sales_tracking_category.py index bf623291..64aeb97d 100644 --- a/xero_python/accounting/models/sales_tracking_category.py +++ b/xero_python/accounting/models/sales_tracking_category.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/schedule.py b/xero_python/accounting/models/schedule.py index c6c38490..6fba5e5b 100644 --- a/xero_python/accounting/models/schedule.py +++ b/xero_python/accounting/models/schedule.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -130,12 +129,14 @@ def unit(self, unit): :type: str """ allowed_values = ["WEEKLY", "MONTHLY", "None"] # noqa: E501 - if unit not in allowed_values: - raise ValueError( - "Invalid value for `unit` ({0}), must be one of {1}".format( # noqa: E501 - unit, allowed_values + + if unit: + if unit not in allowed_values: + raise ValueError( + "Invalid value for `unit` ({0}), must be one of {1}".format( # noqa: E501 + unit, allowed_values + ) ) - ) self._unit = unit @@ -191,12 +192,14 @@ def due_date_type(self, due_date_type): "OFFOLLOWINGMONTH", "None", ] # noqa: E501 - if due_date_type not in allowed_values: - raise ValueError( - "Invalid value for `due_date_type` ({0}), must be one of {1}".format( # noqa: E501 - due_date_type, allowed_values + + if due_date_type: + if due_date_type not in allowed_values: + raise ValueError( + "Invalid value for `due_date_type` ({0}), must be one of {1}".format( # noqa: E501 + due_date_type, allowed_values + ) ) - ) self._due_date_type = due_date_type diff --git a/xero_python/accounting/models/setup.py b/xero_python/accounting/models/setup.py index 3cf09013..215084e8 100644 --- a/xero_python/accounting/models/setup.py +++ b/xero_python/accounting/models/setup.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/tax_component.py b/xero_python/accounting/models/tax_component.py index 2fe1f48e..e46f9e52 100644 --- a/xero_python/accounting/models/tax_component.py +++ b/xero_python/accounting/models/tax_component.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/tax_rate.py b/xero_python/accounting/models/tax_rate.py index 56bd8046..51af8724 100644 --- a/xero_python/accounting/models/tax_rate.py +++ b/xero_python/accounting/models/tax_rate.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -212,12 +211,14 @@ def status(self, status): "PENDING", "None", ] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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 @@ -318,12 +319,14 @@ def report_tax_type(self, report_tax_type): "OTHERINPUT", "None", ] # noqa: E501 - if report_tax_type not in allowed_values: - raise ValueError( - "Invalid value for `report_tax_type` ({0}), must be one of {1}".format( # noqa: E501 - report_tax_type, allowed_values + + if report_tax_type: + if report_tax_type not in allowed_values: + raise ValueError( + "Invalid value for `report_tax_type` ({0}), must be one of {1}".format( # noqa: E501 + report_tax_type, allowed_values + ) ) - ) self._report_tax_type = report_tax_type diff --git a/xero_python/accounting/models/tax_rates.py b/xero_python/accounting/models/tax_rates.py index 0a29470e..348f453e 100644 --- a/xero_python/accounting/models/tax_rates.py +++ b/xero_python/accounting/models/tax_rates.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/tax_type.py b/xero_python/accounting/models/tax_type.py index 639b26e2..7fdf1eff 100644 --- a/xero_python/accounting/models/tax_type.py +++ b/xero_python/accounting/models/tax_type.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/ten_ninety_nine_contact.py b/xero_python/accounting/models/ten_ninety_nine_contact.py index b42781db..2945b7c7 100644 --- a/xero_python/accounting/models/ten_ninety_nine_contact.py +++ b/xero_python/accounting/models/ten_ninety_nine_contact.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/time_zone.py b/xero_python/accounting/models/time_zone.py index fe6e44f2..c0a39a17 100644 --- a/xero_python/accounting/models/time_zone.py +++ b/xero_python/accounting/models/time_zone.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/tracking_categories.py b/xero_python/accounting/models/tracking_categories.py index 25802692..757feed9 100644 --- a/xero_python/accounting/models/tracking_categories.py +++ b/xero_python/accounting/models/tracking_categories.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/tracking_category.py b/xero_python/accounting/models/tracking_category.py index fd32eaf6..b01a8fab 100644 --- a/xero_python/accounting/models/tracking_category.py +++ b/xero_python/accounting/models/tracking_category.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -203,12 +202,14 @@ def status(self, status): :type: str """ allowed_values = ["ACTIVE", "ARCHIVED", "DELETED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/tracking_option.py b/xero_python/accounting/models/tracking_option.py index e634f01c..e4166871 100644 --- a/xero_python/accounting/models/tracking_option.py +++ b/xero_python/accounting/models/tracking_option.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -136,12 +135,14 @@ def status(self, status): :type: str """ allowed_values = ["ACTIVE", "ARCHIVED", "DELETED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/accounting/models/tracking_options.py b/xero_python/accounting/models/tracking_options.py index e5b4bf58..1ed340d2 100644 --- a/xero_python/accounting/models/tracking_options.py +++ b/xero_python/accounting/models/tracking_options.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/user.py b/xero_python/accounting/models/user.py index 968f17c5..a7cf4d4c 100644 --- a/xero_python/accounting/models/user.py +++ b/xero_python/accounting/models/user.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -254,11 +253,13 @@ def organisation_role(self, organisation_role): "UNKNOWN", "None", ] # noqa: E501 - if organisation_role not in allowed_values: - raise ValueError( - "Invalid value for `organisation_role` ({0}), must be one of {1}".format( # noqa: E501 - organisation_role, allowed_values + + if organisation_role: + if organisation_role not in allowed_values: + raise ValueError( + "Invalid value for `organisation_role` ({0}), must be one of {1}".format( # noqa: E501 + organisation_role, allowed_values + ) ) - ) self._organisation_role = organisation_role diff --git a/xero_python/accounting/models/users.py b/xero_python/accounting/models/users.py index 13dfb74e..20897e18 100644 --- a/xero_python/accounting/models/users.py +++ b/xero_python/accounting/models/users.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/validation_error.py b/xero_python/accounting/models/validation_error.py index 9aced8f8..05adbce3 100644 --- a/xero_python/accounting/models/validation_error.py +++ b/xero_python/accounting/models/validation_error.py @@ -5,7 +5,6 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/__init__.py b/xero_python/assets/__init__.py index 70e4be09..4c2f7a37 100644 --- a/xero_python/assets/__init__.py +++ b/xero_python/assets/__init__.py @@ -7,7 +7,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py index 239f9ce1..d36afae8 100644 --- a/xero_python/assets/api/asset_api.py +++ b/xero_python/assets/api/asset_api.py @@ -5,11 +5,13 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ +""" + OpenAPI spec version: 2.8.4 +""" import importlib import re # noqa: F401 diff --git a/xero_python/assets/models/__init__.py b/xero_python/assets/models/__init__.py index a5c62032..bc446035 100644 --- a/xero_python/assets/models/__init__.py +++ b/xero_python/assets/models/__init__.py @@ -6,7 +6,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/asset.py b/xero_python/assets/models/asset.py index 203abab1..0b5aab13 100644 --- a/xero_python/assets/models/asset.py +++ b/xero_python/assets/models/asset.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/asset_status.py b/xero_python/assets/models/asset_status.py index 88c2713a..4cd0874e 100644 --- a/xero_python/assets/models/asset_status.py +++ b/xero_python/assets/models/asset_status.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/asset_status_query_param.py b/xero_python/assets/models/asset_status_query_param.py index 51b362fe..0d7106e0 100644 --- a/xero_python/assets/models/asset_status_query_param.py +++ b/xero_python/assets/models/asset_status_query_param.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/asset_type.py b/xero_python/assets/models/asset_type.py index 68a3c35e..431efa5a 100644 --- a/xero_python/assets/models/asset_type.py +++ b/xero_python/assets/models/asset_type.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/assets.py b/xero_python/assets/models/assets.py index 229f2bd6..2e395bed 100644 --- a/xero_python/assets/models/assets.py +++ b/xero_python/assets/models/assets.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/book_depreciation_detail.py b/xero_python/assets/models/book_depreciation_detail.py index fda17db0..aa8f37b9 100644 --- a/xero_python/assets/models/book_depreciation_detail.py +++ b/xero_python/assets/models/book_depreciation_detail.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/book_depreciation_setting.py b/xero_python/assets/models/book_depreciation_setting.py index e564c4fe..99a9e695 100644 --- a/xero_python/assets/models/book_depreciation_setting.py +++ b/xero_python/assets/models/book_depreciation_setting.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -121,12 +120,14 @@ def depreciation_method(self, depreciation_method): "FullDepreciation", "None", ] # noqa: E501 - if depreciation_method not in allowed_values: - raise ValueError( - "Invalid value for `depreciation_method` ({0}), must be one of {1}".format( # noqa: E501 - depreciation_method, allowed_values + + if depreciation_method: + if depreciation_method not in allowed_values: + raise ValueError( + "Invalid value for `depreciation_method` ({0}), must be one of {1}".format( # noqa: E501 + depreciation_method, allowed_values + ) ) - ) self._depreciation_method = depreciation_method @@ -151,12 +152,14 @@ def averaging_method(self, averaging_method): :type: str """ allowed_values = ["FullMonth", "ActualDays", "None"] # noqa: E501 - if averaging_method not in allowed_values: - raise ValueError( - "Invalid value for `averaging_method` ({0}), must be one of {1}".format( # noqa: E501 - averaging_method, allowed_values + + if averaging_method: + if averaging_method not in allowed_values: + raise ValueError( + "Invalid value for `averaging_method` ({0}), must be one of {1}".format( # noqa: E501 + averaging_method, allowed_values + ) ) - ) self._averaging_method = averaging_method @@ -227,12 +230,14 @@ def depreciation_calculation_method(self, depreciation_calculation_method): :type: str """ allowed_values = ["Rate", "Life", "None", "None"] # noqa: E501 - if depreciation_calculation_method not in allowed_values: - raise ValueError( - "Invalid value for `depreciation_calculation_method` ({0}), must be one of {1}".format( # noqa: E501 - depreciation_calculation_method, allowed_values + + if depreciation_calculation_method: + if depreciation_calculation_method not in allowed_values: + raise ValueError( + "Invalid value for `depreciation_calculation_method` ({0}), must be one of {1}".format( # noqa: E501 + depreciation_calculation_method, allowed_values + ) ) - ) self._depreciation_calculation_method = depreciation_calculation_method diff --git a/xero_python/assets/models/error.py b/xero_python/assets/models/error.py index f424a9f9..8964304d 100644 --- a/xero_python/assets/models/error.py +++ b/xero_python/assets/models/error.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/field_validation_errors_element.py b/xero_python/assets/models/field_validation_errors_element.py index 6751070a..d2356753 100644 --- a/xero_python/assets/models/field_validation_errors_element.py +++ b/xero_python/assets/models/field_validation_errors_element.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/pagination.py b/xero_python/assets/models/pagination.py index 6b88f4a7..d395cc9a 100644 --- a/xero_python/assets/models/pagination.py +++ b/xero_python/assets/models/pagination.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/resource_validation_errors_element.py b/xero_python/assets/models/resource_validation_errors_element.py index 37e8c674..b239fc16 100644 --- a/xero_python/assets/models/resource_validation_errors_element.py +++ b/xero_python/assets/models/resource_validation_errors_element.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/assets/models/setting.py b/xero_python/assets/models/setting.py index 0c697a5a..de50b29c 100644 --- a/xero_python/assets/models/setting.py +++ b/xero_python/assets/models/setting.py @@ -5,7 +5,6 @@ This is the Xero Assets API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md index fd398d03..7982d5e9 100644 --- a/xero_python/docs/README.md +++ b/xero_python/docs/README.md @@ -3,8 +3,8 @@ This specifing endpoints related to managing authentication tokens and identity 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.7.0 -- Package version: 1.2.0 +- API version: 2.8.4 +- Package version: 1.3.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/identity/__init__.py b/xero_python/identity/__init__.py index 099317e4..eb5b71d2 100644 --- a/xero_python/identity/__init__.py +++ b/xero_python/identity/__init__.py @@ -7,7 +7,6 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py index ea8349d3..273bb6c5 100644 --- a/xero_python/identity/api/identity_api.py +++ b/xero_python/identity/api/identity_api.py @@ -5,11 +5,13 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ +""" + OpenAPI spec version: 2.8.4 +""" import importlib import re # noqa: F401 diff --git a/xero_python/identity/models/__init__.py b/xero_python/identity/models/__init__.py index f0fc8074..2c07a0f0 100644 --- a/xero_python/identity/models/__init__.py +++ b/xero_python/identity/models/__init__.py @@ -6,7 +6,6 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/identity/models/access_token.py b/xero_python/identity/models/access_token.py index a68baca2..c03a2e47 100644 --- a/xero_python/identity/models/access_token.py +++ b/xero_python/identity/models/access_token.py @@ -5,7 +5,6 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/identity/models/connection.py b/xero_python/identity/models/connection.py index 5239e2cc..37df231d 100644 --- a/xero_python/identity/models/connection.py +++ b/xero_python/identity/models/connection.py @@ -5,7 +5,6 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/identity/models/refresh_token.py b/xero_python/identity/models/refresh_token.py index adf2fc20..fe6387e3 100644 --- a/xero_python/identity/models/refresh_token.py +++ b/xero_python/identity/models/refresh_token.py @@ -5,7 +5,6 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/__init__.py b/xero_python/payrollau/__init__.py index 53c26f78..08bf7694 100644 --- a/xero_python/payrollau/__init__.py +++ b/xero_python/payrollau/__init__.py @@ -7,7 +7,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py index e7c9dd34..c8f94459 100644 --- a/xero_python/payrollau/api/payroll_au_api.py +++ b/xero_python/payrollau/api/payroll_au_api.py @@ -5,11 +5,13 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ +""" + OpenAPI spec version: 2.8.4 +""" import importlib import re # noqa: F401 diff --git a/xero_python/payrollau/models/__init__.py b/xero_python/payrollau/models/__init__.py index 59a7d927..bca00bc4 100644 --- a/xero_python/payrollau/models/__init__.py +++ b/xero_python/payrollau/models/__init__.py @@ -6,7 +6,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/account.py b/xero_python/payrollau/models/account.py index b435fa63..97215160 100644 --- a/xero_python/payrollau/models/account.py +++ b/xero_python/payrollau/models/account.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/account_type.py b/xero_python/payrollau/models/account_type.py index 22d7f15f..1a647a27 100644 --- a/xero_python/payrollau/models/account_type.py +++ b/xero_python/payrollau/models/account_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/allowance_type.py b/xero_python/payrollau/models/allowance_type.py index 801bace0..c3a4da35 100644 --- a/xero_python/payrollau/models/allowance_type.py +++ b/xero_python/payrollau/models/allowance_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/api_exception.py b/xero_python/payrollau/models/api_exception.py index 4ee36369..50b654a2 100644 --- a/xero_python/payrollau/models/api_exception.py +++ b/xero_python/payrollau/models/api_exception.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/bank_account.py b/xero_python/payrollau/models/bank_account.py index 60c30c07..d32fbcbe 100644 --- a/xero_python/payrollau/models/bank_account.py +++ b/xero_python/payrollau/models/bank_account.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/calendar_type.py b/xero_python/payrollau/models/calendar_type.py index 80bdab76..3c747b90 100644 --- a/xero_python/payrollau/models/calendar_type.py +++ b/xero_python/payrollau/models/calendar_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/deduction_line.py b/xero_python/payrollau/models/deduction_line.py index 53f714c8..82d3ac19 100644 --- a/xero_python/payrollau/models/deduction_line.py +++ b/xero_python/payrollau/models/deduction_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/deduction_type.py b/xero_python/payrollau/models/deduction_type.py index fa4f1fd7..89d92e98 100644 --- a/xero_python/payrollau/models/deduction_type.py +++ b/xero_python/payrollau/models/deduction_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -283,12 +282,14 @@ def deduction_category(self, deduction_category): :type: str """ allowed_values = ["NONE", "UNIONFEES", "WORKPLACEGIVING", "None"] # noqa: E501 - if deduction_category not in allowed_values: - raise ValueError( - "Invalid value for `deduction_category` ({0}), must be one of {1}".format( # noqa: E501 - deduction_category, allowed_values + + if deduction_category: + if deduction_category not in allowed_values: + raise ValueError( + "Invalid value for `deduction_category` ({0}), must be one of {1}".format( # noqa: E501 + deduction_category, allowed_values + ) ) - ) self._deduction_category = deduction_category diff --git a/xero_python/payrollau/models/deduction_type_calculation_type.py b/xero_python/payrollau/models/deduction_type_calculation_type.py index 7256900a..793f6099 100644 --- a/xero_python/payrollau/models/deduction_type_calculation_type.py +++ b/xero_python/payrollau/models/deduction_type_calculation_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/earnings_line.py b/xero_python/payrollau/models/earnings_line.py index ec74b720..0139a793 100644 --- a/xero_python/payrollau/models/earnings_line.py +++ b/xero_python/payrollau/models/earnings_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/earnings_rate.py b/xero_python/payrollau/models/earnings_rate.py index dcdb4bbe..5626490e 100644 --- a/xero_python/payrollau/models/earnings_rate.py +++ b/xero_python/payrollau/models/earnings_rate.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/earnings_rate_calculation_type.py b/xero_python/payrollau/models/earnings_rate_calculation_type.py index 3d4c8e81..66b10afe 100644 --- a/xero_python/payrollau/models/earnings_rate_calculation_type.py +++ b/xero_python/payrollau/models/earnings_rate_calculation_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/earnings_type.py b/xero_python/payrollau/models/earnings_type.py index 00ea952c..45ab83ab 100644 --- a/xero_python/payrollau/models/earnings_type.py +++ b/xero_python/payrollau/models/earnings_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -34,3 +33,4 @@ class EarningsType(Enum): LUMPSUMA = "LUMPSUMA" LUMPSUMB = "LUMPSUMB" BONUSESANDCOMMISSIONS = "BONUSESANDCOMMISSIONS" + LUMPSUME = "LUMPSUME" diff --git a/xero_python/payrollau/models/employee.py b/xero_python/payrollau/models/employee.py index d088d725..0016fdb3 100644 --- a/xero_python/payrollau/models/employee.py +++ b/xero_python/payrollau/models/employee.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -444,12 +443,14 @@ def gender(self, gender): :type: str """ allowed_values = ["N", "M", "F", "I", "None"] # noqa: E501 - if gender not in allowed_values: - raise ValueError( - "Invalid value for `gender` ({0}), must be one of {1}".format( # noqa: E501 - gender, allowed_values + + if gender: + if gender not in allowed_values: + raise ValueError( + "Invalid value for `gender` ({0}), must be one of {1}".format( # noqa: E501 + gender, allowed_values + ) ) - ) self._gender = gender diff --git a/xero_python/payrollau/models/employee_status.py b/xero_python/payrollau/models/employee_status.py index 28b7859e..4c54c4e3 100644 --- a/xero_python/payrollau/models/employee_status.py +++ b/xero_python/payrollau/models/employee_status.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/employees.py b/xero_python/payrollau/models/employees.py index 9bb2d461..e7aa1b56 100644 --- a/xero_python/payrollau/models/employees.py +++ b/xero_python/payrollau/models/employees.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/employment_basis.py b/xero_python/payrollau/models/employment_basis.py index d59a68d7..04e60ac1 100644 --- a/xero_python/payrollau/models/employment_basis.py +++ b/xero_python/payrollau/models/employment_basis.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/employment_termination_payment_type.py b/xero_python/payrollau/models/employment_termination_payment_type.py index 9f9d9072..ce65d340 100644 --- a/xero_python/payrollau/models/employment_termination_payment_type.py +++ b/xero_python/payrollau/models/employment_termination_payment_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/entitlement_final_pay_payout_type.py b/xero_python/payrollau/models/entitlement_final_pay_payout_type.py index cd3c1b08..7e42e3b3 100644 --- a/xero_python/payrollau/models/entitlement_final_pay_payout_type.py +++ b/xero_python/payrollau/models/entitlement_final_pay_payout_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/home_address.py b/xero_python/payrollau/models/home_address.py index a72df125..7228eba9 100644 --- a/xero_python/payrollau/models/home_address.py +++ b/xero_python/payrollau/models/home_address.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_accrual_line.py b/xero_python/payrollau/models/leave_accrual_line.py index aa857a89..4d7aeeed 100644 --- a/xero_python/payrollau/models/leave_accrual_line.py +++ b/xero_python/payrollau/models/leave_accrual_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_application.py b/xero_python/payrollau/models/leave_application.py index a155c3ff..11aae6aa 100644 --- a/xero_python/payrollau/models/leave_application.py +++ b/xero_python/payrollau/models/leave_application.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_applications.py b/xero_python/payrollau/models/leave_applications.py index 123c234e..e14c1ac6 100644 --- a/xero_python/payrollau/models/leave_applications.py +++ b/xero_python/payrollau/models/leave_applications.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_balance.py b/xero_python/payrollau/models/leave_balance.py index a5cf54d5..16f96730 100644 --- a/xero_python/payrollau/models/leave_balance.py +++ b/xero_python/payrollau/models/leave_balance.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_earnings_line.py b/xero_python/payrollau/models/leave_earnings_line.py index 0234c237..ca5bd892 100644 --- a/xero_python/payrollau/models/leave_earnings_line.py +++ b/xero_python/payrollau/models/leave_earnings_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_line.py b/xero_python/payrollau/models/leave_line.py index a8e90779..78c97c67 100644 --- a/xero_python/payrollau/models/leave_line.py +++ b/xero_python/payrollau/models/leave_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_line_calculation_type.py b/xero_python/payrollau/models/leave_line_calculation_type.py index 29dbc652..6658c213 100644 --- a/xero_python/payrollau/models/leave_line_calculation_type.py +++ b/xero_python/payrollau/models/leave_line_calculation_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_lines.py b/xero_python/payrollau/models/leave_lines.py index 68d0e15f..ad11ee75 100644 --- a/xero_python/payrollau/models/leave_lines.py +++ b/xero_python/payrollau/models/leave_lines.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_period.py b/xero_python/payrollau/models/leave_period.py index 556e3a7e..4895882c 100644 --- a/xero_python/payrollau/models/leave_period.py +++ b/xero_python/payrollau/models/leave_period.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_period_status.py b/xero_python/payrollau/models/leave_period_status.py index b3909f1f..be9b3869 100644 --- a/xero_python/payrollau/models/leave_period_status.py +++ b/xero_python/payrollau/models/leave_period_status.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_type.py b/xero_python/payrollau/models/leave_type.py index 64e3697f..5e67be4c 100644 --- a/xero_python/payrollau/models/leave_type.py +++ b/xero_python/payrollau/models/leave_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/leave_type_contribution_type.py b/xero_python/payrollau/models/leave_type_contribution_type.py index 3da6ccea..632f27ce 100644 --- a/xero_python/payrollau/models/leave_type_contribution_type.py +++ b/xero_python/payrollau/models/leave_type_contribution_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/manual_tax_type.py b/xero_python/payrollau/models/manual_tax_type.py index 3d9292c2..9ed7d371 100644 --- a/xero_python/payrollau/models/manual_tax_type.py +++ b/xero_python/payrollau/models/manual_tax_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/opening_balances.py b/xero_python/payrollau/models/opening_balances.py index 0079ef7d..33b30da4 100644 --- a/xero_python/payrollau/models/opening_balances.py +++ b/xero_python/payrollau/models/opening_balances.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/pay_item.py b/xero_python/payrollau/models/pay_item.py index cf98bca9..c32b8ff3 100644 --- a/xero_python/payrollau/models/pay_item.py +++ b/xero_python/payrollau/models/pay_item.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/pay_items.py b/xero_python/payrollau/models/pay_items.py index 184a6982..99312635 100644 --- a/xero_python/payrollau/models/pay_items.py +++ b/xero_python/payrollau/models/pay_items.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/pay_run.py b/xero_python/payrollau/models/pay_run.py index 6b6a3972..e290705a 100644 --- a/xero_python/payrollau/models/pay_run.py +++ b/xero_python/payrollau/models/pay_run.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/pay_run_status.py b/xero_python/payrollau/models/pay_run_status.py index e0af23b4..33f390e8 100644 --- a/xero_python/payrollau/models/pay_run_status.py +++ b/xero_python/payrollau/models/pay_run_status.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/pay_runs.py b/xero_python/payrollau/models/pay_runs.py index 64d2b153..eea6de0e 100644 --- a/xero_python/payrollau/models/pay_runs.py +++ b/xero_python/payrollau/models/pay_runs.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/pay_template.py b/xero_python/payrollau/models/pay_template.py index 7ace523a..47604bba 100644 --- a/xero_python/payrollau/models/pay_template.py +++ b/xero_python/payrollau/models/pay_template.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/payment_frequency_type.py b/xero_python/payrollau/models/payment_frequency_type.py index 579a6478..f787d106 100644 --- a/xero_python/payrollau/models/payment_frequency_type.py +++ b/xero_python/payrollau/models/payment_frequency_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/payroll_calendar.py b/xero_python/payrollau/models/payroll_calendar.py index 7515670d..09f69847 100644 --- a/xero_python/payrollau/models/payroll_calendar.py +++ b/xero_python/payrollau/models/payroll_calendar.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/payroll_calendars.py b/xero_python/payrollau/models/payroll_calendars.py index ea4e3976..822b62ba 100644 --- a/xero_python/payrollau/models/payroll_calendars.py +++ b/xero_python/payrollau/models/payroll_calendars.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/payslip.py b/xero_python/payrollau/models/payslip.py index 1c3aaace..e604246f 100644 --- a/xero_python/payrollau/models/payslip.py +++ b/xero_python/payrollau/models/payslip.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/payslip_lines.py b/xero_python/payrollau/models/payslip_lines.py index 7e21112d..502bbc9a 100644 --- a/xero_python/payrollau/models/payslip_lines.py +++ b/xero_python/payrollau/models/payslip_lines.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/payslip_object.py b/xero_python/payrollau/models/payslip_object.py index 571cebf5..69edff2f 100644 --- a/xero_python/payrollau/models/payslip_object.py +++ b/xero_python/payrollau/models/payslip_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/payslip_summary.py b/xero_python/payrollau/models/payslip_summary.py index 3650a83a..76bab3c5 100644 --- a/xero_python/payrollau/models/payslip_summary.py +++ b/xero_python/payrollau/models/payslip_summary.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/payslips.py b/xero_python/payrollau/models/payslips.py index f6c2a297..10225b8a 100644 --- a/xero_python/payrollau/models/payslips.py +++ b/xero_python/payrollau/models/payslips.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/rate_type.py b/xero_python/payrollau/models/rate_type.py index d0665d9f..e851ccaf 100644 --- a/xero_python/payrollau/models/rate_type.py +++ b/xero_python/payrollau/models/rate_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/reimbursement_line.py b/xero_python/payrollau/models/reimbursement_line.py index f8c3b19e..34114994 100644 --- a/xero_python/payrollau/models/reimbursement_line.py +++ b/xero_python/payrollau/models/reimbursement_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/reimbursement_lines.py b/xero_python/payrollau/models/reimbursement_lines.py index d536e72e..da10c900 100644 --- a/xero_python/payrollau/models/reimbursement_lines.py +++ b/xero_python/payrollau/models/reimbursement_lines.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/reimbursement_type.py b/xero_python/payrollau/models/reimbursement_type.py index 7f8f96d7..227b7f02 100644 --- a/xero_python/payrollau/models/reimbursement_type.py +++ b/xero_python/payrollau/models/reimbursement_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/residency_status.py b/xero_python/payrollau/models/residency_status.py index 2131b42a..056265c8 100644 --- a/xero_python/payrollau/models/residency_status.py +++ b/xero_python/payrollau/models/residency_status.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/settings.py b/xero_python/payrollau/models/settings.py index d65207cb..be3e3e86 100644 --- a/xero_python/payrollau/models/settings.py +++ b/xero_python/payrollau/models/settings.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/settings_object.py b/xero_python/payrollau/models/settings_object.py index f697d4c5..7bdc3367 100644 --- a/xero_python/payrollau/models/settings_object.py +++ b/xero_python/payrollau/models/settings_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/settings_tracking_categories.py b/xero_python/payrollau/models/settings_tracking_categories.py index 47e7e20a..350af4dd 100644 --- a/xero_python/payrollau/models/settings_tracking_categories.py +++ b/xero_python/payrollau/models/settings_tracking_categories.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/settings_tracking_categories_employee_groups.py b/xero_python/payrollau/models/settings_tracking_categories_employee_groups.py index caa7fb1e..550a4fdc 100644 --- a/xero_python/payrollau/models/settings_tracking_categories_employee_groups.py +++ b/xero_python/payrollau/models/settings_tracking_categories_employee_groups.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/settings_tracking_categories_timesheet_categories.py b/xero_python/payrollau/models/settings_tracking_categories_timesheet_categories.py index e28eb12e..b66512ce 100644 --- a/xero_python/payrollau/models/settings_tracking_categories_timesheet_categories.py +++ b/xero_python/payrollau/models/settings_tracking_categories_timesheet_categories.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/state.py b/xero_python/payrollau/models/state.py index ec914350..080aca93 100644 --- a/xero_python/payrollau/models/state.py +++ b/xero_python/payrollau/models/state.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/super_fund.py b/xero_python/payrollau/models/super_fund.py index 4cb0d44f..02dc60f6 100644 --- a/xero_python/payrollau/models/super_fund.py +++ b/xero_python/payrollau/models/super_fund.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/super_fund_product.py b/xero_python/payrollau/models/super_fund_product.py index ec382ee3..0a6c91de 100644 --- a/xero_python/payrollau/models/super_fund_product.py +++ b/xero_python/payrollau/models/super_fund_product.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/super_fund_products.py b/xero_python/payrollau/models/super_fund_products.py index ea861abb..a67401b8 100644 --- a/xero_python/payrollau/models/super_fund_products.py +++ b/xero_python/payrollau/models/super_fund_products.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/super_fund_type.py b/xero_python/payrollau/models/super_fund_type.py index 71b2a4d0..7f27a448 100644 --- a/xero_python/payrollau/models/super_fund_type.py +++ b/xero_python/payrollau/models/super_fund_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/super_funds.py b/xero_python/payrollau/models/super_funds.py index 2df733a2..2b950a74 100644 --- a/xero_python/payrollau/models/super_funds.py +++ b/xero_python/payrollau/models/super_funds.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/super_line.py b/xero_python/payrollau/models/super_line.py index c9a9600c..372c194d 100644 --- a/xero_python/payrollau/models/super_line.py +++ b/xero_python/payrollau/models/super_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/super_membership.py b/xero_python/payrollau/models/super_membership.py index 47d370b9..022d444c 100644 --- a/xero_python/payrollau/models/super_membership.py +++ b/xero_python/payrollau/models/super_membership.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/superannuation_calculation_type.py b/xero_python/payrollau/models/superannuation_calculation_type.py index 756a16db..f47c4ea3 100644 --- a/xero_python/payrollau/models/superannuation_calculation_type.py +++ b/xero_python/payrollau/models/superannuation_calculation_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/superannuation_contribution_type.py b/xero_python/payrollau/models/superannuation_contribution_type.py index c1be34e2..ef108c6b 100644 --- a/xero_python/payrollau/models/superannuation_contribution_type.py +++ b/xero_python/payrollau/models/superannuation_contribution_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/superannuation_line.py b/xero_python/payrollau/models/superannuation_line.py index 3035e3ec..d9155c55 100644 --- a/xero_python/payrollau/models/superannuation_line.py +++ b/xero_python/payrollau/models/superannuation_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/tax_declaration.py b/xero_python/payrollau/models/tax_declaration.py index 37dcdad8..6542d0f9 100644 --- a/xero_python/payrollau/models/tax_declaration.py +++ b/xero_python/payrollau/models/tax_declaration.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/tax_line.py b/xero_python/payrollau/models/tax_line.py index cc286a58..296c21bf 100644 --- a/xero_python/payrollau/models/tax_line.py +++ b/xero_python/payrollau/models/tax_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/tfn_exemption_type.py b/xero_python/payrollau/models/tfn_exemption_type.py index 3358312c..5e056759 100644 --- a/xero_python/payrollau/models/tfn_exemption_type.py +++ b/xero_python/payrollau/models/tfn_exemption_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/timesheet.py b/xero_python/payrollau/models/timesheet.py index e85ffc80..fb623178 100644 --- a/xero_python/payrollau/models/timesheet.py +++ b/xero_python/payrollau/models/timesheet.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/timesheet_line.py b/xero_python/payrollau/models/timesheet_line.py index a5415d7d..cc97527a 100644 --- a/xero_python/payrollau/models/timesheet_line.py +++ b/xero_python/payrollau/models/timesheet_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/timesheet_object.py b/xero_python/payrollau/models/timesheet_object.py index e52569b2..45a993db 100644 --- a/xero_python/payrollau/models/timesheet_object.py +++ b/xero_python/payrollau/models/timesheet_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/timesheet_status.py b/xero_python/payrollau/models/timesheet_status.py index 6f9e6f24..8244cb63 100644 --- a/xero_python/payrollau/models/timesheet_status.py +++ b/xero_python/payrollau/models/timesheet_status.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/timesheets.py b/xero_python/payrollau/models/timesheets.py index aca436ad..f716cd6b 100644 --- a/xero_python/payrollau/models/timesheets.py +++ b/xero_python/payrollau/models/timesheets.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollau/models/validation_error.py b/xero_python/payrollau/models/validation_error.py index 9087c298..4c3aa024 100644 --- a/xero_python/payrollau/models/validation_error.py +++ b/xero_python/payrollau/models/validation_error.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in Australia region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/__init__.py b/xero_python/payrollnz/__init__.py index 2615a513..1aa00d0c 100644 --- a/xero_python/payrollnz/__init__.py +++ b/xero_python/payrollnz/__init__.py @@ -7,7 +7,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py index d94eb7f8..acf90890 100644 --- a/xero_python/payrollnz/api/payroll_nz_api.py +++ b/xero_python/payrollnz/api/payroll_nz_api.py @@ -5,11 +5,13 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ +""" + OpenAPI spec version: 2.8.4 +""" import importlib import re # noqa: F401 diff --git a/xero_python/payrollnz/docs/SalaryAndWage.md b/xero_python/payrollnz/docs/SalaryAndWage.md index f337f519..fa4cd16a 100644 --- a/xero_python/payrollnz/docs/SalaryAndWage.md +++ b/xero_python/payrollnz/docs/SalaryAndWage.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **number_of_units_per_week** | **float** | The Number of Units per week for the corresponding salary and wages | **rate_per_unit** | **float** | The rate of each unit for the corresponding salary and wages | [optional] **number_of_units_per_day** | **float** | The Number of Units per day for the corresponding salary and wages | -**days_per_week** | **int** | The days per week for the salary. | [optional] +**days_per_week** | **float** | The days per week for the salary. | [optional] **effective_from** | **date** | The effective date of the corresponding salary and wages | **annual_salary** | **float** | The annual salary | **status** | **str** | The current status of the corresponding salary and wages | diff --git a/xero_python/payrollnz/models/__init__.py b/xero_python/payrollnz/models/__init__.py index c3a65a9f..dc995d81 100644 --- a/xero_python/payrollnz/models/__init__.py +++ b/xero_python/payrollnz/models/__init__.py @@ -6,7 +6,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/account.py b/xero_python/payrollnz/models/account.py index ca9ef203..52c83c46 100644 --- a/xero_python/payrollnz/models/account.py +++ b/xero_python/payrollnz/models/account.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -107,12 +106,14 @@ def type(self, type): "BANK", "None", ] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type diff --git a/xero_python/payrollnz/models/accounts.py b/xero_python/payrollnz/models/accounts.py index b3b31902..29f3577a 100644 --- a/xero_python/payrollnz/models/accounts.py +++ b/xero_python/payrollnz/models/accounts.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/address.py b/xero_python/payrollnz/models/address.py index 1c9f2cca..6a83b184 100644 --- a/xero_python/payrollnz/models/address.py +++ b/xero_python/payrollnz/models/address.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/bank_account.py b/xero_python/payrollnz/models/bank_account.py index 24b539e1..0db7d4ec 100644 --- a/xero_python/payrollnz/models/bank_account.py +++ b/xero_python/payrollnz/models/bank_account.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -283,11 +282,13 @@ def calculation_type(self, calculation_type): :type: str """ allowed_values = ["FixedAmount", "Balance", "None"] # noqa: E501 - if calculation_type not in allowed_values: - raise ValueError( - "Invalid value for `calculation_type` ({0}), must be one of {1}".format( # noqa: E501 - calculation_type, allowed_values + + if calculation_type: + if calculation_type not in allowed_values: + raise ValueError( + "Invalid value for `calculation_type` ({0}), must be one of {1}".format( # noqa: E501 + calculation_type, allowed_values + ) ) - ) self._calculation_type = calculation_type diff --git a/xero_python/payrollnz/models/benefit.py b/xero_python/payrollnz/models/benefit.py index b785755e..a48793a8 100644 --- a/xero_python/payrollnz/models/benefit.py +++ b/xero_python/payrollnz/models/benefit.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -175,12 +174,14 @@ def category(self, category): "Invalid value for `category`, must not be `None`" ) # noqa: E501 allowed_values = ["KiwiSaver", "ComplyingFund", "Other", "None"] # noqa: E501 - if category not in allowed_values: - raise ValueError( - "Invalid value for `category` ({0}), must be one of {1}".format( # noqa: E501 - category, allowed_values + + if category: + if category not in allowed_values: + raise ValueError( + "Invalid value for `category` ({0}), must be one of {1}".format( # noqa: E501 + category, allowed_values + ) ) - ) self._category = category @@ -263,12 +264,14 @@ def calculation_type_nz(self, calculation_type_nz): "PercentageOfTaxableEarnings", "None", ] # noqa: E501 - if calculation_type_nz not in allowed_values: - raise ValueError( - "Invalid value for `calculation_type_nz` ({0}), must be one of {1}".format( # noqa: E501 - calculation_type_nz, allowed_values + + if calculation_type_nz: + if calculation_type_nz not in allowed_values: + raise ValueError( + "Invalid value for `calculation_type_nz` ({0}), must be one of {1}".format( # noqa: E501 + calculation_type_nz, allowed_values + ) ) - ) self._calculation_type_nz = calculation_type_nz diff --git a/xero_python/payrollnz/models/calendar_type.py b/xero_python/payrollnz/models/calendar_type.py index 561d5b7d..ec67f5b1 100644 --- a/xero_python/payrollnz/models/calendar_type.py +++ b/xero_python/payrollnz/models/calendar_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/deduction.py b/xero_python/payrollnz/models/deduction.py index 4243b0c4..6cf1c98c 100644 --- a/xero_python/payrollnz/models/deduction.py +++ b/xero_python/payrollnz/models/deduction.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -158,12 +157,14 @@ def deduction_category(self, deduction_category): "NzOther", "None", ] # noqa: E501 - if deduction_category not in allowed_values: - raise ValueError( - "Invalid value for `deduction_category` ({0}), must be one of {1}".format( # noqa: E501 - deduction_category, allowed_values + + if deduction_category: + if deduction_category not in allowed_values: + raise ValueError( + "Invalid value for `deduction_category` ({0}), must be one of {1}".format( # noqa: E501 + deduction_category, allowed_values + ) ) - ) self._deduction_category = deduction_category diff --git a/xero_python/payrollnz/models/deduction_line.py b/xero_python/payrollnz/models/deduction_line.py index 2c3db4ac..c33952f4 100644 --- a/xero_python/payrollnz/models/deduction_line.py +++ b/xero_python/payrollnz/models/deduction_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/deduction_object.py b/xero_python/payrollnz/models/deduction_object.py index 98a17814..6f5fa475 100644 --- a/xero_python/payrollnz/models/deduction_object.py +++ b/xero_python/payrollnz/models/deduction_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/deductions.py b/xero_python/payrollnz/models/deductions.py index c5b5f4e3..60ae6b03 100644 --- a/xero_python/payrollnz/models/deductions.py +++ b/xero_python/payrollnz/models/deductions.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/earnings_line.py b/xero_python/payrollnz/models/earnings_line.py index e8b3cf16..ed18cdd8 100644 --- a/xero_python/payrollnz/models/earnings_line.py +++ b/xero_python/payrollnz/models/earnings_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/earnings_order.py b/xero_python/payrollnz/models/earnings_order.py index 3b9c6aa5..2d5318a2 100644 --- a/xero_python/payrollnz/models/earnings_order.py +++ b/xero_python/payrollnz/models/earnings_order.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/earnings_order_object.py b/xero_python/payrollnz/models/earnings_order_object.py index 08930256..52977b06 100644 --- a/xero_python/payrollnz/models/earnings_order_object.py +++ b/xero_python/payrollnz/models/earnings_order_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/earnings_orders.py b/xero_python/payrollnz/models/earnings_orders.py index 46fabfc1..162bb272 100644 --- a/xero_python/payrollnz/models/earnings_orders.py +++ b/xero_python/payrollnz/models/earnings_orders.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/earnings_rate.py b/xero_python/payrollnz/models/earnings_rate.py index 2b28fdc1..df6dc811 100644 --- a/xero_python/payrollnz/models/earnings_rate.py +++ b/xero_python/payrollnz/models/earnings_rate.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -191,12 +190,14 @@ def earnings_type(self, earnings_type): "WithholdingIncome", "None", ] # noqa: E501 - if earnings_type not in allowed_values: - raise ValueError( - "Invalid value for `earnings_type` ({0}), must be one of {1}".format( # noqa: E501 - earnings_type, allowed_values + + if earnings_type: + if earnings_type not in allowed_values: + raise ValueError( + "Invalid value for `earnings_type` ({0}), must be one of {1}".format( # noqa: E501 + earnings_type, allowed_values + ) ) - ) self._earnings_type = earnings_type @@ -230,12 +231,14 @@ def rate_type(self, rate_type): "FixedAmount", "None", ] # noqa: E501 - if rate_type not in allowed_values: - raise ValueError( - "Invalid value for `rate_type` ({0}), must be one of {1}".format( # noqa: E501 - rate_type, allowed_values + + if rate_type: + if rate_type not in allowed_values: + raise ValueError( + "Invalid value for `rate_type` ({0}), must be one of {1}".format( # noqa: E501 + rate_type, allowed_values + ) ) - ) self._rate_type = rate_type diff --git a/xero_python/payrollnz/models/earnings_rate_object.py b/xero_python/payrollnz/models/earnings_rate_object.py index ec025e92..6b9dfa1d 100644 --- a/xero_python/payrollnz/models/earnings_rate_object.py +++ b/xero_python/payrollnz/models/earnings_rate_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/earnings_rates.py b/xero_python/payrollnz/models/earnings_rates.py index a2b70cb7..34066eea 100644 --- a/xero_python/payrollnz/models/earnings_rates.py +++ b/xero_python/payrollnz/models/earnings_rates.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/earnings_template.py b/xero_python/payrollnz/models/earnings_template.py index 6e37ec48..91002160 100644 --- a/xero_python/payrollnz/models/earnings_template.py +++ b/xero_python/payrollnz/models/earnings_template.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/earnings_template_object.py b/xero_python/payrollnz/models/earnings_template_object.py index 100af2c5..6fd43c54 100644 --- a/xero_python/payrollnz/models/earnings_template_object.py +++ b/xero_python/payrollnz/models/earnings_template_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee.py b/xero_python/payrollnz/models/employee.py index 5c5f9d1a..ce9cf9c0 100644 --- a/xero_python/payrollnz/models/employee.py +++ b/xero_python/payrollnz/models/employee.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -308,12 +307,14 @@ def gender(self, gender): :type: str """ allowed_values = ["M", "F", "None"] # noqa: E501 - if gender not in allowed_values: - raise ValueError( - "Invalid value for `gender` ({0}), must be one of {1}".format( # noqa: E501 - gender, allowed_values + + if gender: + if gender not in allowed_values: + raise ValueError( + "Invalid value for `gender` ({0}), must be one of {1}".format( # noqa: E501 + gender, allowed_values + ) ) - ) self._gender = gender diff --git a/xero_python/payrollnz/models/employee_earnings_templates.py b/xero_python/payrollnz/models/employee_earnings_templates.py index 7f0d23c0..708c2a88 100644 --- a/xero_python/payrollnz/models/employee_earnings_templates.py +++ b/xero_python/payrollnz/models/employee_earnings_templates.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_leave.py b/xero_python/payrollnz/models/employee_leave.py index 50441589..9f4352ad 100644 --- a/xero_python/payrollnz/models/employee_leave.py +++ b/xero_python/payrollnz/models/employee_leave.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_leave_balance.py b/xero_python/payrollnz/models/employee_leave_balance.py index c43add2f..5fc42c8b 100644 --- a/xero_python/payrollnz/models/employee_leave_balance.py +++ b/xero_python/payrollnz/models/employee_leave_balance.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_leave_balances.py b/xero_python/payrollnz/models/employee_leave_balances.py index 85409e7b..8ed41347 100644 --- a/xero_python/payrollnz/models/employee_leave_balances.py +++ b/xero_python/payrollnz/models/employee_leave_balances.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_leave_object.py b/xero_python/payrollnz/models/employee_leave_object.py index 6d8a1006..701babcc 100644 --- a/xero_python/payrollnz/models/employee_leave_object.py +++ b/xero_python/payrollnz/models/employee_leave_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_leave_setup.py b/xero_python/payrollnz/models/employee_leave_setup.py index 20374351..2a63a0bd 100644 --- a/xero_python/payrollnz/models/employee_leave_setup.py +++ b/xero_python/payrollnz/models/employee_leave_setup.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_leave_setup_object.py b/xero_python/payrollnz/models/employee_leave_setup_object.py index c7c2653c..b502be79 100644 --- a/xero_python/payrollnz/models/employee_leave_setup_object.py +++ b/xero_python/payrollnz/models/employee_leave_setup_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_leave_type.py b/xero_python/payrollnz/models/employee_leave_type.py index 1a414661..0a5814e7 100644 --- a/xero_python/payrollnz/models/employee_leave_type.py +++ b/xero_python/payrollnz/models/employee_leave_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -154,12 +153,14 @@ def schedule_of_accrual(self, schedule_of_accrual): "NoAccruals", "None", ] # noqa: E501 - if schedule_of_accrual not in allowed_values: - raise ValueError( - "Invalid value for `schedule_of_accrual` ({0}), must be one of {1}".format( # noqa: E501 - schedule_of_accrual, allowed_values + + if schedule_of_accrual: + if schedule_of_accrual not in allowed_values: + raise ValueError( + "Invalid value for `schedule_of_accrual` ({0}), must be one of {1}".format( # noqa: E501 + schedule_of_accrual, allowed_values + ) ) - ) self._schedule_of_accrual = schedule_of_accrual diff --git a/xero_python/payrollnz/models/employee_leave_type_object.py b/xero_python/payrollnz/models/employee_leave_type_object.py index be5ee1d5..a8e054c7 100644 --- a/xero_python/payrollnz/models/employee_leave_type_object.py +++ b/xero_python/payrollnz/models/employee_leave_type_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_leave_types.py b/xero_python/payrollnz/models/employee_leave_types.py index 93792218..d0ba3fb4 100644 --- a/xero_python/payrollnz/models/employee_leave_types.py +++ b/xero_python/payrollnz/models/employee_leave_types.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_leaves.py b/xero_python/payrollnz/models/employee_leaves.py index d9afeb8a..1e108a09 100644 --- a/xero_python/payrollnz/models/employee_leaves.py +++ b/xero_python/payrollnz/models/employee_leaves.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_object.py b/xero_python/payrollnz/models/employee_object.py index 9e583b57..b76d3807 100644 --- a/xero_python/payrollnz/models/employee_object.py +++ b/xero_python/payrollnz/models/employee_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_opening_balance.py b/xero_python/payrollnz/models/employee_opening_balance.py index ddbeba26..8ea5313e 100644 --- a/xero_python/payrollnz/models/employee_opening_balance.py +++ b/xero_python/payrollnz/models/employee_opening_balance.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_opening_balances_object.py b/xero_python/payrollnz/models/employee_opening_balances_object.py index 62697475..4c5ab86c 100644 --- a/xero_python/payrollnz/models/employee_opening_balances_object.py +++ b/xero_python/payrollnz/models/employee_opening_balances_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_pay_template.py b/xero_python/payrollnz/models/employee_pay_template.py index 607cbbf3..1da6d96f 100644 --- a/xero_python/payrollnz/models/employee_pay_template.py +++ b/xero_python/payrollnz/models/employee_pay_template.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_pay_template_object.py b/xero_python/payrollnz/models/employee_pay_template_object.py index 3f42764a..25c9d1b2 100644 --- a/xero_python/payrollnz/models/employee_pay_template_object.py +++ b/xero_python/payrollnz/models/employee_pay_template_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_pay_templates.py b/xero_python/payrollnz/models/employee_pay_templates.py index 3bf36928..b192e4f3 100644 --- a/xero_python/payrollnz/models/employee_pay_templates.py +++ b/xero_python/payrollnz/models/employee_pay_templates.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_statutory_leave_balance.py b/xero_python/payrollnz/models/employee_statutory_leave_balance.py index 9dff3592..cdc674bf 100644 --- a/xero_python/payrollnz/models/employee_statutory_leave_balance.py +++ b/xero_python/payrollnz/models/employee_statutory_leave_balance.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -83,12 +82,14 @@ def leave_type(self, leave_type): "Sharedparental", "None", ] # noqa: E501 - if leave_type not in allowed_values: - raise ValueError( - "Invalid value for `leave_type` ({0}), must be one of {1}".format( # noqa: E501 - leave_type, allowed_values + + if leave_type: + if leave_type not in allowed_values: + raise ValueError( + "Invalid value for `leave_type` ({0}), must be one of {1}".format( # noqa: E501 + leave_type, allowed_values + ) ) - ) self._leave_type = leave_type @@ -136,11 +137,13 @@ def units(self, units): :type: str """ allowed_values = ["Hours", "None"] # noqa: E501 - if units not in allowed_values: - raise ValueError( - "Invalid value for `units` ({0}), must be one of {1}".format( # noqa: E501 - units, allowed_values + + if units: + if units not in allowed_values: + raise ValueError( + "Invalid value for `units` ({0}), must be one of {1}".format( # noqa: E501 + units, allowed_values + ) ) - ) self._units = units diff --git a/xero_python/payrollnz/models/employee_statutory_leave_balance_object.py b/xero_python/payrollnz/models/employee_statutory_leave_balance_object.py index 68088c43..0e2ad2f3 100644 --- a/xero_python/payrollnz/models/employee_statutory_leave_balance_object.py +++ b/xero_python/payrollnz/models/employee_statutory_leave_balance_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_statutory_leave_summary.py b/xero_python/payrollnz/models/employee_statutory_leave_summary.py index cc5ba6bb..6b458a05 100644 --- a/xero_python/payrollnz/models/employee_statutory_leave_summary.py +++ b/xero_python/payrollnz/models/employee_statutory_leave_summary.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -160,12 +159,14 @@ def type(self, type): "Sharedparental", "None", ] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type @@ -259,11 +260,13 @@ def status(self, status): :type: str """ allowed_values = ["Pending", "In-Progress", "Completed", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/payrollnz/models/employee_statutory_leaves_summaries.py b/xero_python/payrollnz/models/employee_statutory_leaves_summaries.py index 812ed04c..e77812c1 100644 --- a/xero_python/payrollnz/models/employee_statutory_leaves_summaries.py +++ b/xero_python/payrollnz/models/employee_statutory_leaves_summaries.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_statutory_sick_leave.py b/xero_python/payrollnz/models/employee_statutory_sick_leave.py index 1dd8aac6..f412317a 100644 --- a/xero_python/payrollnz/models/employee_statutory_sick_leave.py +++ b/xero_python/payrollnz/models/employee_statutory_sick_leave.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_statutory_sick_leave_object.py b/xero_python/payrollnz/models/employee_statutory_sick_leave_object.py index 764ed69a..6326a3d3 100644 --- a/xero_python/payrollnz/models/employee_statutory_sick_leave_object.py +++ b/xero_python/payrollnz/models/employee_statutory_sick_leave_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_statutory_sick_leaves.py b/xero_python/payrollnz/models/employee_statutory_sick_leaves.py index b8f4f33b..ca9e3c9f 100644 --- a/xero_python/payrollnz/models/employee_statutory_sick_leaves.py +++ b/xero_python/payrollnz/models/employee_statutory_sick_leaves.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employee_tax.py b/xero_python/payrollnz/models/employee_tax.py index 79c15953..9efd203a 100644 --- a/xero_python/payrollnz/models/employee_tax.py +++ b/xero_python/payrollnz/models/employee_tax.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -344,12 +343,14 @@ def kiwi_saver_contributions(self, kiwi_saver_contributions): "NotCurrentlyAKiwiSaverMember", "None", ] # noqa: E501 - if kiwi_saver_contributions not in allowed_values: - raise ValueError( - "Invalid value for `kiwi_saver_contributions` ({0}), must be one of {1}".format( # noqa: E501 - kiwi_saver_contributions, allowed_values + + if kiwi_saver_contributions: + if kiwi_saver_contributions not in allowed_values: + raise ValueError( + "Invalid value for `kiwi_saver_contributions` ({0}), must be one of {1}".format( # noqa: E501 + kiwi_saver_contributions, allowed_values + ) ) - ) self._kiwi_saver_contributions = kiwi_saver_contributions diff --git a/xero_python/payrollnz/models/employee_tax_object.py b/xero_python/payrollnz/models/employee_tax_object.py index 61105c18..38c2a2ef 100644 --- a/xero_python/payrollnz/models/employee_tax_object.py +++ b/xero_python/payrollnz/models/employee_tax_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employees.py b/xero_python/payrollnz/models/employees.py index 67186d6d..8effa3d7 100644 --- a/xero_python/payrollnz/models/employees.py +++ b/xero_python/payrollnz/models/employees.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employment.py b/xero_python/payrollnz/models/employment.py index 3ac7c638..da83247b 100644 --- a/xero_python/payrollnz/models/employment.py +++ b/xero_python/payrollnz/models/employment.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/employment_object.py b/xero_python/payrollnz/models/employment_object.py index 4c30cebe..411227ef 100644 --- a/xero_python/payrollnz/models/employment_object.py +++ b/xero_python/payrollnz/models/employment_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/gross_earnings_history.py b/xero_python/payrollnz/models/gross_earnings_history.py index 6fa1360e..c58915cb 100644 --- a/xero_python/payrollnz/models/gross_earnings_history.py +++ b/xero_python/payrollnz/models/gross_earnings_history.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/invalid_field.py b/xero_python/payrollnz/models/invalid_field.py index 2e0dfff4..b998c28b 100644 --- a/xero_python/payrollnz/models/invalid_field.py +++ b/xero_python/payrollnz/models/invalid_field.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/leave_accrual_line.py b/xero_python/payrollnz/models/leave_accrual_line.py index 6100ff8f..b5df7895 100644 --- a/xero_python/payrollnz/models/leave_accrual_line.py +++ b/xero_python/payrollnz/models/leave_accrual_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/leave_earnings_line.py b/xero_python/payrollnz/models/leave_earnings_line.py index a2e6546c..3ca67730 100644 --- a/xero_python/payrollnz/models/leave_earnings_line.py +++ b/xero_python/payrollnz/models/leave_earnings_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/leave_period.py b/xero_python/payrollnz/models/leave_period.py index a2f64b02..da81576b 100644 --- a/xero_python/payrollnz/models/leave_period.py +++ b/xero_python/payrollnz/models/leave_period.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -158,11 +157,13 @@ def period_status(self, period_status): :type: str """ allowed_values = ["Approved", "Completed", "None"] # noqa: E501 - if period_status not in allowed_values: - raise ValueError( - "Invalid value for `period_status` ({0}), must be one of {1}".format( # noqa: E501 - period_status, allowed_values + + if period_status: + if period_status not in allowed_values: + raise ValueError( + "Invalid value for `period_status` ({0}), must be one of {1}".format( # noqa: E501 + period_status, allowed_values + ) ) - ) self._period_status = period_status diff --git a/xero_python/payrollnz/models/leave_periods.py b/xero_python/payrollnz/models/leave_periods.py index 649cecfb..c691bad8 100644 --- a/xero_python/payrollnz/models/leave_periods.py +++ b/xero_python/payrollnz/models/leave_periods.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/leave_type.py b/xero_python/payrollnz/models/leave_type.py index b2615cf5..d581a2f9 100644 --- a/xero_python/payrollnz/models/leave_type.py +++ b/xero_python/payrollnz/models/leave_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/leave_type_object.py b/xero_python/payrollnz/models/leave_type_object.py index 31b194ca..40edaba2 100644 --- a/xero_python/payrollnz/models/leave_type_object.py +++ b/xero_python/payrollnz/models/leave_type_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/leave_types.py b/xero_python/payrollnz/models/leave_types.py index 6a3faeac..e0521dea 100644 --- a/xero_python/payrollnz/models/leave_types.py +++ b/xero_python/payrollnz/models/leave_types.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/pagination.py b/xero_python/payrollnz/models/pagination.py index 7c2f71aa..581e85aa 100644 --- a/xero_python/payrollnz/models/pagination.py +++ b/xero_python/payrollnz/models/pagination.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/pay_run.py b/xero_python/payrollnz/models/pay_run.py index d94fdee9..ac3720f9 100644 --- a/xero_python/payrollnz/models/pay_run.py +++ b/xero_python/payrollnz/models/pay_run.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -298,12 +297,14 @@ def pay_run_status(self, pay_run_status): :type: str """ allowed_values = ["Draft", "Posted", "None"] # noqa: E501 - if pay_run_status not in allowed_values: - raise ValueError( - "Invalid value for `pay_run_status` ({0}), must be one of {1}".format( # noqa: E501 - pay_run_status, allowed_values + + if pay_run_status: + if pay_run_status not in allowed_values: + raise ValueError( + "Invalid value for `pay_run_status` ({0}), must be one of {1}".format( # noqa: E501 + pay_run_status, allowed_values + ) ) - ) self._pay_run_status = pay_run_status @@ -333,12 +334,14 @@ def pay_run_type(self, pay_run_type): "EarlierYearUpdate", "None", ] # noqa: E501 - if pay_run_type not in allowed_values: - raise ValueError( - "Invalid value for `pay_run_type` ({0}), must be one of {1}".format( # noqa: E501 - pay_run_type, allowed_values + + if pay_run_type: + if pay_run_type not in allowed_values: + raise ValueError( + "Invalid value for `pay_run_type` ({0}), must be one of {1}".format( # noqa: E501 + pay_run_type, allowed_values + ) ) - ) self._pay_run_type = pay_run_type diff --git a/xero_python/payrollnz/models/pay_run_calendar.py b/xero_python/payrollnz/models/pay_run_calendar.py index dbb01bf6..bd0901a7 100644 --- a/xero_python/payrollnz/models/pay_run_calendar.py +++ b/xero_python/payrollnz/models/pay_run_calendar.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/pay_run_calendar_object.py b/xero_python/payrollnz/models/pay_run_calendar_object.py index 694b5028..0a8671fb 100644 --- a/xero_python/payrollnz/models/pay_run_calendar_object.py +++ b/xero_python/payrollnz/models/pay_run_calendar_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/pay_run_calendars.py b/xero_python/payrollnz/models/pay_run_calendars.py index 35879725..0a5122c4 100644 --- a/xero_python/payrollnz/models/pay_run_calendars.py +++ b/xero_python/payrollnz/models/pay_run_calendars.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/pay_run_object.py b/xero_python/payrollnz/models/pay_run_object.py index c4665c3f..024747c0 100644 --- a/xero_python/payrollnz/models/pay_run_object.py +++ b/xero_python/payrollnz/models/pay_run_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/pay_runs.py b/xero_python/payrollnz/models/pay_runs.py index 66047390..3bd6ff1a 100644 --- a/xero_python/payrollnz/models/pay_runs.py +++ b/xero_python/payrollnz/models/pay_runs.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/pay_slip.py b/xero_python/payrollnz/models/pay_slip.py index e7ab9689..fe62f21c 100644 --- a/xero_python/payrollnz/models/pay_slip.py +++ b/xero_python/payrollnz/models/pay_slip.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -613,12 +612,14 @@ def payment_method(self, payment_method): :type: str """ allowed_values = ["Cheque", "Electronically", "Manual", "None"] # noqa: E501 - if payment_method not in allowed_values: - raise ValueError( - "Invalid value for `payment_method` ({0}), must be one of {1}".format( # noqa: E501 - payment_method, allowed_values + + if payment_method: + if payment_method not in allowed_values: + raise ValueError( + "Invalid value for `payment_method` ({0}), must be one of {1}".format( # noqa: E501 + payment_method, allowed_values + ) ) - ) self._payment_method = payment_method diff --git a/xero_python/payrollnz/models/pay_slip_object.py b/xero_python/payrollnz/models/pay_slip_object.py index a14de4e1..1ec2207f 100644 --- a/xero_python/payrollnz/models/pay_slip_object.py +++ b/xero_python/payrollnz/models/pay_slip_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/pay_slips.py b/xero_python/payrollnz/models/pay_slips.py index 5f344301..96769906 100644 --- a/xero_python/payrollnz/models/pay_slips.py +++ b/xero_python/payrollnz/models/pay_slips.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/payment_line.py b/xero_python/payrollnz/models/payment_line.py index 43662716..678f6d9f 100644 --- a/xero_python/payrollnz/models/payment_line.py +++ b/xero_python/payrollnz/models/payment_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/payment_method.py b/xero_python/payrollnz/models/payment_method.py index 15a2c9c3..0677ccf2 100644 --- a/xero_python/payrollnz/models/payment_method.py +++ b/xero_python/payrollnz/models/payment_method.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -67,12 +66,14 @@ def payment_method(self, payment_method): :type: str """ allowed_values = ["Cheque", "Electronically", "Manual", "None"] # noqa: E501 - if payment_method not in allowed_values: - raise ValueError( - "Invalid value for `payment_method` ({0}), must be one of {1}".format( # noqa: E501 - payment_method, allowed_values + + if payment_method: + if payment_method not in allowed_values: + raise ValueError( + "Invalid value for `payment_method` ({0}), must be one of {1}".format( # noqa: E501 + payment_method, allowed_values + ) ) - ) self._payment_method = payment_method diff --git a/xero_python/payrollnz/models/payment_method_object.py b/xero_python/payrollnz/models/payment_method_object.py index ef4d29f3..ea2ad4e1 100644 --- a/xero_python/payrollnz/models/payment_method_object.py +++ b/xero_python/payrollnz/models/payment_method_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/problem.py b/xero_python/payrollnz/models/problem.py index 53054067..33f70ad0 100644 --- a/xero_python/payrollnz/models/problem.py +++ b/xero_python/payrollnz/models/problem.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/reimbursement.py b/xero_python/payrollnz/models/reimbursement.py index 1c20ef4b..27340d1e 100644 --- a/xero_python/payrollnz/models/reimbursement.py +++ b/xero_python/payrollnz/models/reimbursement.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -217,12 +216,14 @@ def reimbursement_category(self, reimbursement_category): :type: str """ allowed_values = ["GST", "NoGST", "GSTInclusive", "None"] # noqa: E501 - if reimbursement_category not in allowed_values: - raise ValueError( - "Invalid value for `reimbursement_category` ({0}), must be one of {1}".format( # noqa: E501 - reimbursement_category, allowed_values + + if reimbursement_category: + if reimbursement_category not in allowed_values: + raise ValueError( + "Invalid value for `reimbursement_category` ({0}), must be one of {1}".format( # noqa: E501 + reimbursement_category, allowed_values + ) ) - ) self._reimbursement_category = reimbursement_category @@ -247,12 +248,14 @@ def calculation_type(self, calculation_type): :type: str """ allowed_values = ["Unknown", "FixedAmount", "RatePerUnit", "None"] # noqa: E501 - if calculation_type not in allowed_values: - raise ValueError( - "Invalid value for `calculation_type` ({0}), must be one of {1}".format( # noqa: E501 - calculation_type, allowed_values + + if calculation_type: + if calculation_type not in allowed_values: + raise ValueError( + "Invalid value for `calculation_type` ({0}), must be one of {1}".format( # noqa: E501 + calculation_type, allowed_values + ) ) - ) self._calculation_type = calculation_type @@ -300,12 +303,14 @@ def standard_type_of_units(self, standard_type_of_units): :type: str """ allowed_values = ["Hours", "km", "None"] # noqa: E501 - if standard_type_of_units not in allowed_values: - raise ValueError( - "Invalid value for `standard_type_of_units` ({0}), must be one of {1}".format( # noqa: E501 - standard_type_of_units, allowed_values + + if standard_type_of_units: + if standard_type_of_units not in allowed_values: + raise ValueError( + "Invalid value for `standard_type_of_units` ({0}), must be one of {1}".format( # noqa: E501 + standard_type_of_units, allowed_values + ) ) - ) self._standard_type_of_units = standard_type_of_units diff --git a/xero_python/payrollnz/models/reimbursement_line.py b/xero_python/payrollnz/models/reimbursement_line.py index 3f5e800e..ad4c8211 100644 --- a/xero_python/payrollnz/models/reimbursement_line.py +++ b/xero_python/payrollnz/models/reimbursement_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/reimbursement_object.py b/xero_python/payrollnz/models/reimbursement_object.py index c32dae0f..2a6671f8 100644 --- a/xero_python/payrollnz/models/reimbursement_object.py +++ b/xero_python/payrollnz/models/reimbursement_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/reimbursements.py b/xero_python/payrollnz/models/reimbursements.py index fc6b37fd..fb6071ac 100644 --- a/xero_python/payrollnz/models/reimbursements.py +++ b/xero_python/payrollnz/models/reimbursements.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/salary_and_wage.py b/xero_python/payrollnz/models/salary_and_wage.py index 6c888390..04211b7a 100644 --- a/xero_python/payrollnz/models/salary_and_wage.py +++ b/xero_python/payrollnz/models/salary_and_wage.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -36,7 +35,7 @@ class SalaryAndWage(BaseModel): "number_of_units_per_week": "float", "rate_per_unit": "float", "number_of_units_per_day": "float", - "days_per_week": "int", + "days_per_week": "float", "effective_from": "date", "annual_salary": "float", "status": "str", @@ -231,7 +230,7 @@ def days_per_week(self): The days per week for the salary. # noqa: E501 :return: The days_per_week of this SalaryAndWage. # noqa: E501 - :rtype: int + :rtype: float """ return self._days_per_week @@ -242,7 +241,7 @@ def days_per_week(self, days_per_week): The days per week for the salary. # noqa: E501 :param days_per_week: The days_per_week of this SalaryAndWage. # noqa: E501 - :type: int + :type: float """ self._days_per_week = days_per_week @@ -326,12 +325,14 @@ def status(self, status): "Invalid value for `status`, must not be `None`" ) # noqa: E501 allowed_values = ["Active", "Pending", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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 @@ -360,11 +361,13 @@ def payment_type(self, payment_type): "Invalid value for `payment_type`, must not be `None`" ) # noqa: E501 allowed_values = ["Salary", "Hourly", "None"] # noqa: E501 - if payment_type not in allowed_values: - raise ValueError( - "Invalid value for `payment_type` ({0}), must be one of {1}".format( # noqa: E501 - payment_type, allowed_values + + if payment_type: + if payment_type not in allowed_values: + raise ValueError( + "Invalid value for `payment_type` ({0}), must be one of {1}".format( # noqa: E501 + payment_type, allowed_values + ) ) - ) self._payment_type = payment_type diff --git a/xero_python/payrollnz/models/salary_and_wage_object.py b/xero_python/payrollnz/models/salary_and_wage_object.py index 03f1a5d4..a5c5cb47 100644 --- a/xero_python/payrollnz/models/salary_and_wage_object.py +++ b/xero_python/payrollnz/models/salary_and_wage_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/salary_and_wages.py b/xero_python/payrollnz/models/salary_and_wages.py index a330bb09..5fa96a54 100644 --- a/xero_python/payrollnz/models/salary_and_wages.py +++ b/xero_python/payrollnz/models/salary_and_wages.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/settings.py b/xero_python/payrollnz/models/settings.py index 600bf8cc..8f766a83 100644 --- a/xero_python/payrollnz/models/settings.py +++ b/xero_python/payrollnz/models/settings.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/statutory_deduction.py b/xero_python/payrollnz/models/statutory_deduction.py index e6f43f58..24cf57b9 100644 --- a/xero_python/payrollnz/models/statutory_deduction.py +++ b/xero_python/payrollnz/models/statutory_deduction.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/statutory_deduction_category.py b/xero_python/payrollnz/models/statutory_deduction_category.py index 56763279..5348a355 100644 --- a/xero_python/payrollnz/models/statutory_deduction_category.py +++ b/xero_python/payrollnz/models/statutory_deduction_category.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/statutory_deduction_line.py b/xero_python/payrollnz/models/statutory_deduction_line.py index 72ac3597..62a8860b 100644 --- a/xero_python/payrollnz/models/statutory_deduction_line.py +++ b/xero_python/payrollnz/models/statutory_deduction_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/statutory_deduction_object.py b/xero_python/payrollnz/models/statutory_deduction_object.py index 916252d1..750774f2 100644 --- a/xero_python/payrollnz/models/statutory_deduction_object.py +++ b/xero_python/payrollnz/models/statutory_deduction_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/statutory_deductions.py b/xero_python/payrollnz/models/statutory_deductions.py index 61903aa0..745b6803 100644 --- a/xero_python/payrollnz/models/statutory_deductions.py +++ b/xero_python/payrollnz/models/statutory_deductions.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/superannuation_line.py b/xero_python/payrollnz/models/superannuation_line.py index f15c3637..2321030a 100644 --- a/xero_python/payrollnz/models/superannuation_line.py +++ b/xero_python/payrollnz/models/superannuation_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/superannuation_object.py b/xero_python/payrollnz/models/superannuation_object.py index 35978226..87adebb8 100644 --- a/xero_python/payrollnz/models/superannuation_object.py +++ b/xero_python/payrollnz/models/superannuation_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/superannuations.py b/xero_python/payrollnz/models/superannuations.py index f1d9c688..56294fde 100644 --- a/xero_python/payrollnz/models/superannuations.py +++ b/xero_python/payrollnz/models/superannuations.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/tax_code.py b/xero_python/payrollnz/models/tax_code.py index 3e5904b3..ae2690ab 100644 --- a/xero_python/payrollnz/models/tax_code.py +++ b/xero_python/payrollnz/models/tax_code.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/tax_line.py b/xero_python/payrollnz/models/tax_line.py index 10d336c9..5ef4b8fd 100644 --- a/xero_python/payrollnz/models/tax_line.py +++ b/xero_python/payrollnz/models/tax_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/tax_settings.py b/xero_python/payrollnz/models/tax_settings.py index 8f7cf64d..3f192110 100644 --- a/xero_python/payrollnz/models/tax_settings.py +++ b/xero_python/payrollnz/models/tax_settings.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -124,12 +123,14 @@ def period_type(self, period_type): :type: str """ allowed_values = ["weeks", "months", "None"] # noqa: E501 - if period_type not in allowed_values: - raise ValueError( - "Invalid value for `period_type` ({0}), must be one of {1}".format( # noqa: E501 - period_type, allowed_values + + if period_type: + if period_type not in allowed_values: + raise ValueError( + "Invalid value for `period_type` ({0}), must be one of {1}".format( # noqa: E501 + period_type, allowed_values + ) ) - ) self._period_type = period_type diff --git a/xero_python/payrollnz/models/timesheet.py b/xero_python/payrollnz/models/timesheet.py index 0e690338..cf22c4dd 100644 --- a/xero_python/payrollnz/models/timesheet.py +++ b/xero_python/payrollnz/models/timesheet.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -246,12 +245,14 @@ def status(self, status): :type: str """ allowed_values = ["Draft", "Approved", "Completed", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/payrollnz/models/timesheet_earnings_line.py b/xero_python/payrollnz/models/timesheet_earnings_line.py index 91b9c441..26948929 100644 --- a/xero_python/payrollnz/models/timesheet_earnings_line.py +++ b/xero_python/payrollnz/models/timesheet_earnings_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/timesheet_line.py b/xero_python/payrollnz/models/timesheet_line.py index ab1d11ca..a16a47aa 100644 --- a/xero_python/payrollnz/models/timesheet_line.py +++ b/xero_python/payrollnz/models/timesheet_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/timesheet_line_object.py b/xero_python/payrollnz/models/timesheet_line_object.py index d0e14a2f..d0ec74a0 100644 --- a/xero_python/payrollnz/models/timesheet_line_object.py +++ b/xero_python/payrollnz/models/timesheet_line_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/timesheet_object.py b/xero_python/payrollnz/models/timesheet_object.py index 647fe6c0..6bcd3169 100644 --- a/xero_python/payrollnz/models/timesheet_object.py +++ b/xero_python/payrollnz/models/timesheet_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/timesheets.py b/xero_python/payrollnz/models/timesheets.py index 90d29fd6..f2fc7a66 100644 --- a/xero_python/payrollnz/models/timesheets.py +++ b/xero_python/payrollnz/models/timesheets.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/tracking_categories.py b/xero_python/payrollnz/models/tracking_categories.py index 795681a1..2d18fe86 100644 --- a/xero_python/payrollnz/models/tracking_categories.py +++ b/xero_python/payrollnz/models/tracking_categories.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrollnz/models/tracking_category.py b/xero_python/payrollnz/models/tracking_category.py index 9646fac1..3c353f10 100644 --- a/xero_python/payrollnz/models/tracking_category.py +++ b/xero_python/payrollnz/models/tracking_category.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the NZ region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/__init__.py b/xero_python/payrolluk/__init__.py index b7562ffe..05497b10 100644 --- a/xero_python/payrolluk/__init__.py +++ b/xero_python/payrolluk/__init__.py @@ -7,7 +7,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py index 69b08c34..77e10f0f 100644 --- a/xero_python/payrolluk/api/payroll_uk_api.py +++ b/xero_python/payrolluk/api/payroll_uk_api.py @@ -5,11 +5,13 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ +""" + OpenAPI spec version: 2.8.4 +""" import importlib import re # noqa: F401 diff --git a/xero_python/payrolluk/models/__init__.py b/xero_python/payrolluk/models/__init__.py index 17bb96b7..ad69d57c 100644 --- a/xero_python/payrolluk/models/__init__.py +++ b/xero_python/payrolluk/models/__init__.py @@ -6,7 +6,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/account.py b/xero_python/payrolluk/models/account.py index a49358ca..9d35d8a2 100644 --- a/xero_python/payrolluk/models/account.py +++ b/xero_python/payrolluk/models/account.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -110,12 +109,14 @@ def type(self, type): "WAGESEXPENSE", "None", ] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type diff --git a/xero_python/payrolluk/models/accounts.py b/xero_python/payrolluk/models/accounts.py index 2d104008..6a507062 100644 --- a/xero_python/payrolluk/models/accounts.py +++ b/xero_python/payrolluk/models/accounts.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/address.py b/xero_python/payrolluk/models/address.py index 9f785938..5faf7f57 100644 --- a/xero_python/payrolluk/models/address.py +++ b/xero_python/payrolluk/models/address.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/bank_account.py b/xero_python/payrolluk/models/bank_account.py index 638625e9..58e9f2c2 100644 --- a/xero_python/payrolluk/models/bank_account.py +++ b/xero_python/payrolluk/models/bank_account.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/benefit.py b/xero_python/payrolluk/models/benefit.py index ec7cef42..bb98cc95 100644 --- a/xero_python/payrolluk/models/benefit.py +++ b/xero_python/payrolluk/models/benefit.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -199,12 +198,14 @@ def category(self, category): "Invalid value for `category`, must not be `None`" ) # noqa: E501 allowed_values = ["StakeholderPension", "Other", "None"] # noqa: E501 - if category not in allowed_values: - raise ValueError( - "Invalid value for `category` ({0}), must be one of {1}".format( # noqa: E501 - category, allowed_values + + if category: + if category not in allowed_values: + raise ValueError( + "Invalid value for `category` ({0}), must be one of {1}".format( # noqa: E501 + category, allowed_values + ) ) - ) self._category = category @@ -337,12 +338,14 @@ def calculation_type(self, calculation_type): "Invalid value for `calculation_type`, must not be `None`" ) # noqa: E501 allowed_values = ["FixedAmount", "PercentageOfGross", "None"] # noqa: E501 - if calculation_type not in allowed_values: - raise ValueError( - "Invalid value for `calculation_type` ({0}), must be one of {1}".format( # noqa: E501 - calculation_type, allowed_values + + if calculation_type: + if calculation_type not in allowed_values: + raise ValueError( + "Invalid value for `calculation_type` ({0}), must be one of {1}".format( # noqa: E501 + calculation_type, allowed_values + ) ) - ) self._calculation_type = calculation_type diff --git a/xero_python/payrolluk/models/benefit_line.py b/xero_python/payrolluk/models/benefit_line.py index 6b3ecd03..69598972 100644 --- a/xero_python/payrolluk/models/benefit_line.py +++ b/xero_python/payrolluk/models/benefit_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/benefit_object.py b/xero_python/payrolluk/models/benefit_object.py index 4ddb82e7..f5c66520 100644 --- a/xero_python/payrolluk/models/benefit_object.py +++ b/xero_python/payrolluk/models/benefit_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/benefits.py b/xero_python/payrolluk/models/benefits.py index 47040c25..9b72df0b 100644 --- a/xero_python/payrolluk/models/benefits.py +++ b/xero_python/payrolluk/models/benefits.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/court_order_line.py b/xero_python/payrolluk/models/court_order_line.py index 52dc3fb7..22c15b28 100644 --- a/xero_python/payrolluk/models/court_order_line.py +++ b/xero_python/payrolluk/models/court_order_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/deduction.py b/xero_python/payrolluk/models/deduction.py index 74244cc2..8afb6bf4 100644 --- a/xero_python/payrolluk/models/deduction.py +++ b/xero_python/payrolluk/models/deduction.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -223,12 +222,14 @@ def deduction_category(self, deduction_category): "UkOther", "None", ] # noqa: E501 - if deduction_category not in allowed_values: - raise ValueError( - "Invalid value for `deduction_category` ({0}), must be one of {1}".format( # noqa: E501 - deduction_category, allowed_values + + if deduction_category: + if deduction_category not in allowed_values: + raise ValueError( + "Invalid value for `deduction_category` ({0}), must be one of {1}".format( # noqa: E501 + deduction_category, allowed_values + ) ) - ) self._deduction_category = deduction_category @@ -372,12 +373,14 @@ def calculation_type(self, calculation_type): :type: str """ allowed_values = ["FixedAmount", "PercentageOfGross", "None"] # noqa: E501 - if calculation_type not in allowed_values: - raise ValueError( - "Invalid value for `calculation_type` ({0}), must be one of {1}".format( # noqa: E501 - calculation_type, allowed_values + + if calculation_type: + if calculation_type not in allowed_values: + raise ValueError( + "Invalid value for `calculation_type` ({0}), must be one of {1}".format( # noqa: E501 + calculation_type, allowed_values + ) ) - ) self._calculation_type = calculation_type diff --git a/xero_python/payrolluk/models/deduction_line.py b/xero_python/payrolluk/models/deduction_line.py index 6d708fd8..b1a7c593 100644 --- a/xero_python/payrolluk/models/deduction_line.py +++ b/xero_python/payrolluk/models/deduction_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/deduction_object.py b/xero_python/payrolluk/models/deduction_object.py index b17233b6..1361638e 100644 --- a/xero_python/payrolluk/models/deduction_object.py +++ b/xero_python/payrolluk/models/deduction_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/deductions.py b/xero_python/payrolluk/models/deductions.py index 604c5bfc..1a0a88c6 100644 --- a/xero_python/payrolluk/models/deductions.py +++ b/xero_python/payrolluk/models/deductions.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/earnings_line.py b/xero_python/payrolluk/models/earnings_line.py index 3d386bdd..0f6feb71 100644 --- a/xero_python/payrolluk/models/earnings_line.py +++ b/xero_python/payrolluk/models/earnings_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/earnings_order.py b/xero_python/payrolluk/models/earnings_order.py index 9f401cd3..5faa8aad 100644 --- a/xero_python/payrolluk/models/earnings_order.py +++ b/xero_python/payrolluk/models/earnings_order.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/earnings_order_object.py b/xero_python/payrolluk/models/earnings_order_object.py index 01ce03c4..82822abc 100644 --- a/xero_python/payrolluk/models/earnings_order_object.py +++ b/xero_python/payrolluk/models/earnings_order_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/earnings_orders.py b/xero_python/payrolluk/models/earnings_orders.py index 32d3fe29..4e104a76 100644 --- a/xero_python/payrolluk/models/earnings_orders.py +++ b/xero_python/payrolluk/models/earnings_orders.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/earnings_rate.py b/xero_python/payrolluk/models/earnings_rate.py index 75bdc680..1722e011 100644 --- a/xero_python/payrolluk/models/earnings_rate.py +++ b/xero_python/payrolluk/models/earnings_rate.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -191,12 +190,14 @@ def earnings_type(self, earnings_type): "Tips(Non-Direct)", "None", ] # noqa: E501 - if earnings_type not in allowed_values: - raise ValueError( - "Invalid value for `earnings_type` ({0}), must be one of {1}".format( # noqa: E501 - earnings_type, allowed_values + + if earnings_type: + if earnings_type not in allowed_values: + raise ValueError( + "Invalid value for `earnings_type` ({0}), must be one of {1}".format( # noqa: E501 + earnings_type, allowed_values + ) ) - ) self._earnings_type = earnings_type @@ -230,12 +231,14 @@ def rate_type(self, rate_type): "FixedAmount", "None", ] # noqa: E501 - if rate_type not in allowed_values: - raise ValueError( - "Invalid value for `rate_type` ({0}), must be one of {1}".format( # noqa: E501 - rate_type, allowed_values + + if rate_type: + if rate_type not in allowed_values: + raise ValueError( + "Invalid value for `rate_type` ({0}), must be one of {1}".format( # noqa: E501 + rate_type, allowed_values + ) ) - ) self._rate_type = rate_type diff --git a/xero_python/payrolluk/models/earnings_rate_object.py b/xero_python/payrolluk/models/earnings_rate_object.py index c167ced9..d469f668 100644 --- a/xero_python/payrolluk/models/earnings_rate_object.py +++ b/xero_python/payrolluk/models/earnings_rate_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/earnings_rates.py b/xero_python/payrolluk/models/earnings_rates.py index 33a6fc18..2200b480 100644 --- a/xero_python/payrolluk/models/earnings_rates.py +++ b/xero_python/payrolluk/models/earnings_rates.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/earnings_template.py b/xero_python/payrolluk/models/earnings_template.py index f95ffdef..12282cd0 100644 --- a/xero_python/payrolluk/models/earnings_template.py +++ b/xero_python/payrolluk/models/earnings_template.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/earnings_template_object.py b/xero_python/payrolluk/models/earnings_template_object.py index 2e818d0d..3f5e0856 100644 --- a/xero_python/payrolluk/models/earnings_template_object.py +++ b/xero_python/payrolluk/models/earnings_template_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee.py b/xero_python/payrolluk/models/employee.py index 1fab093e..ea109e38 100644 --- a/xero_python/payrolluk/models/employee.py +++ b/xero_python/payrolluk/models/employee.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -314,12 +313,14 @@ def gender(self, gender): :type: str """ allowed_values = ["M", "F", "None"] # noqa: E501 - if gender not in allowed_values: - raise ValueError( - "Invalid value for `gender` ({0}), must be one of {1}".format( # noqa: E501 - gender, allowed_values + + if gender: + if gender not in allowed_values: + raise ValueError( + "Invalid value for `gender` ({0}), must be one of {1}".format( # noqa: E501 + gender, allowed_values + ) ) - ) self._gender = gender diff --git a/xero_python/payrolluk/models/employee_leave.py b/xero_python/payrolluk/models/employee_leave.py index c19d4aa9..4d2dafc6 100644 --- a/xero_python/payrolluk/models/employee_leave.py +++ b/xero_python/payrolluk/models/employee_leave.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_leave_balance.py b/xero_python/payrolluk/models/employee_leave_balance.py index 187f79d4..9f12cd9d 100644 --- a/xero_python/payrolluk/models/employee_leave_balance.py +++ b/xero_python/payrolluk/models/employee_leave_balance.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_leave_balances.py b/xero_python/payrolluk/models/employee_leave_balances.py index 35217bd1..2ad547a2 100644 --- a/xero_python/payrolluk/models/employee_leave_balances.py +++ b/xero_python/payrolluk/models/employee_leave_balances.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_leave_object.py b/xero_python/payrolluk/models/employee_leave_object.py index e84b4e2c..2db020d6 100644 --- a/xero_python/payrolluk/models/employee_leave_object.py +++ b/xero_python/payrolluk/models/employee_leave_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_leave_type.py b/xero_python/payrolluk/models/employee_leave_type.py index 23e59904..c78c577a 100644 --- a/xero_python/payrolluk/models/employee_leave_type.py +++ b/xero_python/payrolluk/models/employee_leave_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -136,12 +135,14 @@ def schedule_of_accrual(self, schedule_of_accrual): "OnHourWorked", "None", ] # noqa: E501 - if schedule_of_accrual not in allowed_values: - raise ValueError( - "Invalid value for `schedule_of_accrual` ({0}), must be one of {1}".format( # noqa: E501 - schedule_of_accrual, allowed_values + + if schedule_of_accrual: + if schedule_of_accrual not in allowed_values: + raise ValueError( + "Invalid value for `schedule_of_accrual` ({0}), must be one of {1}".format( # noqa: E501 + schedule_of_accrual, allowed_values + ) ) - ) self._schedule_of_accrual = schedule_of_accrual diff --git a/xero_python/payrolluk/models/employee_leave_type_object.py b/xero_python/payrolluk/models/employee_leave_type_object.py index 014af7cd..352b44d1 100644 --- a/xero_python/payrolluk/models/employee_leave_type_object.py +++ b/xero_python/payrolluk/models/employee_leave_type_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_leave_types.py b/xero_python/payrolluk/models/employee_leave_types.py index b65df498..72e821f5 100644 --- a/xero_python/payrolluk/models/employee_leave_types.py +++ b/xero_python/payrolluk/models/employee_leave_types.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_leaves.py b/xero_python/payrolluk/models/employee_leaves.py index d7defbaa..bb546eb7 100644 --- a/xero_python/payrolluk/models/employee_leaves.py +++ b/xero_python/payrolluk/models/employee_leaves.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_object.py b/xero_python/payrolluk/models/employee_object.py index 37f2b23a..d2530f9f 100644 --- a/xero_python/payrolluk/models/employee_object.py +++ b/xero_python/payrolluk/models/employee_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_opening_balances.py b/xero_python/payrolluk/models/employee_opening_balances.py index 66baaa61..36a8d1d3 100644 --- a/xero_python/payrolluk/models/employee_opening_balances.py +++ b/xero_python/payrolluk/models/employee_opening_balances.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_opening_balances_object.py b/xero_python/payrolluk/models/employee_opening_balances_object.py index e44aa5f7..d289daeb 100644 --- a/xero_python/payrolluk/models/employee_opening_balances_object.py +++ b/xero_python/payrolluk/models/employee_opening_balances_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_pay_template.py b/xero_python/payrolluk/models/employee_pay_template.py index d65e2010..800ae4b5 100644 --- a/xero_python/payrolluk/models/employee_pay_template.py +++ b/xero_python/payrolluk/models/employee_pay_template.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_pay_template_object.py b/xero_python/payrolluk/models/employee_pay_template_object.py index d41ee9cc..657ae88f 100644 --- a/xero_python/payrolluk/models/employee_pay_template_object.py +++ b/xero_python/payrolluk/models/employee_pay_template_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_pay_templates.py b/xero_python/payrolluk/models/employee_pay_templates.py index 4b1e4d09..9c9867bf 100644 --- a/xero_python/payrolluk/models/employee_pay_templates.py +++ b/xero_python/payrolluk/models/employee_pay_templates.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_statutory_leave_balance.py b/xero_python/payrolluk/models/employee_statutory_leave_balance.py index 48621d74..a88f6af1 100644 --- a/xero_python/payrolluk/models/employee_statutory_leave_balance.py +++ b/xero_python/payrolluk/models/employee_statutory_leave_balance.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -83,12 +82,14 @@ def leave_type(self, leave_type): "Sharedparental", "None", ] # noqa: E501 - if leave_type not in allowed_values: - raise ValueError( - "Invalid value for `leave_type` ({0}), must be one of {1}".format( # noqa: E501 - leave_type, allowed_values + + if leave_type: + if leave_type not in allowed_values: + raise ValueError( + "Invalid value for `leave_type` ({0}), must be one of {1}".format( # noqa: E501 + leave_type, allowed_values + ) ) - ) self._leave_type = leave_type @@ -136,11 +137,13 @@ def units(self, units): :type: str """ allowed_values = ["Hours", "None"] # noqa: E501 - if units not in allowed_values: - raise ValueError( - "Invalid value for `units` ({0}), must be one of {1}".format( # noqa: E501 - units, allowed_values + + if units: + if units not in allowed_values: + raise ValueError( + "Invalid value for `units` ({0}), must be one of {1}".format( # noqa: E501 + units, allowed_values + ) ) - ) self._units = units diff --git a/xero_python/payrolluk/models/employee_statutory_leave_balance_object.py b/xero_python/payrolluk/models/employee_statutory_leave_balance_object.py index 77606023..809f4f7d 100644 --- a/xero_python/payrolluk/models/employee_statutory_leave_balance_object.py +++ b/xero_python/payrolluk/models/employee_statutory_leave_balance_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_statutory_leave_summary.py b/xero_python/payrolluk/models/employee_statutory_leave_summary.py index c6264d87..847dc5ac 100644 --- a/xero_python/payrolluk/models/employee_statutory_leave_summary.py +++ b/xero_python/payrolluk/models/employee_statutory_leave_summary.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -160,12 +159,14 @@ def type(self, type): "Sharedparental", "None", ] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 - type, allowed_values + + if type: + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501 + type, allowed_values + ) ) - ) self._type = type @@ -259,11 +260,13 @@ def status(self, status): :type: str """ allowed_values = ["Pending", "In-Progress", "Completed", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/payrolluk/models/employee_statutory_leaves_summaries.py b/xero_python/payrolluk/models/employee_statutory_leaves_summaries.py index 3252b8a2..960dc00b 100644 --- a/xero_python/payrolluk/models/employee_statutory_leaves_summaries.py +++ b/xero_python/payrolluk/models/employee_statutory_leaves_summaries.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_statutory_sick_leave.py b/xero_python/payrolluk/models/employee_statutory_sick_leave.py index fdeea9c9..e23e726d 100644 --- a/xero_python/payrolluk/models/employee_statutory_sick_leave.py +++ b/xero_python/payrolluk/models/employee_statutory_sick_leave.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_statutory_sick_leave_object.py b/xero_python/payrolluk/models/employee_statutory_sick_leave_object.py index d157c749..9dcc9f61 100644 --- a/xero_python/payrolluk/models/employee_statutory_sick_leave_object.py +++ b/xero_python/payrolluk/models/employee_statutory_sick_leave_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_statutory_sick_leaves.py b/xero_python/payrolluk/models/employee_statutory_sick_leaves.py index 8efed23b..03deef03 100644 --- a/xero_python/payrolluk/models/employee_statutory_sick_leaves.py +++ b/xero_python/payrolluk/models/employee_statutory_sick_leaves.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_tax.py b/xero_python/payrolluk/models/employee_tax.py index 717fea69..907cb863 100644 --- a/xero_python/payrolluk/models/employee_tax.py +++ b/xero_python/payrolluk/models/employee_tax.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employee_tax_object.py b/xero_python/payrolluk/models/employee_tax_object.py index 0a4d01f1..88381c48 100644 --- a/xero_python/payrolluk/models/employee_tax_object.py +++ b/xero_python/payrolluk/models/employee_tax_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employees.py b/xero_python/payrolluk/models/employees.py index d2f15145..6bc094f7 100644 --- a/xero_python/payrolluk/models/employees.py +++ b/xero_python/payrolluk/models/employees.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/employment.py b/xero_python/payrolluk/models/employment.py index 39c80dd6..d31b4a1d 100644 --- a/xero_python/payrolluk/models/employment.py +++ b/xero_python/payrolluk/models/employment.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -158,11 +157,13 @@ def ni_category(self, ni_category): :type: str """ allowed_values = ["A", "B", "C", "H", "J", "M", "Z", "X", "None"] # noqa: E501 - if ni_category not in allowed_values: - raise ValueError( - "Invalid value for `ni_category` ({0}), must be one of {1}".format( # noqa: E501 - ni_category, allowed_values + + if ni_category: + if ni_category not in allowed_values: + raise ValueError( + "Invalid value for `ni_category` ({0}), must be one of {1}".format( # noqa: E501 + ni_category, allowed_values + ) ) - ) self._ni_category = ni_category diff --git a/xero_python/payrolluk/models/employment_object.py b/xero_python/payrolluk/models/employment_object.py index c852dc32..31e839ed 100644 --- a/xero_python/payrolluk/models/employment_object.py +++ b/xero_python/payrolluk/models/employment_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/invalid_field.py b/xero_python/payrolluk/models/invalid_field.py index da41c768..ec0371a1 100644 --- a/xero_python/payrolluk/models/invalid_field.py +++ b/xero_python/payrolluk/models/invalid_field.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/leave_accrual_line.py b/xero_python/payrolluk/models/leave_accrual_line.py index afffb75d..d3216125 100644 --- a/xero_python/payrolluk/models/leave_accrual_line.py +++ b/xero_python/payrolluk/models/leave_accrual_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/leave_earnings_line.py b/xero_python/payrolluk/models/leave_earnings_line.py index 6ee91625..d2a9e2d2 100644 --- a/xero_python/payrolluk/models/leave_earnings_line.py +++ b/xero_python/payrolluk/models/leave_earnings_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/leave_period.py b/xero_python/payrolluk/models/leave_period.py index 2a70c383..725239c4 100644 --- a/xero_python/payrolluk/models/leave_period.py +++ b/xero_python/payrolluk/models/leave_period.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -158,11 +157,13 @@ def period_status(self, period_status): :type: str """ allowed_values = ["Approved", "Completed", "None"] # noqa: E501 - if period_status not in allowed_values: - raise ValueError( - "Invalid value for `period_status` ({0}), must be one of {1}".format( # noqa: E501 - period_status, allowed_values + + if period_status: + if period_status not in allowed_values: + raise ValueError( + "Invalid value for `period_status` ({0}), must be one of {1}".format( # noqa: E501 + period_status, allowed_values + ) ) - ) self._period_status = period_status diff --git a/xero_python/payrolluk/models/leave_periods.py b/xero_python/payrolluk/models/leave_periods.py index dcf2442d..00da74ff 100644 --- a/xero_python/payrolluk/models/leave_periods.py +++ b/xero_python/payrolluk/models/leave_periods.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/leave_type.py b/xero_python/payrolluk/models/leave_type.py index 574a4fb0..3d2c80fb 100644 --- a/xero_python/payrolluk/models/leave_type.py +++ b/xero_python/payrolluk/models/leave_type.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/leave_type_object.py b/xero_python/payrolluk/models/leave_type_object.py index 6e03b96b..d6f0f291 100644 --- a/xero_python/payrolluk/models/leave_type_object.py +++ b/xero_python/payrolluk/models/leave_type_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/leave_types.py b/xero_python/payrolluk/models/leave_types.py index 97587925..4a16497b 100644 --- a/xero_python/payrolluk/models/leave_types.py +++ b/xero_python/payrolluk/models/leave_types.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/pagination.py b/xero_python/payrolluk/models/pagination.py index 52d3a05e..d9cdc10b 100644 --- a/xero_python/payrolluk/models/pagination.py +++ b/xero_python/payrolluk/models/pagination.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/pay_run.py b/xero_python/payrolluk/models/pay_run.py index 153a6738..9f96a82c 100644 --- a/xero_python/payrolluk/models/pay_run.py +++ b/xero_python/payrolluk/models/pay_run.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -298,12 +297,14 @@ def pay_run_status(self, pay_run_status): :type: str """ allowed_values = ["Draft", "Posted", "None"] # noqa: E501 - if pay_run_status not in allowed_values: - raise ValueError( - "Invalid value for `pay_run_status` ({0}), must be one of {1}".format( # noqa: E501 - pay_run_status, allowed_values + + if pay_run_status: + if pay_run_status not in allowed_values: + raise ValueError( + "Invalid value for `pay_run_status` ({0}), must be one of {1}".format( # noqa: E501 + pay_run_status, allowed_values + ) ) - ) self._pay_run_status = pay_run_status @@ -333,12 +334,14 @@ def pay_run_type(self, pay_run_type): "EarlierYearUpdate", "None", ] # noqa: E501 - if pay_run_type not in allowed_values: - raise ValueError( - "Invalid value for `pay_run_type` ({0}), must be one of {1}".format( # noqa: E501 - pay_run_type, allowed_values + + if pay_run_type: + if pay_run_type not in allowed_values: + raise ValueError( + "Invalid value for `pay_run_type` ({0}), must be one of {1}".format( # noqa: E501 + pay_run_type, allowed_values + ) ) - ) self._pay_run_type = pay_run_type @@ -371,12 +374,14 @@ def calendar_type(self, calendar_type): "Quarterly", "None", ] # noqa: E501 - if calendar_type not in allowed_values: - raise ValueError( - "Invalid value for `calendar_type` ({0}), must be one of {1}".format( # noqa: E501 - calendar_type, allowed_values + + if calendar_type: + if calendar_type not in allowed_values: + raise ValueError( + "Invalid value for `calendar_type` ({0}), must be one of {1}".format( # noqa: E501 + calendar_type, allowed_values + ) ) - ) self._calendar_type = calendar_type diff --git a/xero_python/payrolluk/models/pay_run_calendar.py b/xero_python/payrolluk/models/pay_run_calendar.py index bf959ad1..76d93a06 100644 --- a/xero_python/payrolluk/models/pay_run_calendar.py +++ b/xero_python/payrolluk/models/pay_run_calendar.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -165,12 +164,14 @@ def calendar_type(self, calendar_type): "Quarterly", "None", ] # noqa: E501 - if calendar_type not in allowed_values: - raise ValueError( - "Invalid value for `calendar_type` ({0}), must be one of {1}".format( # noqa: E501 - calendar_type, allowed_values + + if calendar_type: + if calendar_type not in allowed_values: + raise ValueError( + "Invalid value for `calendar_type` ({0}), must be one of {1}".format( # noqa: E501 + calendar_type, allowed_values + ) ) - ) self._calendar_type = calendar_type diff --git a/xero_python/payrolluk/models/pay_run_calendar_object.py b/xero_python/payrolluk/models/pay_run_calendar_object.py index 0f95f86c..483a9c9a 100644 --- a/xero_python/payrolluk/models/pay_run_calendar_object.py +++ b/xero_python/payrolluk/models/pay_run_calendar_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/pay_run_calendars.py b/xero_python/payrolluk/models/pay_run_calendars.py index f3cd3b8f..d9b39182 100644 --- a/xero_python/payrolluk/models/pay_run_calendars.py +++ b/xero_python/payrolluk/models/pay_run_calendars.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/pay_run_object.py b/xero_python/payrolluk/models/pay_run_object.py index f24ef22f..a64898da 100644 --- a/xero_python/payrolluk/models/pay_run_object.py +++ b/xero_python/payrolluk/models/pay_run_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/pay_runs.py b/xero_python/payrolluk/models/pay_runs.py index a373e9f3..52d7b96b 100644 --- a/xero_python/payrolluk/models/pay_runs.py +++ b/xero_python/payrolluk/models/pay_runs.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/payment_line.py b/xero_python/payrolluk/models/payment_line.py index 1c8f5bcf..781ba8e9 100644 --- a/xero_python/payrolluk/models/payment_line.py +++ b/xero_python/payrolluk/models/payment_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/payment_method.py b/xero_python/payrolluk/models/payment_method.py index 0817aceb..89a09cfb 100644 --- a/xero_python/payrolluk/models/payment_method.py +++ b/xero_python/payrolluk/models/payment_method.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -70,12 +69,14 @@ def payment_method(self, payment_method): "Invalid value for `payment_method`, must not be `None`" ) # noqa: E501 allowed_values = ["Cheque", "Electronically", "Manual", "None"] # noqa: E501 - if payment_method not in allowed_values: - raise ValueError( - "Invalid value for `payment_method` ({0}), must be one of {1}".format( # noqa: E501 - payment_method, allowed_values + + if payment_method: + if payment_method not in allowed_values: + raise ValueError( + "Invalid value for `payment_method` ({0}), must be one of {1}".format( # noqa: E501 + payment_method, allowed_values + ) ) - ) self._payment_method = payment_method diff --git a/xero_python/payrolluk/models/payment_method_object.py b/xero_python/payrolluk/models/payment_method_object.py index c9879c55..6d7b7a28 100644 --- a/xero_python/payrolluk/models/payment_method_object.py +++ b/xero_python/payrolluk/models/payment_method_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/payslip.py b/xero_python/payrolluk/models/payslip.py index fc5aee5b..cfb76a96 100644 --- a/xero_python/payrolluk/models/payslip.py +++ b/xero_python/payrolluk/models/payslip.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -601,12 +600,14 @@ def payment_method(self, payment_method): :type: str """ allowed_values = ["Cheque", "Electronically", "Manual", "None"] # noqa: E501 - if payment_method not in allowed_values: - raise ValueError( - "Invalid value for `payment_method` ({0}), must be one of {1}".format( # noqa: E501 - payment_method, allowed_values + + if payment_method: + if payment_method not in allowed_values: + raise ValueError( + "Invalid value for `payment_method` ({0}), must be one of {1}".format( # noqa: E501 + payment_method, allowed_values + ) ) - ) self._payment_method = payment_method diff --git a/xero_python/payrolluk/models/payslip_object.py b/xero_python/payrolluk/models/payslip_object.py index 4521fbef..07a5a831 100644 --- a/xero_python/payrolluk/models/payslip_object.py +++ b/xero_python/payrolluk/models/payslip_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/payslips.py b/xero_python/payrolluk/models/payslips.py index 361272e1..2bfe9b9b 100644 --- a/xero_python/payrolluk/models/payslips.py +++ b/xero_python/payrolluk/models/payslips.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/problem.py b/xero_python/payrolluk/models/problem.py index b489fc68..87d8dd7c 100644 --- a/xero_python/payrolluk/models/problem.py +++ b/xero_python/payrolluk/models/problem.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/reimbursement.py b/xero_python/payrolluk/models/reimbursement.py index 7c3f2604..2de7616b 100644 --- a/xero_python/payrolluk/models/reimbursement.py +++ b/xero_python/payrolluk/models/reimbursement.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/reimbursement_line.py b/xero_python/payrolluk/models/reimbursement_line.py index a75cc7ee..dac66d7b 100644 --- a/xero_python/payrolluk/models/reimbursement_line.py +++ b/xero_python/payrolluk/models/reimbursement_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/reimbursement_object.py b/xero_python/payrolluk/models/reimbursement_object.py index 6f1923d2..ee0bb1ca 100644 --- a/xero_python/payrolluk/models/reimbursement_object.py +++ b/xero_python/payrolluk/models/reimbursement_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/reimbursements.py b/xero_python/payrolluk/models/reimbursements.py index 126f1a81..17383e1d 100644 --- a/xero_python/payrolluk/models/reimbursements.py +++ b/xero_python/payrolluk/models/reimbursements.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/salary_and_wage.py b/xero_python/payrolluk/models/salary_and_wage.py index bf175152..d237c36f 100644 --- a/xero_python/payrolluk/models/salary_and_wage.py +++ b/xero_python/payrolluk/models/salary_and_wage.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -294,12 +293,14 @@ def status(self, status): "Invalid value for `status`, must not be `None`" ) # noqa: E501 allowed_values = ["Active", "Pending", "History", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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 @@ -328,11 +329,13 @@ def payment_type(self, payment_type): "Invalid value for `payment_type`, must not be `None`" ) # noqa: E501 allowed_values = ["Salary", "None"] # noqa: E501 - if payment_type not in allowed_values: - raise ValueError( - "Invalid value for `payment_type` ({0}), must be one of {1}".format( # noqa: E501 - payment_type, allowed_values + + if payment_type: + if payment_type not in allowed_values: + raise ValueError( + "Invalid value for `payment_type` ({0}), must be one of {1}".format( # noqa: E501 + payment_type, allowed_values + ) ) - ) self._payment_type = payment_type diff --git a/xero_python/payrolluk/models/salary_and_wage_object.py b/xero_python/payrolluk/models/salary_and_wage_object.py index bac8c6c7..5021e9c3 100644 --- a/xero_python/payrolluk/models/salary_and_wage_object.py +++ b/xero_python/payrolluk/models/salary_and_wage_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/salary_and_wages.py b/xero_python/payrolluk/models/salary_and_wages.py index 27970aa5..3e9c5165 100644 --- a/xero_python/payrolluk/models/salary_and_wages.py +++ b/xero_python/payrolluk/models/salary_and_wages.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/settings.py b/xero_python/payrolluk/models/settings.py index 5024e329..8788dbba 100644 --- a/xero_python/payrolluk/models/settings.py +++ b/xero_python/payrolluk/models/settings.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/statutory_deduction.py b/xero_python/payrolluk/models/statutory_deduction.py index 7ee95690..e1196d7b 100644 --- a/xero_python/payrolluk/models/statutory_deduction.py +++ b/xero_python/payrolluk/models/statutory_deduction.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/statutory_deduction_category.py b/xero_python/payrolluk/models/statutory_deduction_category.py index 61a4a838..499c95ee 100644 --- a/xero_python/payrolluk/models/statutory_deduction_category.py +++ b/xero_python/payrolluk/models/statutory_deduction_category.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/tax_line.py b/xero_python/payrolluk/models/tax_line.py index c5e50b58..58a1b680 100644 --- a/xero_python/payrolluk/models/tax_line.py +++ b/xero_python/payrolluk/models/tax_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/timesheet.py b/xero_python/payrolluk/models/timesheet.py index 6c1a25e3..93da4472 100644 --- a/xero_python/payrolluk/models/timesheet.py +++ b/xero_python/payrolluk/models/timesheet.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -246,12 +245,14 @@ def status(self, status): :type: str """ allowed_values = ["Draft", "Approved", "Completed", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/payrolluk/models/timesheet_earnings_line.py b/xero_python/payrolluk/models/timesheet_earnings_line.py index 3111c784..d016619f 100644 --- a/xero_python/payrolluk/models/timesheet_earnings_line.py +++ b/xero_python/payrolluk/models/timesheet_earnings_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/timesheet_line.py b/xero_python/payrolluk/models/timesheet_line.py index 3710d60d..9ab789e9 100644 --- a/xero_python/payrolluk/models/timesheet_line.py +++ b/xero_python/payrolluk/models/timesheet_line.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/timesheet_line_object.py b/xero_python/payrolluk/models/timesheet_line_object.py index 326b9a35..349b5170 100644 --- a/xero_python/payrolluk/models/timesheet_line_object.py +++ b/xero_python/payrolluk/models/timesheet_line_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/timesheet_object.py b/xero_python/payrolluk/models/timesheet_object.py index 35361b5b..f8f2f3d1 100644 --- a/xero_python/payrolluk/models/timesheet_object.py +++ b/xero_python/payrolluk/models/timesheet_object.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/timesheets.py b/xero_python/payrolluk/models/timesheets.py index 78065fc5..2e7cef7c 100644 --- a/xero_python/payrolluk/models/timesheets.py +++ b/xero_python/payrolluk/models/timesheets.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/tracking_categories.py b/xero_python/payrolluk/models/tracking_categories.py index 18986597..91f1743c 100644 --- a/xero_python/payrolluk/models/tracking_categories.py +++ b/xero_python/payrolluk/models/tracking_categories.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/payrolluk/models/tracking_category.py b/xero_python/payrolluk/models/tracking_category.py index 4630afea..00f19ad3 100644 --- a/xero_python/payrolluk/models/tracking_category.py +++ b/xero_python/payrolluk/models/tracking_category.py @@ -5,7 +5,6 @@ This is the Xero Payroll API for orgs in the UK region. # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/__init__.py b/xero_python/project/__init__.py index 6a26c87b..022237df 100644 --- a/xero_python/project/__init__.py +++ b/xero_python/project/__init__.py @@ -7,7 +7,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py index 33990ae4..4bfda777 100644 --- a/xero_python/project/api/project_api.py +++ b/xero_python/project/api/project_api.py @@ -5,11 +5,13 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ +""" + OpenAPI spec version: 2.8.4 +""" import importlib import re # noqa: F401 diff --git a/xero_python/project/models/__init__.py b/xero_python/project/models/__init__.py index 504e4911..44e170f1 100644 --- a/xero_python/project/models/__init__.py +++ b/xero_python/project/models/__init__.py @@ -6,7 +6,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/amount.py b/xero_python/project/models/amount.py index 19d10262..b1953818 100644 --- a/xero_python/project/models/amount.py +++ b/xero_python/project/models/amount.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/charge_type.py b/xero_python/project/models/charge_type.py index 3e497221..94e30a15 100644 --- a/xero_python/project/models/charge_type.py +++ b/xero_python/project/models/charge_type.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/currency_code.py b/xero_python/project/models/currency_code.py index f07c92bd..be0693ad 100644 --- a/xero_python/project/models/currency_code.py +++ b/xero_python/project/models/currency_code.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/error.py b/xero_python/project/models/error.py index f71fab8e..d11c925a 100644 --- a/xero_python/project/models/error.py +++ b/xero_python/project/models/error.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/pagination.py b/xero_python/project/models/pagination.py index 6bc4038b..858f2cea 100644 --- a/xero_python/project/models/pagination.py +++ b/xero_python/project/models/pagination.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/project.py b/xero_python/project/models/project.py index 34544c26..59aab234 100644 --- a/xero_python/project/models/project.py +++ b/xero_python/project/models/project.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/project_create_or_update.py b/xero_python/project/models/project_create_or_update.py index 2f8c13dd..50c032d7 100644 --- a/xero_python/project/models/project_create_or_update.py +++ b/xero_python/project/models/project_create_or_update.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/project_patch.py b/xero_python/project/models/project_patch.py index e56ffaf4..0e5fbaa6 100644 --- a/xero_python/project/models/project_patch.py +++ b/xero_python/project/models/project_patch.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/project_status.py b/xero_python/project/models/project_status.py index 1386600d..47dc5d1f 100644 --- a/xero_python/project/models/project_status.py +++ b/xero_python/project/models/project_status.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/project_user.py b/xero_python/project/models/project_user.py index bc480bc5..758c9c84 100644 --- a/xero_python/project/models/project_user.py +++ b/xero_python/project/models/project_user.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/project_users.py b/xero_python/project/models/project_users.py index bb05cf1c..c414e8e5 100644 --- a/xero_python/project/models/project_users.py +++ b/xero_python/project/models/project_users.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/projects.py b/xero_python/project/models/projects.py index ab8e399e..c2d76485 100644 --- a/xero_python/project/models/projects.py +++ b/xero_python/project/models/projects.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/task.py b/xero_python/project/models/task.py index 31e20f4d..8faa5c28 100644 --- a/xero_python/project/models/task.py +++ b/xero_python/project/models/task.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -467,11 +466,13 @@ def status(self, status): :type: str """ allowed_values = ["ACTIVE", "INVOICED", "LOCKED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/project/models/task_create_or_update.py b/xero_python/project/models/task_create_or_update.py index b3b1ce60..1850094b 100644 --- a/xero_python/project/models/task_create_or_update.py +++ b/xero_python/project/models/task_create_or_update.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/tasks.py b/xero_python/project/models/tasks.py index 7c44d965..b6dd038d 100644 --- a/xero_python/project/models/tasks.py +++ b/xero_python/project/models/tasks.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/time_entries.py b/xero_python/project/models/time_entries.py index 517d2175..1147f620 100644 --- a/xero_python/project/models/time_entries.py +++ b/xero_python/project/models/time_entries.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/project/models/time_entry.py b/xero_python/project/models/time_entry.py index d346fa29..48bb004d 100644 --- a/xero_python/project/models/time_entry.py +++ b/xero_python/project/models/time_entry.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -303,11 +302,13 @@ def status(self, status): :type: str """ allowed_values = ["ACTIVE", "LOCKED", "None"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 - status, allowed_values + + 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/project/models/time_entry_create_or_update.py b/xero_python/project/models/time_entry_create_or_update.py index 03eb7244..2d78afb2 100644 --- a/xero_python/project/models/time_entry_create_or_update.py +++ b/xero_python/project/models/time_entry_create_or_update.py @@ -5,7 +5,6 @@ This is the Xero Projects API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/rest.py b/xero_python/rest.py index 173eed54..6cd82f0a 100644 --- a/xero_python/rest.py +++ b/xero_python/rest.py @@ -5,7 +5,6 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.7.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """