From 1ca622e14e4a85d4245543cc90f7ae53b7fcf195 Mon Sep 17 00:00:00 2001 From: SidneyAllen Date: Tue, 26 May 2020 17:46:36 -0700 Subject: [PATCH] update with version 2.1.6 of OpenAPI spec --- bin/post-generation-hook.sh | 2 +- setup.py | 2 +- xero_python/__init__.py | 2 +- xero_python/accounting/__init__.py | 2 +- xero_python/accounting/api/accounting_api.py | 1640 ++++++++++++----- xero_python/accounting/docs/AccountingApi.md | 128 +- xero_python/accounting/docs/BankTransfer.md | 2 +- xero_python/accounting/docs/Contact.md | 2 +- xero_python/accounting/docs/CreditNote.md | 2 +- xero_python/accounting/docs/Invoice.md | 2 +- xero_python/accounting/docs/Payment.md | 5 +- xero_python/accounting/models/__init__.py | 2 +- xero_python/accounting/models/account.py | 2 +- xero_python/accounting/models/account_type.py | 2 +- xero_python/accounting/models/accounts.py | 2 +- .../accounting/models/accounts_payable.py | 2 +- .../accounting/models/accounts_receivable.py | 2 +- xero_python/accounting/models/address.py | 2 +- xero_python/accounting/models/allocation.py | 2 +- xero_python/accounting/models/allocations.py | 2 +- xero_python/accounting/models/attachment.py | 2 +- xero_python/accounting/models/attachments.py | 2 +- xero_python/accounting/models/balances.py | 2 +- .../accounting/models/bank_transaction.py | 2 +- .../accounting/models/bank_transactions.py | 2 +- .../accounting/models/bank_transfer.py | 8 +- .../accounting/models/bank_transfers.py | 2 +- .../accounting/models/batch_payment.py | 2 +- .../models/batch_payment_details.py | 2 +- .../accounting/models/batch_payments.py | 2 +- xero_python/accounting/models/bill.py | 2 +- .../accounting/models/branding_theme.py | 2 +- .../accounting/models/branding_themes.py | 2 +- .../accounting/models/cis_org_setting.py | 2 +- xero_python/accounting/models/cis_setting.py | 2 +- xero_python/accounting/models/cis_settings.py | 2 +- xero_python/accounting/models/contact.py | 4 +- .../accounting/models/contact_group.py | 2 +- .../accounting/models/contact_groups.py | 2 +- .../accounting/models/contact_person.py | 2 +- xero_python/accounting/models/contacts.py | 2 +- xero_python/accounting/models/country_code.py | 2 +- xero_python/accounting/models/credit_note.py | 4 +- xero_python/accounting/models/credit_notes.py | 2 +- xero_python/accounting/models/currencies.py | 2 +- xero_python/accounting/models/currency.py | 2 +- .../accounting/models/currency_code.py | 2 +- xero_python/accounting/models/element.py | 2 +- xero_python/accounting/models/employee.py | 2 +- xero_python/accounting/models/employees.py | 2 +- xero_python/accounting/models/error.py | 2 +- .../accounting/models/expense_claim.py | 11 +- .../accounting/models/expense_claims.py | 2 +- .../accounting/models/external_link.py | 2 +- .../accounting/models/history_record.py | 2 +- .../accounting/models/history_records.py | 2 +- xero_python/accounting/models/invoice.py | 4 +- .../accounting/models/invoice_reminder.py | 2 +- .../accounting/models/invoice_reminders.py | 2 +- xero_python/accounting/models/invoices.py | 2 +- xero_python/accounting/models/item.py | 2 +- xero_python/accounting/models/items.py | 2 +- xero_python/accounting/models/journal.py | 2 +- xero_python/accounting/models/journal_line.py | 2 +- xero_python/accounting/models/journals.py | 2 +- .../accounting/models/line_amount_types.py | 2 +- xero_python/accounting/models/line_item.py | 2 +- .../accounting/models/line_item_tracking.py | 2 +- .../accounting/models/linked_transaction.py | 2 +- .../accounting/models/linked_transactions.py | 2 +- .../accounting/models/manual_journal.py | 2 +- .../accounting/models/manual_journal_line.py | 2 +- .../accounting/models/manual_journals.py | 2 +- .../accounting/models/online_invoice.py | 2 +- .../accounting/models/online_invoices.py | 2 +- xero_python/accounting/models/organisation.py | 2 +- .../accounting/models/organisations.py | 2 +- xero_python/accounting/models/overpayment.py | 2 +- xero_python/accounting/models/overpayments.py | 2 +- xero_python/accounting/models/payment.py | 35 +- .../accounting/models/payment_delete.py | 2 +- .../accounting/models/payment_service.py | 2 +- .../accounting/models/payment_services.py | 2 +- xero_python/accounting/models/payment_term.py | 2 +- .../accounting/models/payment_term_type.py | 2 +- xero_python/accounting/models/payments.py | 2 +- xero_python/accounting/models/phone.py | 2 +- xero_python/accounting/models/prepayment.py | 2 +- xero_python/accounting/models/prepayments.py | 2 +- xero_python/accounting/models/purchase.py | 2 +- .../accounting/models/purchase_order.py | 2 +- .../accounting/models/purchase_orders.py | 2 +- xero_python/accounting/models/quote.py | 2 +- .../models/quote_line_amount_types.py | 2 +- .../accounting/models/quote_status_codes.py | 2 +- xero_python/accounting/models/quotes.py | 2 +- xero_python/accounting/models/receipt.py | 2 +- xero_python/accounting/models/receipts.py | 2 +- .../accounting/models/repeating_invoice.py | 2 +- .../accounting/models/repeating_invoices.py | 2 +- xero_python/accounting/models/report.py | 2 +- .../accounting/models/report_attribute.py | 2 +- xero_python/accounting/models/report_cell.py | 2 +- .../accounting/models/report_fields.py | 2 +- xero_python/accounting/models/report_row.py | 2 +- xero_python/accounting/models/report_rows.py | 2 +- .../accounting/models/report_with_row.py | 2 +- .../accounting/models/report_with_rows.py | 2 +- xero_python/accounting/models/reports.py | 2 +- .../accounting/models/request_empty.py | 2 +- xero_python/accounting/models/row_type.py | 2 +- .../models/sales_tracking_category.py | 2 +- xero_python/accounting/models/schedule.py | 2 +- .../accounting/models/tax_component.py | 2 +- xero_python/accounting/models/tax_rate.py | 2 +- xero_python/accounting/models/tax_rates.py | 2 +- xero_python/accounting/models/tax_type.py | 2 +- .../models/ten_nintey_nine_contact.py | 2 +- xero_python/accounting/models/time_zone.py | 2 +- .../accounting/models/tracking_categories.py | 2 +- .../accounting/models/tracking_category.py | 2 +- .../accounting/models/tracking_option.py | 2 +- .../accounting/models/tracking_options.py | 2 +- xero_python/accounting/models/user.py | 2 +- xero_python/accounting/models/users.py | 2 +- .../accounting/models/validation_error.py | 2 +- xero_python/docs/README.md | 4 +- xero_python/identity/__init__.py | 2 +- xero_python/identity/api/identity_api.py | 16 +- xero_python/identity/docs/Connection.md | 5 +- xero_python/identity/docs/IdentityApi.md | 10 +- xero_python/identity/models/__init__.py | 2 +- xero_python/identity/models/access_token.py | 2 +- xero_python/identity/models/connection.py | 43 +- xero_python/identity/models/refresh_token.py | 2 +- xero_python/rest.py | 2 +- 136 files changed, 1500 insertions(+), 661 deletions(-) diff --git a/bin/post-generation-hook.sh b/bin/post-generation-hook.sh index c4b11d12..4e89c606 100755 --- a/bin/post-generation-hook.sh +++ b/bin/post-generation-hook.sh @@ -2,7 +2,7 @@ SCRIPT_DIR=$(dirname "$0") PROJECT_ROOT=$(realpath "${SCRIPT_DIR}/..") # expects script in bin/ -PATH=$PATH:${PROJECT_ROOT}/venv/bin # expects python environment in venv/ +PATH=${PROJECT_ROOT}/venv/bin:$PATH # expects python environment in venv/ command -v black >/dev/null 2>&1 || { echo >&2 "'black' required, but not found. Please read 'Local installation' section in ${PROJECT_ROOT}/CONTRIBUTING.md file. Aborting."; exit 1; } command -v flake8 >/dev/null 2>&1 || { echo >&2 "'flake8' required, but not found. Please read 'Local installation' section in ${PROJECT_ROOT}/CONTRIBUTING.md file. Aborting."; exit 1; } cd "${PROJECT_ROOT}" && black xero_python && flake8 xero_python diff --git a/setup.py b/setup.py index 0ace6717..59f9b851 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="0.2.1", + version="0.2.2", ) diff --git a/xero_python/__init__.py b/xero_python/__init__.py index 5f2cabe3..741e93ee 100644 --- a/xero_python/__init__.py +++ b/xero_python/__init__.py @@ -2,4 +2,4 @@ __author__ = """Xero Developer API""" __email__ = "api@xero.com" -__version__ = "0.2.1" +__version__ = "0.2.2" diff --git a/xero_python/accounting/__init__.py b/xero_python/accounting/__init__.py index c61db1f5..503b31c0 100644 --- a/xero_python/accounting/__init__.py +++ b/xero_python/accounting/__init__.py @@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 9c95dd9c..dff227a8 100644 --- a/xero_python/accounting/api/accounting_api.py +++ b/xero_python/accounting/api/accounting_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -90,7 +90,9 @@ def create_account( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -179,11 +181,16 @@ def create_account_attachment_by_file_name( ) collection_formats = {} - path_params = {"AccountID": account_id, "FileName": file_name} + path_params = { + "AccountID": account_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -274,11 +281,16 @@ def create_bank_transaction_attachment_by_file_name( ) collection_formats = {} - path_params = {"BankTransactionID": bank_transaction_id, "FileName": file_name} + path_params = { + "BankTransactionID": bank_transaction_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -363,11 +375,15 @@ def create_bank_transaction_history_record( ) collection_formats = {} - path_params = {"BankTransactionID": bank_transaction_id} + path_params = { + "BankTransactionID": bank_transaction_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -456,7 +472,9 @@ def create_bank_transactions( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -533,7 +551,9 @@ def create_bank_transfer( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -622,11 +642,16 @@ def create_bank_transfer_attachment_by_file_name( ) collection_formats = {} - path_params = {"BankTransferID": bank_transfer_id, "FileName": file_name} + path_params = { + "BankTransferID": bank_transfer_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -711,11 +736,15 @@ def create_bank_transfer_history_record( ) collection_formats = {} - path_params = {"BankTransferID": bank_transfer_id} + path_params = { + "BankTransferID": bank_transfer_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -799,7 +828,9 @@ def create_batch_payment( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -880,11 +911,15 @@ def create_batch_payment_history_record( ) collection_formats = {} - path_params = {"BatchPaymentID": batch_payment_id} + path_params = { + "BatchPaymentID": batch_payment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -967,11 +1002,15 @@ def create_branding_theme_payment_services( ) collection_formats = {} - path_params = {"BrandingThemeID": branding_theme_id} + path_params = { + "BrandingThemeID": branding_theme_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1062,11 +1101,16 @@ def create_contact_attachment_by_file_name( ) collection_formats = {} - path_params = {"ContactID": contact_id, "FileName": file_name} + path_params = { + "ContactID": contact_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1145,7 +1189,9 @@ def create_contact_group( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1226,11 +1272,15 @@ def create_contact_group_contacts( ) collection_formats = {} - path_params = {"ContactGroupID": contact_group_id} + path_params = { + "ContactGroupID": contact_group_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1313,11 +1363,15 @@ def create_contact_history( ) collection_formats = {} - path_params = {"ContactID": contact_id} + path_params = { + "ContactID": contact_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1399,7 +1453,9 @@ def create_contacts( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1480,11 +1536,15 @@ def create_credit_note_allocation( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id} + path_params = { + "CreditNoteID": credit_note_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1577,14 +1637,19 @@ def create_credit_note_attachment_by_file_name( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id, "FileName": file_name} + path_params = { + "CreditNoteID": credit_note_id, + "FileName": file_name, + } query_params = [] if include_online is not empty: query_params.append(("IncludeOnline", include_online)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1669,11 +1734,15 @@ def create_credit_note_history( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id} + path_params = { + "CreditNoteID": credit_note_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1760,7 +1829,9 @@ def create_credit_notes( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1837,7 +1908,9 @@ def create_currency( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -1919,7 +1992,9 @@ def create_employees( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2000,11 +2075,15 @@ def create_expense_claim_history( ) collection_formats = {} - path_params = {"ExpenseClaimID": expense_claim_id} + path_params = { + "ExpenseClaimID": expense_claim_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2083,7 +2162,9 @@ def create_expense_claims( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2174,14 +2255,19 @@ def create_invoice_attachment_by_file_name( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id, "FileName": file_name} + path_params = { + "InvoiceID": invoice_id, + "FileName": file_name, + } query_params = [] if include_online is not empty: query_params.append(("IncludeOnline", include_online)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2264,11 +2350,15 @@ def create_invoice_history( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id} + path_params = { + "InvoiceID": invoice_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2355,7 +2445,9 @@ def create_invoices( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2436,11 +2528,15 @@ def create_item_history( ) collection_formats = {} - path_params = {"ItemID": item_id} + path_params = { + "ItemID": item_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2526,7 +2622,9 @@ def create_items( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2603,7 +2701,9 @@ def create_linked_transaction( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2692,11 +2792,16 @@ def create_manual_journal_attachment_by_file_name( ) collection_formats = {} - path_params = {"ManualJournalID": manual_journal_id, "FileName": file_name} + path_params = { + "ManualJournalID": manual_journal_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2782,7 +2887,9 @@ def create_manual_journals( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2865,14 +2972,18 @@ def create_overpayment_allocations( ) collection_formats = {} - path_params = {"OverpaymentID": overpayment_id} + path_params = { + "OverpaymentID": overpayment_id, + } query_params = [] if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -2955,11 +3066,15 @@ def create_overpayment_history( ) collection_formats = {} - path_params = {"OverpaymentID": overpayment_id} + path_params = { + "OverpaymentID": overpayment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3036,7 +3151,9 @@ def create_payment( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3117,11 +3234,15 @@ def create_payment_history( ) collection_formats = {} - path_params = {"PaymentID": payment_id} + path_params = { + "PaymentID": payment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3198,7 +3319,9 @@ def create_payment_service( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3280,7 +3403,9 @@ def create_payments( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3363,14 +3488,18 @@ def create_prepayment_allocations( ) collection_formats = {} - path_params = {"PrepaymentID": prepayment_id} + path_params = { + "PrepaymentID": prepayment_id, + } query_params = [] if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3453,11 +3582,15 @@ def create_prepayment_history( ) collection_formats = {} - path_params = {"PrepaymentID": prepayment_id} + path_params = { + "PrepaymentID": prepayment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3538,11 +3671,15 @@ def create_purchase_order_history( ) collection_formats = {} - path_params = {"PurchaseOrderID": purchase_order_id} + path_params = { + "PurchaseOrderID": purchase_order_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3626,7 +3763,9 @@ def create_purchase_orders( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3715,11 +3854,16 @@ def create_quote_attachment_by_file_name( ) collection_formats = {} - path_params = {"QuoteID": quote_id, "FileName": file_name} + path_params = { + "QuoteID": quote_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3802,11 +3946,15 @@ def create_quote_history( ) collection_formats = {} - path_params = {"QuoteID": quote_id} + path_params = { + "QuoteID": quote_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3888,7 +4036,9 @@ def create_quotes( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -3970,7 +4120,9 @@ def create_receipt( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4059,11 +4211,16 @@ def create_receipt_attachment_by_file_name( ) collection_formats = {} - path_params = {"ReceiptID": receipt_id, "FileName": file_name} + path_params = { + "ReceiptID": receipt_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4146,11 +4303,15 @@ def create_receipt_history( ) collection_formats = {} - path_params = {"ReceiptID": receipt_id} + path_params = { + "ReceiptID": receipt_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4246,7 +4407,9 @@ def create_repeating_invoice_attachment_by_file_name( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4331,11 +4494,15 @@ def create_repeating_invoice_history( ) collection_formats = {} - path_params = {"RepeatingInvoiceID": repeating_invoice_id} + path_params = { + "RepeatingInvoiceID": repeating_invoice_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4414,7 +4581,9 @@ def create_tax_rates( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4491,7 +4660,9 @@ def create_tracking_category( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4572,11 +4743,15 @@ def create_tracking_options( ) collection_formats = {} - path_params = {"TrackingCategoryID": tracking_category_id} + path_params = { + "TrackingCategoryID": tracking_category_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4649,11 +4824,15 @@ def delete_account( ) collection_formats = {} - path_params = {"AccountID": account_id} + path_params = { + "AccountID": account_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4729,11 +4908,16 @@ def delete_contact_group_contact( ) collection_formats = {} - path_params = {"ContactGroupID": contact_group_id, "ContactID": contact_id} + path_params = { + "ContactGroupID": contact_group_id, + "ContactID": contact_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4805,11 +4989,15 @@ def delete_contact_group_contacts( ) collection_formats = {} - path_params = {"ContactGroupID": contact_group_id} + path_params = { + "ContactGroupID": contact_group_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4873,11 +5061,15 @@ def delete_item( ) collection_formats = {} - path_params = {"ItemID": item_id} + path_params = { + "ItemID": item_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -4945,11 +5137,15 @@ def delete_linked_transaction( ) collection_formats = {} - path_params = {"LinkedTransactionID": linked_transaction_id} + path_params = { + "LinkedTransactionID": linked_transaction_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -5025,11 +5221,15 @@ def delete_payment( ) collection_formats = {} - path_params = {"PaymentID": payment_id} + path_params = { + "PaymentID": payment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -5102,11 +5302,15 @@ def delete_tracking_category( ) collection_formats = {} - path_params = {"TrackingCategoryID": tracking_category_id} + path_params = { + "TrackingCategoryID": tracking_category_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -5189,7 +5393,9 @@ def delete_tracking_options( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -5267,11 +5473,15 @@ def email_invoice( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id} + path_params = { + "InvoiceID": invoice_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -5344,11 +5554,15 @@ def get_account( ) collection_formats = {} - path_params = {"AccountID": account_id} + path_params = { + "AccountID": account_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -5432,11 +5646,17 @@ def get_account_attachment_by_file_name( ) collection_formats = {} - path_params = {"AccountID": account_id, "FileName": file_name} + path_params = { + "AccountID": account_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -5522,11 +5742,17 @@ def get_account_attachment_by_id( ) collection_formats = {} - path_params = {"AccountID": account_id, "AttachmentID": attachment_id} + path_params = { + "AccountID": account_id, + "AttachmentID": attachment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -5596,11 +5822,15 @@ def get_account_attachments( ) collection_formats = {} - path_params = {"AccountID": account_id} + path_params = { + "AccountID": account_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -5676,7 +5906,9 @@ def get_accounts( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -5749,14 +5981,18 @@ def get_bank_transaction( ) collection_formats = {} - path_params = {"BankTransactionID": bank_transaction_id} + path_params = { + "BankTransactionID": bank_transaction_id, + } query_params = [] if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -5840,11 +6076,17 @@ def get_bank_transaction_attachment_by_file_name( ) collection_formats = {} - path_params = {"BankTransactionID": bank_transaction_id, "FileName": file_name} + path_params = { + "BankTransactionID": bank_transaction_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -5939,7 +6181,10 @@ def get_bank_transaction_attachment_by_id( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -6011,11 +6256,15 @@ def get_bank_transaction_attachments( ) collection_formats = {} - path_params = {"BankTransactionID": bank_transaction_id} + path_params = { + "BankTransactionID": bank_transaction_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -6103,7 +6352,9 @@ def get_bank_transactions( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -6174,11 +6425,15 @@ def get_bank_transactions_history( ) collection_formats = {} - path_params = {"BankTransactionID": bank_transaction_id} + path_params = { + "BankTransactionID": bank_transaction_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -6248,11 +6503,15 @@ def get_bank_transfer( ) collection_formats = {} - path_params = {"BankTransferID": bank_transfer_id} + path_params = { + "BankTransferID": bank_transfer_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -6336,11 +6595,17 @@ def get_bank_transfer_attachment_by_file_name( ) collection_formats = {} - path_params = {"BankTransferID": bank_transfer_id, "FileName": file_name} + path_params = { + "BankTransferID": bank_transfer_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -6435,7 +6700,10 @@ def get_bank_transfer_attachment_by_id( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -6507,11 +6775,15 @@ def get_bank_transfer_attachments( ) collection_formats = {} - path_params = {"BankTransferID": bank_transfer_id} + path_params = { + "BankTransferID": bank_transfer_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -6581,11 +6853,15 @@ def get_bank_transfer_history( ) collection_formats = {} - path_params = {"BankTransferID": bank_transfer_id} + path_params = { + "BankTransferID": bank_transfer_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -6661,7 +6937,9 @@ def get_bank_transfers( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -6732,11 +7010,15 @@ def get_batch_payment_history( ) collection_formats = {} - path_params = {"BatchPaymentID": batch_payment_id} + path_params = { + "BatchPaymentID": batch_payment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -6812,7 +7094,9 @@ def get_batch_payments( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -6883,11 +7167,15 @@ def get_branding_theme( ) collection_formats = {} - path_params = {"BrandingThemeID": branding_theme_id} + path_params = { + "BrandingThemeID": branding_theme_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -6955,11 +7243,15 @@ def get_branding_theme_payment_services( ) collection_formats = {} - path_params = {"BrandingThemeID": branding_theme_id} + path_params = { + "BrandingThemeID": branding_theme_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -7025,7 +7317,9 @@ def get_branding_themes( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -7093,11 +7387,15 @@ def get_contact( ) collection_formats = {} - path_params = {"ContactID": contact_id} + path_params = { + "ContactID": contact_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -7181,11 +7479,17 @@ def get_contact_attachment_by_file_name( ) collection_formats = {} - path_params = {"ContactID": contact_id, "FileName": file_name} + path_params = { + "ContactID": contact_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -7271,11 +7575,17 @@ def get_contact_attachment_by_id( ) collection_formats = {} - path_params = {"ContactID": contact_id, "AttachmentID": attachment_id} + path_params = { + "ContactID": contact_id, + "AttachmentID": attachment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -7345,11 +7655,15 @@ def get_contact_attachments( ) collection_formats = {} - path_params = {"ContactID": contact_id} + path_params = { + "ContactID": contact_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -7385,43 +7699,47 @@ def get_contact_attachments( except exceptions.HTTPStatusException as error: raise translate_status_exception(error, self, "get_contact_attachments") - def get_contact_cis_settings( + def get_contact_by_contact_number( self, xero_tenant_id, - contact_id, + contact_number, _return_http_data_only=True, _preload_content=True, _request_timeout=None, ): - """Allows you to retrieve CISSettings for a contact in a Xero organisation # noqa: E501 + """Allows you to retrieve a single contact by Contact Number in a Xero organisation # noqa: E501 OAuth2 scope: accounting.contacts.read :param str xero_tenant_id: Xero identifier for Tenant (required) - :param str contact_id: Unique identifier for a Contact (required) + :param str contact_number: This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). (required) :param bool _return_http_data_only: return received data only :param bool _preload_content: load received data in models :param bool _request_timeout: maximum wait time for response - :return: CISSettings + :return: Contacts """ # verify the required parameter 'xero_tenant_id' is set if xero_tenant_id is None: raise ValueError( "Missing the required parameter `xero_tenant_id` " - "when calling `get_contact_cis_settings`" + "when calling `get_contact_by_contact_number`" ) - # verify the required parameter 'contact_id' is set - if contact_id is None: + # verify the required parameter 'contact_number' is set + if contact_number is None: raise ValueError( - "Missing the required parameter `contact_id` " - "when calling `get_contact_cis_settings`" + "Missing the required parameter `contact_number` " + "when calling `get_contact_by_contact_number`" ) collection_formats = {} - path_params = {"ContactID": contact_id} + path_params = { + "ContactNumber": contact_number, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -7434,7 +7752,7 @@ def get_contact_cis_settings( # Authentication setting auth_settings = ["OAuth2"] - url = self.get_resource_url("/Contacts/{ContactID}/CISSettings") + url = self.get_resource_url("/Contacts/{ContactNumber}") try: return self.api_client.call_api( @@ -7446,7 +7764,7 @@ def get_contact_cis_settings( body=body_params, post_params=form_params, files=local_var_files, - response_type="CISSettings", + response_type="Contacts", response_model_finder=self.get_model_finder(), auth_settings=auth_settings, _return_http_data_only=_return_http_data_only, @@ -7455,12 +7773,90 @@ def get_contact_cis_settings( collection_formats=collection_formats, ) except exceptions.HTTPStatusException as error: - raise translate_status_exception(error, self, "get_contact_cis_settings") + raise translate_status_exception( + error, self, "get_contact_by_contact_number" + ) - def get_contact_group( + def get_contact_cis_settings( self, xero_tenant_id, - contact_group_id, + contact_id, + _return_http_data_only=True, + _preload_content=True, + _request_timeout=None, + ): + """Allows you to retrieve CISSettings for a contact in a Xero organisation # noqa: E501 + OAuth2 scope: accounting.contacts.read + :param str xero_tenant_id: Xero identifier for Tenant (required) + :param str contact_id: Unique identifier for a Contact (required) + :param bool _return_http_data_only: return received data only + :param bool _preload_content: load received data in models + :param bool _request_timeout: maximum wait time for response + :return: CISSettings + """ + + # verify the required parameter 'xero_tenant_id' is set + if xero_tenant_id is None: + raise ValueError( + "Missing the required parameter `xero_tenant_id` " + "when calling `get_contact_cis_settings`" + ) + # verify the required parameter 'contact_id' is set + if contact_id is None: + raise ValueError( + "Missing the required parameter `contact_id` " + "when calling `get_contact_cis_settings`" + ) + + collection_formats = {} + path_params = { + "ContactID": contact_id, + } + + query_params = [] + + header_params = { + "xero-tenant-id": xero_tenant_id, + } + + local_var_files = {} + form_params = [] + + body_params = None + # HTTP header `Accept` + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # Authentication setting + auth_settings = ["OAuth2"] + url = self.get_resource_url("/Contacts/{ContactID}/CISSettings") + + try: + return self.api_client.call_api( + url, + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type="CISSettings", + response_model_finder=self.get_model_finder(), + auth_settings=auth_settings, + _return_http_data_only=_return_http_data_only, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + collection_formats=collection_formats, + ) + except exceptions.HTTPStatusException as error: + raise translate_status_exception(error, self, "get_contact_cis_settings") + + def get_contact_group( + self, + xero_tenant_id, + contact_group_id, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -7489,11 +7885,15 @@ def get_contact_group( ) collection_formats = {} - path_params = {"ContactGroupID": contact_group_id} + path_params = { + "ContactGroupID": contact_group_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -7567,7 +7967,9 @@ def get_contact_groups( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -7635,11 +8037,15 @@ def get_contact_history( ) collection_formats = {} - path_params = {"ContactID": contact_id} + path_params = { + "ContactID": contact_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -7710,7 +8116,9 @@ def get_contacts( "when calling `get_contacts`" ) - collection_formats = {"IDs": "csv"} + collection_formats = { + "IDs": "csv", + } path_params = {} query_params = [] @@ -7730,7 +8138,9 @@ def get_contacts( if include_archived is not empty: query_params.append(("includeArchived", include_archived)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -7803,14 +8213,18 @@ def get_credit_note( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id} + path_params = { + "CreditNoteID": credit_note_id, + } query_params = [] if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -7878,11 +8292,15 @@ def get_credit_note_as_pdf( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id} + path_params = { + "CreditNoteID": credit_note_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -7966,11 +8384,17 @@ def get_credit_note_attachment_by_file_name( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id, "FileName": file_name} + path_params = { + "CreditNoteID": credit_note_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -8058,11 +8482,17 @@ def get_credit_note_attachment_by_id( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id, "AttachmentID": attachment_id} + path_params = { + "CreditNoteID": credit_note_id, + "AttachmentID": attachment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -8134,11 +8564,15 @@ def get_credit_note_attachments( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id} + path_params = { + "CreditNoteID": credit_note_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -8206,11 +8640,15 @@ def get_credit_note_history( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id} + path_params = { + "CreditNoteID": credit_note_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -8296,7 +8734,9 @@ def get_credit_notes( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -8373,7 +8813,9 @@ def get_currencies( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -8441,11 +8883,15 @@ def get_employee( ) collection_formats = {} - path_params = {"EmployeeID": employee_id} + path_params = { + "EmployeeID": employee_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -8521,7 +8967,9 @@ def get_employees( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -8592,11 +9040,15 @@ def get_expense_claim( ) collection_formats = {} - path_params = {"ExpenseClaimID": expense_claim_id} + path_params = { + "ExpenseClaimID": expense_claim_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -8664,11 +9116,15 @@ def get_expense_claim_history( ) collection_formats = {} - path_params = {"ExpenseClaimID": expense_claim_id} + path_params = { + "ExpenseClaimID": expense_claim_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -8744,7 +9200,9 @@ def get_expense_claims( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -8817,14 +9275,18 @@ def get_invoice( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id} + path_params = { + "InvoiceID": invoice_id, + } query_params = [] if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -8892,11 +9354,15 @@ def get_invoice_as_pdf( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id} + path_params = { + "InvoiceID": invoice_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -8980,11 +9446,17 @@ def get_invoice_attachment_by_file_name( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id, "FileName": file_name} + path_params = { + "InvoiceID": invoice_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -9070,11 +9542,17 @@ def get_invoice_attachment_by_id( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id, "AttachmentID": attachment_id} + path_params = { + "InvoiceID": invoice_id, + "AttachmentID": attachment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -9144,11 +9622,15 @@ def get_invoice_attachments( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id} + path_params = { + "InvoiceID": invoice_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -9216,11 +9698,15 @@ def get_invoice_history( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id} + path_params = { + "InvoiceID": invoice_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -9284,7 +9770,9 @@ def get_invoice_reminders( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -9405,7 +9893,9 @@ def get_invoices( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -9477,14 +9967,18 @@ def get_item( ) collection_formats = {} - path_params = {"ItemID": item_id} + path_params = { + "ItemID": item_id, + } query_params = [] if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -9552,11 +10046,15 @@ def get_item_history( ) collection_formats = {} - path_params = {"ItemID": item_id} + path_params = { + "ItemID": item_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -9637,7 +10135,9 @@ def get_items( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -9708,11 +10208,15 @@ def get_journal( ) collection_formats = {} - path_params = {"JournalID": journal_id} + path_params = { + "JournalID": journal_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -9788,7 +10292,9 @@ def get_journals( if payments_only is not empty: query_params.append(("paymentsOnly", payments_only)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -9859,11 +10365,15 @@ def get_linked_transaction( ) collection_formats = {} - path_params = {"LinkedTransactionID": linked_transaction_id} + path_params = { + "LinkedTransactionID": linked_transaction_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -9957,7 +10467,9 @@ def get_linked_transactions( if target_transaction_id is not empty: query_params.append(("TargetTransactionID", target_transaction_id)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -10025,11 +10537,15 @@ def get_manual_journal( ) collection_formats = {} - path_params = {"ManualJournalID": manual_journal_id} + path_params = { + "ManualJournalID": manual_journal_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -10113,11 +10629,17 @@ def get_manual_journal_attachment_by_file_name( ) collection_formats = {} - path_params = {"ManualJournalID": manual_journal_id, "FileName": file_name} + path_params = { + "ManualJournalID": manual_journal_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -10212,7 +10734,10 @@ def get_manual_journal_attachment_by_id( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -10284,11 +10809,15 @@ def get_manual_journal_attachments( ) collection_formats = {} - path_params = {"ManualJournalID": manual_journal_id} + path_params = { + "ManualJournalID": manual_journal_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -10371,7 +10900,9 @@ def get_manual_journals( if page is not empty: query_params.append(("page", page)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -10442,11 +10973,15 @@ def get_online_invoice( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id} + path_params = { + "InvoiceID": invoice_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -10514,11 +11049,15 @@ def get_organisation_cis_settings( ) collection_formats = {} - path_params = {"OrganisationID": organisation_id} + path_params = { + "OrganisationID": organisation_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -10584,7 +11123,9 @@ def get_organisations( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -10652,11 +11193,15 @@ def get_overpayment( ) collection_formats = {} - path_params = {"OverpaymentID": overpayment_id} + path_params = { + "OverpaymentID": overpayment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -10724,11 +11269,15 @@ def get_overpayment_history( ) collection_formats = {} - path_params = {"OverpaymentID": overpayment_id} + path_params = { + "OverpaymentID": overpayment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -10814,7 +11363,9 @@ def get_overpayments( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -10885,11 +11436,15 @@ def get_payment( ) collection_formats = {} - path_params = {"PaymentID": payment_id} + path_params = { + "PaymentID": payment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -10957,11 +11512,15 @@ def get_payment_history( ) collection_formats = {} - path_params = {"PaymentID": payment_id} + path_params = { + "PaymentID": payment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -11025,7 +11584,9 @@ def get_payment_services( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -11101,7 +11662,9 @@ def get_payments( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -11172,11 +11735,15 @@ def get_prepayment( ) collection_formats = {} - path_params = {"PrepaymentID": prepayment_id} + path_params = { + "PrepaymentID": prepayment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -11212,78 +11779,6 @@ def get_prepayment( except exceptions.HTTPStatusException as error: raise translate_status_exception(error, self, "get_prepayment") - def get_prepayment_as_pdf( - self, - xero_tenant_id, - prepayment_id, - _return_http_data_only=True, - _preload_content=True, - _request_timeout=None, - ): - """Allows you to retrieve prepayments as PDF files # noqa: E501 - OAuth2 scope: accounting.transactions.read - :param str xero_tenant_id: Xero identifier for Tenant (required) - :param str prepayment_id: Unique identifier for a PrePayment (required) - :param bool _return_http_data_only: return received data only - :param bool _preload_content: load received data in models - :param bool _request_timeout: maximum wait time for response - :return: file - """ - - # verify the required parameter 'xero_tenant_id' is set - if xero_tenant_id is None: - raise ValueError( - "Missing the required parameter `xero_tenant_id` " - "when calling `get_prepayment_as_pdf`" - ) - # verify the required parameter 'prepayment_id' is set - if prepayment_id is None: - raise ValueError( - "Missing the required parameter `prepayment_id` " - "when calling `get_prepayment_as_pdf`" - ) - - collection_formats = {} - path_params = {"PrepaymentID": prepayment_id} - - query_params = [] - - header_params = {"xero-tenant-id": xero_tenant_id} - - local_var_files = {} - form_params = [] - - body_params = None - # HTTP header `Accept` - header_params["Accept"] = self.api_client.select_header_accept( - ["application/pdf"] - ) - - # Authentication setting - auth_settings = ["OAuth2"] - url = self.get_resource_url("/Prepayments/{PrepaymentID}") - - try: - return self.api_client.call_api( - url, - "GET", - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type="file", - response_model_finder=self.get_model_finder(), - auth_settings=auth_settings, - _return_http_data_only=_return_http_data_only, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - collection_formats=collection_formats, - ) - except exceptions.HTTPStatusException as error: - raise translate_status_exception(error, self, "get_prepayment_as_pdf") - def get_prepayment_history( self, xero_tenant_id, @@ -11316,11 +11811,15 @@ def get_prepayment_history( ) collection_formats = {} - path_params = {"PrepaymentID": prepayment_id} + path_params = { + "PrepaymentID": prepayment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -11406,7 +11905,9 @@ def get_prepayments( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -11477,11 +11978,15 @@ def get_purchase_order( ) collection_formats = {} - path_params = {"PurchaseOrderID": purchase_order_id} + path_params = { + "PurchaseOrderID": purchase_order_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -11549,11 +12054,15 @@ def get_purchase_order_as_pdf( ) collection_formats = {} - path_params = {"PurchaseOrderID": purchase_order_id} + path_params = { + "PurchaseOrderID": purchase_order_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -11621,11 +12130,15 @@ def get_purchase_order_by_number( ) collection_formats = {} - path_params = {"PurchaseOrderNumber": purchase_order_number} + path_params = { + "PurchaseOrderNumber": purchase_order_number, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -11695,11 +12208,15 @@ def get_purchase_order_history( ) collection_formats = {} - path_params = {"PurchaseOrderID": purchase_order_id} + path_params = { + "PurchaseOrderID": purchase_order_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -11790,7 +12307,9 @@ def get_purchase_orders( if page is not empty: query_params.append(("page", page)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -11860,11 +12379,15 @@ def get_quote( ) collection_formats = {} - path_params = {"QuoteID": quote_id} + path_params = { + "QuoteID": quote_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -11932,11 +12455,15 @@ def get_quote_as_pdf( ) collection_formats = {} - path_params = {"QuoteID": quote_id} + path_params = { + "QuoteID": quote_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -12020,11 +12547,17 @@ def get_quote_attachment_by_file_name( ) collection_formats = {} - path_params = {"QuoteID": quote_id, "FileName": file_name} + path_params = { + "QuoteID": quote_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -12110,11 +12643,17 @@ def get_quote_attachment_by_id( ) collection_formats = {} - path_params = {"QuoteID": quote_id, "AttachmentID": attachment_id} + path_params = { + "QuoteID": quote_id, + "AttachmentID": attachment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -12182,11 +12721,15 @@ def get_quote_attachments( ) collection_formats = {} - path_params = {"QuoteID": quote_id} + path_params = { + "QuoteID": quote_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -12254,11 +12797,15 @@ def get_quote_history( ) collection_formats = {} - path_params = {"QuoteID": quote_id} + path_params = { + "QuoteID": quote_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -12364,7 +12911,9 @@ def get_quotes( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -12437,14 +12986,18 @@ def get_receipt( ) collection_formats = {} - path_params = {"ReceiptID": receipt_id} + path_params = { + "ReceiptID": receipt_id, + } query_params = [] if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -12528,11 +13081,17 @@ def get_receipt_attachment_by_file_name( ) collection_formats = {} - path_params = {"ReceiptID": receipt_id, "FileName": file_name} + path_params = { + "ReceiptID": receipt_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -12618,11 +13177,17 @@ def get_receipt_attachment_by_id( ) collection_formats = {} - path_params = {"ReceiptID": receipt_id, "AttachmentID": attachment_id} + path_params = { + "ReceiptID": receipt_id, + "AttachmentID": attachment_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -12692,11 +13257,15 @@ def get_receipt_attachments( ) collection_formats = {} - path_params = {"ReceiptID": receipt_id} + path_params = { + "ReceiptID": receipt_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -12764,11 +13333,15 @@ def get_receipt_history( ) collection_formats = {} - path_params = {"ReceiptID": receipt_id} + path_params = { + "ReceiptID": receipt_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -12849,7 +13422,9 @@ def get_receipts( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -12920,11 +13495,15 @@ def get_repeating_invoice( ) collection_formats = {} - path_params = {"RepeatingInvoiceID": repeating_invoice_id} + path_params = { + "RepeatingInvoiceID": repeating_invoice_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13015,7 +13594,10 @@ def get_repeating_invoice_attachment_by_file_name( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -13110,7 +13692,10 @@ def get_repeating_invoice_attachment_by_id( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id, "contentType": content_type} + header_params = { + "xero-tenant-id": xero_tenant_id, + "contentType": content_type, + } local_var_files = {} form_params = [] @@ -13182,11 +13767,15 @@ def get_repeating_invoice_attachments( ) collection_formats = {} - path_params = {"RepeatingInvoiceID": repeating_invoice_id} + path_params = { + "RepeatingInvoiceID": repeating_invoice_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13258,11 +13847,15 @@ def get_repeating_invoice_history( ) collection_formats = {} - path_params = {"RepeatingInvoiceID": repeating_invoice_id} + path_params = { + "RepeatingInvoiceID": repeating_invoice_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13338,7 +13931,9 @@ def get_repeating_invoices( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13414,7 +14009,9 @@ def get_report_aged_payables_by_contact( collection_formats = {} path_params = {} - query_params = [("contactId", contact_id)] + query_params = [ + ("contactId", contact_id), + ] if date is not empty: query_params.append(("date", date)) @@ -13425,7 +14022,9 @@ def get_report_aged_payables_by_contact( if to_date is not empty: query_params.append(("toDate", to_date)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13503,7 +14102,9 @@ def get_report_aged_receivables_by_contact( collection_formats = {} path_params = {} - query_params = [("contactId", contact_id)] + query_params = [ + ("contactId", contact_id), + ] if date is not empty: query_params.append(("date", date)) @@ -13514,7 +14115,9 @@ def get_report_aged_receivables_by_contact( if to_date is not empty: query_params.append(("toDate", to_date)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13584,11 +14187,15 @@ def get_report_ba_sor_gst( ) collection_formats = {} - path_params = {"ReportID": report_id} + path_params = { + "ReportID": report_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13652,7 +14259,9 @@ def get_report_ba_sor_gst_list( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13751,7 +14360,9 @@ def get_report_balance_sheet( if payments_only is not empty: query_params.append(("paymentsOnly", payments_only)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13825,7 +14436,9 @@ def get_report_bank_summary( if to_date is not empty: query_params.append(("toDate", to_date)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13904,7 +14517,9 @@ def get_report_budget_summary( if timeframe is not empty: query_params.append(("timeframe", timeframe)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -13973,7 +14588,9 @@ def get_report_executive_summary( if date is not empty: query_params.append(("date", date)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14089,7 +14706,9 @@ def get_report_profit_and_loss( if payments_only is not empty: query_params.append(("paymentsOnly", payments_only)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14158,7 +14777,9 @@ def get_report_ten_ninety_nine( if report_year is not empty: query_params.append(("reportYear", report_year)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14232,7 +14853,9 @@ def get_report_trial_balance( if payments_only is not empty: query_params.append(("paymentsOnly", payments_only)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14311,7 +14934,9 @@ def get_tax_rates( if tax_type is not empty: query_params.append(("TaxType", tax_type)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14390,7 +15015,9 @@ def get_tracking_categories( if include_archived is not empty: query_params.append(("includeArchived", include_archived)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14458,11 +15085,15 @@ def get_tracking_category( ) collection_formats = {} - path_params = {"TrackingCategoryID": tracking_category_id} + path_params = { + "TrackingCategoryID": tracking_category_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14529,11 +15160,15 @@ def get_user( ) collection_formats = {} - path_params = {"UserID": user_id} + path_params = { + "UserID": user_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14609,7 +15244,9 @@ def get_users( if order is not empty: query_params.append(("order", order)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } if if_modified_since is not empty: header_params["If-Modified-Since"] = if_modified_since @@ -14688,11 +15325,15 @@ def update_account( ) collection_formats = {} - path_params = {"AccountID": account_id} + path_params = { + "AccountID": account_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14781,11 +15422,16 @@ def update_account_attachment_by_file_name( ) collection_formats = {} - path_params = {"AccountID": account_id, "FileName": file_name} + path_params = { + "AccountID": account_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14870,14 +15516,18 @@ def update_bank_transaction( ) collection_formats = {} - path_params = {"BankTransactionID": bank_transaction_id} + path_params = { + "BankTransactionID": bank_transaction_id, + } query_params = [] if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -14966,11 +15616,16 @@ def update_bank_transaction_attachment_by_file_name( ) collection_formats = {} - path_params = {"BankTransactionID": bank_transaction_id, "FileName": file_name} + path_params = { + "BankTransactionID": bank_transaction_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15063,11 +15718,16 @@ def update_bank_transfer_attachment_by_file_name( ) collection_formats = {} - path_params = {"BankTransferID": bank_transfer_id, "FileName": file_name} + path_params = { + "BankTransferID": bank_transfer_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15152,11 +15812,15 @@ def update_contact( ) collection_formats = {} - path_params = {"ContactID": contact_id} + path_params = { + "ContactID": contact_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15245,11 +15909,16 @@ def update_contact_attachment_by_file_name( ) collection_formats = {} - path_params = {"ContactID": contact_id, "FileName": file_name} + path_params = { + "ContactID": contact_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15332,11 +16001,15 @@ def update_contact_group( ) collection_formats = {} - path_params = {"ContactGroupID": contact_group_id} + path_params = { + "ContactGroupID": contact_group_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15419,14 +16092,18 @@ def update_credit_note( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id} + path_params = { + "CreditNoteID": credit_note_id, + } query_params = [] if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15515,11 +16192,16 @@ def update_credit_note_attachment_by_file_name( ) collection_formats = {} - path_params = {"CreditNoteID": credit_note_id, "FileName": file_name} + path_params = { + "CreditNoteID": credit_note_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15604,11 +16286,15 @@ def update_expense_claim( ) collection_formats = {} - path_params = {"ExpenseClaimID": expense_claim_id} + path_params = { + "ExpenseClaimID": expense_claim_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15691,14 +16377,18 @@ def update_invoice( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id} + path_params = { + "InvoiceID": invoice_id, + } query_params = [] if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15787,11 +16477,16 @@ def update_invoice_attachment_by_file_name( ) collection_formats = {} - path_params = {"InvoiceID": invoice_id, "FileName": file_name} + path_params = { + "InvoiceID": invoice_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15874,14 +16569,18 @@ def update_item( ) collection_formats = {} - path_params = {"ItemID": item_id} + path_params = { + "ItemID": item_id, + } query_params = [] if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -15962,11 +16661,15 @@ def update_linked_transaction( ) collection_formats = {} - path_params = {"LinkedTransactionID": linked_transaction_id} + path_params = { + "LinkedTransactionID": linked_transaction_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16047,11 +16750,15 @@ def update_manual_journal( ) collection_formats = {} - path_params = {"ManualJournalID": manual_journal_id} + path_params = { + "ManualJournalID": manual_journal_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16140,11 +16847,16 @@ def update_manual_journal_attachment_by_file_name( ) collection_formats = {} - path_params = {"ManualJournalID": manual_journal_id, "FileName": file_name} + path_params = { + "ManualJournalID": manual_journal_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16235,7 +16947,9 @@ def update_or_create_bank_transactions( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16319,7 +17033,9 @@ def update_or_create_contacts( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16406,7 +17122,9 @@ def update_or_create_credit_notes( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16490,7 +17208,9 @@ def update_or_create_employees( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16577,7 +17297,9 @@ def update_or_create_invoices( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16664,7 +17386,9 @@ def update_or_create_items( if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16746,7 +17470,9 @@ def update_or_create_manual_journals( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16830,7 +17556,9 @@ def update_or_create_purchase_orders( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16914,7 +17642,9 @@ def update_or_create_quotes( if summarize_errors is not empty: query_params.append(("summarizeErrors", summarize_errors)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -16995,11 +17725,15 @@ def update_purchase_order( ) collection_formats = {} - path_params = {"PurchaseOrderID": purchase_order_id} + path_params = { + "PurchaseOrderID": purchase_order_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -17079,11 +17813,15 @@ def update_quote( ) collection_formats = {} - path_params = {"QuoteID": quote_id} + path_params = { + "QuoteID": quote_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -17172,11 +17910,16 @@ def update_quote_attachment_by_file_name( ) collection_formats = {} - path_params = {"QuoteID": quote_id, "FileName": file_name} + path_params = { + "QuoteID": quote_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -17261,14 +18004,18 @@ def update_receipt( ) collection_formats = {} - path_params = {"ReceiptID": receipt_id} + path_params = { + "ReceiptID": receipt_id, + } query_params = [] if unitdp is not empty: query_params.append(("unitdp", unitdp)) - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -17357,11 +18104,16 @@ def update_receipt_attachment_by_file_name( ) collection_formats = {} - path_params = {"ReceiptID": receipt_id, "FileName": file_name} + path_params = { + "ReceiptID": receipt_id, + "FileName": file_name, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -17459,7 +18211,9 @@ def update_repeating_invoice_attachment_by_file_name( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -17540,7 +18294,9 @@ def update_tax_rate( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -17621,11 +18377,15 @@ def update_tracking_category( ) collection_formats = {} - path_params = {"TrackingCategoryID": tracking_category_id} + path_params = { + "TrackingCategoryID": tracking_category_id, + } query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] @@ -17721,7 +18481,9 @@ def update_tracking_options( query_params = [] - header_params = {"xero-tenant-id": xero_tenant_id} + header_params = { + "xero-tenant-id": xero_tenant_id, + } local_var_files = {} form_params = [] diff --git a/xero_python/accounting/docs/AccountingApi.md b/xero_python/accounting/docs/AccountingApi.md index 3ad7f408..e400e070 100644 --- a/xero_python/accounting/docs/AccountingApi.md +++ b/xero_python/accounting/docs/AccountingApi.md @@ -92,6 +92,7 @@ Method | HTTP request | Description [**get_contact_attachment_by_file_name**](AccountingApi.md#get_contact_attachment_by_file_name) | **GET** /Contacts/{ContactID}/Attachments/{FileName} | Allows you to retrieve Attachments on Contacts by file name [**get_contact_attachment_by_id**](AccountingApi.md#get_contact_attachment_by_id) | **GET** /Contacts/{ContactID}/Attachments/{AttachmentID} | Allows you to retrieve Attachments on Contacts [**get_contact_attachments**](AccountingApi.md#get_contact_attachments) | **GET** /Contacts/{ContactID}/Attachments | Allows you to retrieve, add and update contacts in a Xero organisation +[**get_contact_by_contact_number**](AccountingApi.md#get_contact_by_contact_number) | **GET** /Contacts/{ContactNumber} | Allows you to retrieve a single contact by Contact Number in a Xero organisation [**get_contact_cis_settings**](AccountingApi.md#get_contact_cis_settings) | **GET** /Contacts/{ContactID}/CISSettings | Allows you to retrieve CISSettings for a contact in a Xero organisation [**get_contact_group**](AccountingApi.md#get_contact_group) | **GET** /ContactGroups/{ContactGroupID} | Allows you to retrieve a unique Contact Group by ID [**get_contact_groups**](AccountingApi.md#get_contact_groups) | **GET** /ContactGroups | Allows you to retrieve the ContactID and Name of all the contacts in a contact group @@ -141,7 +142,6 @@ Method | HTTP request | Description [**get_payment_services**](AccountingApi.md#get_payment_services) | **GET** /PaymentServices | Allows you to retrieve payment services [**get_payments**](AccountingApi.md#get_payments) | **GET** /Payments | Allows you to retrieve payments for invoices and credit notes [**get_prepayment**](AccountingApi.md#get_prepayment) | **GET** /Prepayments/{PrepaymentID} | Allows you to retrieve a specified prepayments -[**get_prepayment_as_pdf**](AccountingApi.md#get_prepayment_as_pdf) | **GET** /Prepayments/{PrepaymentID}/pdf | Allows you to retrieve prepayments as PDF files [**get_prepayment_history**](AccountingApi.md#get_prepayment_history) | **GET** /Prepayments/{PrepaymentID}/History | Allows you to retrieve a history records of an Prepayment [**get_prepayments**](AccountingApi.md#get_prepayments) | **GET** /Prepayments | Allows you to retrieve prepayments [**get_purchase_order**](AccountingApi.md#get_purchase_order) | **GET** /PurchaseOrders/{PurchaseOrderID} | Allows you to retrieve a specified purchase orders @@ -5938,6 +5938,69 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_contact_by_contact_number** +> Contacts get_contact_by_contact_number(xero_tenant_id, contact_number) + +Allows you to retrieve a single contact by Contact Number in a Xero organisation + +### Example + +* OAuth Authentication (OAuth2): +```python +from xero_python.api_client import Configuration, ApiClient +from xero_python.api_client.oauth2 import OAuth2Token +from xero_python.exceptions import ApiException +from xero_python.accounting import AccountingApi +from pprint import pprint + +# Configure OAuth2 access token for authorization: OAuth2 +# simplified version, `xero_oauth2_token` represents permanent global token storage +xero_oauth2_token = {} # set to valid xero oauth2 token dictionary +# create client configuration with client id and client secret for automatic token refresh +api_config = Configuration(oauth2_token=OAuth2Token( + client_id="YOUR_API_CLIENT_ID", client_secret="YOUR_API_CLIENT_SECRET" +)) +# configure xero-python sdk client +api_client = ApiClient( + api_config, + oauth2_token_saver=lambda x: xero_oauth2_token.update(x), + oauth2_token_getter=lambda : xero_oauth2_token +) +# create an instance of the API class +api_instance = AccountingApi(api_client) + +xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant +contact_number = 'SB2' # str | This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). +try: + # Allows you to retrieve a single contact by Contact Number in a Xero organisation + api_response = api_instance.get_contact_by_contact_number(xero_tenant_id, contact_number) + pprint(api_response) +except ApiException as e: + print("Exception when calling AccountingApi->get_contact_by_contact_number: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xero_tenant_id** | **str**| Xero identifier for Tenant | + **contact_number** | **str**| This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). | + +### Return type + +[**Contacts**](Contacts.md) + +### Authorization + +[OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_contact_cis_settings** > CISSettings get_contact_cis_settings(xero_tenant_id, contact_id) @@ -9137,69 +9200,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_prepayment_as_pdf** -> file get_prepayment_as_pdf(xero_tenant_id, prepayment_id) - -Allows you to retrieve prepayments as PDF files - -### Example - -* OAuth Authentication (OAuth2): -```python -from xero_python.api_client import Configuration, ApiClient -from xero_python.api_client.oauth2 import OAuth2Token -from xero_python.exceptions import ApiException -from xero_python.accounting import AccountingApi -from pprint import pprint - -# Configure OAuth2 access token for authorization: OAuth2 -# simplified version, `xero_oauth2_token` represents permanent global token storage -xero_oauth2_token = {} # set to valid xero oauth2 token dictionary -# create client configuration with client id and client secret for automatic token refresh -api_config = Configuration(oauth2_token=OAuth2Token( - client_id="YOUR_API_CLIENT_ID", client_secret="YOUR_API_CLIENT_SECRET" -)) -# configure xero-python sdk client -api_client = ApiClient( - api_config, - oauth2_token_saver=lambda x: xero_oauth2_token.update(x), - oauth2_token_getter=lambda : xero_oauth2_token -) -# create an instance of the API class -api_instance = AccountingApi(api_client) - -xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant -prepayment_id = '00000000-0000-0000-000-000000000000' # str | Unique identifier for a PrePayment -try: - # Allows you to retrieve prepayments as PDF files - api_response = api_instance.get_prepayment_as_pdf(xero_tenant_id, prepayment_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountingApi->get_prepayment_as_pdf: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xero_tenant_id** | **str**| Xero identifier for Tenant | - **prepayment_id** | [**str**](.md)| Unique identifier for a PrePayment | - -### Return type - -**file** - -### Authorization - -[OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/pdf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_prepayment_history** > HistoryRecords get_prepayment_history(xero_tenant_id, prepayment_id) diff --git a/xero_python/accounting/docs/BankTransfer.md b/xero_python/accounting/docs/BankTransfer.md index 6ecdff17..5e7a7546 100644 --- a/xero_python/accounting/docs/BankTransfer.md +++ b/xero_python/accounting/docs/BankTransfer.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **from_bank_account** | [**Account**](Account.md) | | **to_bank_account** | [**Account**](Account.md) | | -**amount** | **str** | amount of the transaction | +**amount** | **float** | amount of the transaction | **date** | **date** | The date of the Transfer YYYY-MM-DD | [optional] **bank_transfer_id** | **str** | The identifier of the Bank Transfer | [optional] **currency_rate** | **float** | The currency rate | [optional] diff --git a/xero_python/accounting/docs/Contact.md b/xero_python/accounting/docs/Contact.md index 50a7d22c..c7c59239 100644 --- a/xero_python/accounting/docs/Contact.md +++ b/xero_python/accounting/docs/Contact.md @@ -40,7 +40,7 @@ Name | Type | Description | Notes **attachments** | [**list[Attachment]**](Attachment.md) | Displays array of attachments from the API | [optional] **has_attachments** | **bool** | A boolean to indicate if a contact has an attachment | [optional] [default to False] **validation_errors** | [**list[ValidationError]**](ValidationError.md) | Displays validation errors returned from the API | [optional] -**has_validation_errors** | **bool** | A boolean to indicate if a contact has an validation errors | [optional] +**has_validation_errors** | **bool** | A boolean to indicate if a contact has an validation errors | [optional] [default to False] **status_attribute_string** | **str** | Status of object | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/xero_python/accounting/docs/CreditNote.md b/xero_python/accounting/docs/CreditNote.md index 7b716a41..40f289eb 100644 --- a/xero_python/accounting/docs/CreditNote.md +++ b/xero_python/accounting/docs/CreditNote.md @@ -27,7 +27,7 @@ Name | Type | Description | Notes **branding_theme_id** | **str** | See BrandingThemes | [optional] **status_attribute_string** | **str** | A string to indicate if a invoice status | [optional] **has_attachments** | **bool** | boolean to indicate if a credit note has an attachment | [optional] [default to False] -**has_errors** | **bool** | A boolean to indicate if a credit note has an validation errors | [optional] +**has_errors** | **bool** | A boolean to indicate if a credit note has an validation errors | [optional] [default to False] **validation_errors** | [**list[ValidationError]**](ValidationError.md) | Displays array of validation error messages from the API | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/xero_python/accounting/docs/Invoice.md b/xero_python/accounting/docs/Invoice.md index e410283f..34e5c124 100644 --- a/xero_python/accounting/docs/Invoice.md +++ b/xero_python/accounting/docs/Invoice.md @@ -37,7 +37,7 @@ Name | Type | Description | Notes **updated_date_utc** | **datetime** | Last modified date UTC format | [optional] **credit_notes** | [**list[CreditNote]**](CreditNote.md) | Details of credit notes that have been applied to an invoice | [optional] **attachments** | [**list[Attachment]**](Attachment.md) | Displays array of attachments from the API | [optional] -**has_errors** | **bool** | A boolean to indicate if a invoice has an validation errors | [optional] +**has_errors** | **bool** | A boolean to indicate if a invoice has an validation errors | [optional] [default to False] **status_attribute_string** | **str** | A string to indicate if a invoice status | [optional] **validation_errors** | [**list[ValidationError]**](ValidationError.md) | Displays array of validation error messages from the API | [optional] **warnings** | [**list[ValidationError]**](ValidationError.md) | Displays array of warning messages from the API | [optional] diff --git a/xero_python/accounting/docs/Payment.md b/xero_python/accounting/docs/Payment.md index 8c70caaf..a54d0551 100644 --- a/xero_python/accounting/docs/Payment.md +++ b/xero_python/accounting/docs/Payment.md @@ -23,8 +23,9 @@ Name | Type | Description | Notes **bank_account_number** | **str** | The suppliers bank account number the payment is being made to | [optional] **particulars** | **str** | The suppliers bank account number the payment is being made to | [optional] **details** | **str** | The information to appear on the supplier's bank account | [optional] -**has_account** | **bool** | A boolean to indicate if a contact has an validation errors | [optional] -**has_validation_errors** | **bool** | A boolean to indicate if a contact has an validation errors | [optional] +**has_account** | **bool** | A boolean to indicate if a contact has an validation errors | [optional] [default to False] +**has_validation_errors** | **bool** | A boolean to indicate if a contact has an validation errors | [optional] [default to False] +**status_attribute_string** | **str** | A string to indicate if a invoice status | [optional] **validation_errors** | [**list[ValidationError]**](ValidationError.md) | Displays array of validation error messages from the API | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/xero_python/accounting/models/__init__.py b/xero_python/accounting/models/__init__.py index 976caf4e..ae9edda4 100644 --- a/xero_python/accounting/models/__init__.py +++ b/xero_python/accounting/models/__init__.py @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 b8f3e84e..a102775d 100644 --- a/xero_python/accounting/models/account.py +++ b/xero_python/accounting/models/account.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/account_type.py b/xero_python/accounting/models/account_type.py index 8c470aed..18b290e9 100644 --- a/xero_python/accounting/models/account_type.py +++ b/xero_python/accounting/models/account_type.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 5cc92fbf..e7fce027 100644 --- a/xero_python/accounting/models/accounts.py +++ b/xero_python/accounting/models/accounts.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 fba60642..062b8dfa 100644 --- a/xero_python/accounting/models/accounts_payable.py +++ b/xero_python/accounting/models/accounts_payable.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 bc1bd1d5..1e7d8a1d 100644 --- a/xero_python/accounting/models/accounts_receivable.py +++ b/xero_python/accounting/models/accounts_receivable.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 44fbe495..6c81f9b0 100644 --- a/xero_python/accounting/models/address.py +++ b/xero_python/accounting/models/address.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/allocation.py b/xero_python/accounting/models/allocation.py index 28bf0e66..07936886 100644 --- a/xero_python/accounting/models/allocation.py +++ b/xero_python/accounting/models/allocation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 d1243b66..a800a57b 100644 --- a/xero_python/accounting/models/allocations.py +++ b/xero_python/accounting/models/allocations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 05d94eda..1e68ee45 100644 --- a/xero_python/accounting/models/attachment.py +++ b/xero_python/accounting/models/attachment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 7e9ed21b..4d29b504 100644 --- a/xero_python/accounting/models/attachments.py +++ b/xero_python/accounting/models/attachments.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 a821b15a..a56d89c0 100644 --- a/xero_python/accounting/models/balances.py +++ b/xero_python/accounting/models/balances.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 89ad85d6..0679da4b 100644 --- a/xero_python/accounting/models/bank_transaction.py +++ b/xero_python/accounting/models/bank_transaction.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/bank_transactions.py b/xero_python/accounting/models/bank_transactions.py index 74b142f6..076082a2 100644 --- a/xero_python/accounting/models/bank_transactions.py +++ b/xero_python/accounting/models/bank_transactions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 b257a3cd..54f9b07a 100644 --- a/xero_python/accounting/models/bank_transfer.py +++ b/xero_python/accounting/models/bank_transfer.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -33,7 +33,7 @@ class BankTransfer(BaseModel): openapi_types = { "from_bank_account": "Account", "to_bank_account": "Account", - "amount": "str", + "amount": "float", "date": "date[ms-format]", "bank_transfer_id": "str", "currency_rate": "float", @@ -164,7 +164,7 @@ def amount(self): amount of the transaction # noqa: E501 :return: The amount of this BankTransfer. # noqa: E501 - :rtype: str + :rtype: float """ return self._amount @@ -175,7 +175,7 @@ def amount(self, amount): amount of the transaction # noqa: E501 :param amount: The amount of this BankTransfer. # noqa: E501 - :type: str + :type: float """ if amount is None: raise ValueError( diff --git a/xero_python/accounting/models/bank_transfers.py b/xero_python/accounting/models/bank_transfers.py index 5b1dc8d6..f90cc68c 100644 --- a/xero_python/accounting/models/bank_transfers.py +++ b/xero_python/accounting/models/bank_transfers.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 5b6203f3..af5ec130 100644 --- a/xero_python/accounting/models/batch_payment.py +++ b/xero_python/accounting/models/batch_payment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/batch_payment_details.py b/xero_python/accounting/models/batch_payment_details.py index 07cc97cd..9ef72be7 100644 --- a/xero_python/accounting/models/batch_payment_details.py +++ b/xero_python/accounting/models/batch_payment_details.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 189cd52b..a1613b62 100644 --- a/xero_python/accounting/models/batch_payments.py +++ b/xero_python/accounting/models/batch_payments.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 a415a71d..703ec273 100644 --- a/xero_python/accounting/models/bill.py +++ b/xero_python/accounting/models/bill.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 53268931..614fc178 100644 --- a/xero_python/accounting/models/branding_theme.py +++ b/xero_python/accounting/models/branding_theme.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/branding_themes.py b/xero_python/accounting/models/branding_themes.py index 03a40a26..3f98ace9 100644 --- a/xero_python/accounting/models/branding_themes.py +++ b/xero_python/accounting/models/branding_themes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 e3a5bc27..247630bd 100644 --- a/xero_python/accounting/models/cis_org_setting.py +++ b/xero_python/accounting/models/cis_org_setting.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 bfaf6d68..2b9263f5 100644 --- a/xero_python/accounting/models/cis_setting.py +++ b/xero_python/accounting/models/cis_setting.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 eb078d75..2273f531 100644 --- a/xero_python/accounting/models/cis_settings.py +++ b/xero_python/accounting/models/cis_settings.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 1b04df8c..6c1c4b0b 100644 --- a/xero_python/accounting/models/contact.py +++ b/xero_python/accounting/models/contact.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -153,7 +153,7 @@ def __init__( attachments=None, has_attachments=False, validation_errors=None, - has_validation_errors=None, + has_validation_errors=False, status_attribute_string=None, ): # noqa: E501 """Contact - a model defined in OpenAPI""" # noqa: E501 diff --git a/xero_python/accounting/models/contact_group.py b/xero_python/accounting/models/contact_group.py index e68dcc3e..c2221b82 100644 --- a/xero_python/accounting/models/contact_group.py +++ b/xero_python/accounting/models/contact_group.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/contact_groups.py b/xero_python/accounting/models/contact_groups.py index c1217abf..fa9e996d 100644 --- a/xero_python/accounting/models/contact_groups.py +++ b/xero_python/accounting/models/contact_groups.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 b851cee7..8b319da6 100644 --- a/xero_python/accounting/models/contact_person.py +++ b/xero_python/accounting/models/contact_person.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 9aed1fdf..37de51b8 100644 --- a/xero_python/accounting/models/contacts.py +++ b/xero_python/accounting/models/contacts.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 aea93701..63fed9b7 100644 --- a/xero_python/accounting/models/country_code.py +++ b/xero_python/accounting/models/country_code.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 d321d36c..e13d04b5 100644 --- a/xero_python/accounting/models/credit_note.py +++ b/xero_python/accounting/models/credit_note.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -114,7 +114,7 @@ def __init__( branding_theme_id=None, status_attribute_string=None, has_attachments=False, - has_errors=None, + has_errors=False, validation_errors=None, ): # noqa: E501 """CreditNote - a model defined in OpenAPI""" # noqa: E501 diff --git a/xero_python/accounting/models/credit_notes.py b/xero_python/accounting/models/credit_notes.py index 7aac5d77..eec557ca 100644 --- a/xero_python/accounting/models/credit_notes.py +++ b/xero_python/accounting/models/credit_notes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 d766b9aa..0fcabdbf 100644 --- a/xero_python/accounting/models/currencies.py +++ b/xero_python/accounting/models/currencies.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 454eee47..c04ca712 100644 --- a/xero_python/accounting/models/currency.py +++ b/xero_python/accounting/models/currency.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 b062d1ff..77054a95 100644 --- a/xero_python/accounting/models/currency_code.py +++ b/xero_python/accounting/models/currency_code.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 846c7c7e..9249a74b 100644 --- a/xero_python/accounting/models/element.py +++ b/xero_python/accounting/models/element.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 3db24ff8..c736840c 100644 --- a/xero_python/accounting/models/employee.py +++ b/xero_python/accounting/models/employee.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/employees.py b/xero_python/accounting/models/employees.py index 19ffc7bf..6251533a 100644 --- a/xero_python/accounting/models/employees.py +++ b/xero_python/accounting/models/employees.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 5c7f7821..4522a29e 100644 --- a/xero_python/accounting/models/error.py +++ b/xero_python/accounting/models/error.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 7eb67649..cbf2924f 100644 --- a/xero_python/accounting/models/expense_claim.py +++ b/xero_python/accounting/models/expense_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -99,7 +99,8 @@ def __init__( self.payments = payments if user is not None: self.user = user - self.receipts = receipts + if receipts is not None: + self.receipts = receipts if updated_date_utc is not None: self.updated_date_utc = updated_date_utc if total is not None: @@ -108,10 +109,12 @@ def __init__( self.amount_due = amount_due if amount_paid is not None: self.amount_paid = amount_paid - self.payment_due_date = payment_due_date + if payment_due_date is not None: + self.payment_due_date = payment_due_date if reporting_date is not None: self.reporting_date = reporting_date - self.receipt_id = receipt_id + if receipt_id is not None: + self.receipt_id = receipt_id @property def expense_claim_id(self): diff --git a/xero_python/accounting/models/expense_claims.py b/xero_python/accounting/models/expense_claims.py index 73ec2414..27c6e0ac 100644 --- a/xero_python/accounting/models/expense_claims.py +++ b/xero_python/accounting/models/expense_claims.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 c4f078c5..295b4c16 100644 --- a/xero_python/accounting/models/external_link.py +++ b/xero_python/accounting/models/external_link.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/history_record.py b/xero_python/accounting/models/history_record.py index 0e2a13a0..87ab3763 100644 --- a/xero_python/accounting/models/history_record.py +++ b/xero_python/accounting/models/history_record.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 c6949065..fd8738da 100644 --- a/xero_python/accounting/models/history_records.py +++ b/xero_python/accounting/models/history_records.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 e55a1fec..e2595183 100644 --- a/xero_python/accounting/models/invoice.py +++ b/xero_python/accounting/models/invoice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -148,7 +148,7 @@ def __init__( updated_date_utc=None, credit_notes=None, attachments=None, - has_errors=None, + has_errors=False, status_attribute_string=None, validation_errors=None, warnings=None, diff --git a/xero_python/accounting/models/invoice_reminder.py b/xero_python/accounting/models/invoice_reminder.py index aa9e6eea..9fccf9e6 100644 --- a/xero_python/accounting/models/invoice_reminder.py +++ b/xero_python/accounting/models/invoice_reminder.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 75f6bb79..a8e41d4b 100644 --- a/xero_python/accounting/models/invoice_reminders.py +++ b/xero_python/accounting/models/invoice_reminders.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 c30718fe..7fcb2829 100644 --- a/xero_python/accounting/models/invoices.py +++ b/xero_python/accounting/models/invoices.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 1dd653b1..a3f63422 100644 --- a/xero_python/accounting/models/item.py +++ b/xero_python/accounting/models/item.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 8df99ac7..2c1598f7 100644 --- a/xero_python/accounting/models/items.py +++ b/xero_python/accounting/models/items.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 94ee5f64..55a459c0 100644 --- a/xero_python/accounting/models/journal.py +++ b/xero_python/accounting/models/journal.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/journal_line.py b/xero_python/accounting/models/journal_line.py index 18c0e513..165e9b76 100644 --- a/xero_python/accounting/models/journal_line.py +++ b/xero_python/accounting/models/journal_line.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 e4647554..ab3909d6 100644 --- a/xero_python/accounting/models/journals.py +++ b/xero_python/accounting/models/journals.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 79920684..10e91f9f 100644 --- a/xero_python/accounting/models/line_amount_types.py +++ b/xero_python/accounting/models/line_amount_types.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 2b11f257..5178a1be 100644 --- a/xero_python/accounting/models/line_item.py +++ b/xero_python/accounting/models/line_item.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 a74134c5..f98350ca 100644 --- a/xero_python/accounting/models/line_item_tracking.py +++ b/xero_python/accounting/models/line_item_tracking.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 16051e0a..690d51ff 100644 --- a/xero_python/accounting/models/linked_transaction.py +++ b/xero_python/accounting/models/linked_transaction.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/linked_transactions.py b/xero_python/accounting/models/linked_transactions.py index 7a83ea12..3b5deeb6 100644 --- a/xero_python/accounting/models/linked_transactions.py +++ b/xero_python/accounting/models/linked_transactions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 185139d7..60827cf6 100644 --- a/xero_python/accounting/models/manual_journal.py +++ b/xero_python/accounting/models/manual_journal.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/manual_journal_line.py b/xero_python/accounting/models/manual_journal_line.py index 9c84fba1..c3ed869c 100644 --- a/xero_python/accounting/models/manual_journal_line.py +++ b/xero_python/accounting/models/manual_journal_line.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 716163f1..ac5144ec 100644 --- a/xero_python/accounting/models/manual_journals.py +++ b/xero_python/accounting/models/manual_journals.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 3ba92f2d..fcc2289c 100644 --- a/xero_python/accounting/models/online_invoice.py +++ b/xero_python/accounting/models/online_invoice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 3bf0e9b7..f90fcdca 100644 --- a/xero_python/accounting/models/online_invoices.py +++ b/xero_python/accounting/models/online_invoices.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 9c8335ba..cc3f467d 100644 --- a/xero_python/accounting/models/organisation.py +++ b/xero_python/accounting/models/organisation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/organisations.py b/xero_python/accounting/models/organisations.py index 34266f42..658afdc4 100644 --- a/xero_python/accounting/models/organisations.py +++ b/xero_python/accounting/models/organisations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 f446cd4b..c418a7ec 100644 --- a/xero_python/accounting/models/overpayment.py +++ b/xero_python/accounting/models/overpayment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/overpayments.py b/xero_python/accounting/models/overpayments.py index 22b1ec8d..67e8dc92 100644 --- a/xero_python/accounting/models/overpayments.py +++ b/xero_python/accounting/models/overpayments.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 01733c01..5a06a87f 100644 --- a/xero_python/accounting/models/payment.py +++ b/xero_python/accounting/models/payment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -53,6 +53,7 @@ class Payment(BaseModel): "details": "str", "has_account": "bool", "has_validation_errors": "bool", + "status_attribute_string": "str", "validation_errors": "list[ValidationError]", } @@ -79,6 +80,7 @@ class Payment(BaseModel): "details": "Details", "has_account": "HasAccount", "has_validation_errors": "HasValidationErrors", + "status_attribute_string": "StatusAttributeString", "validation_errors": "ValidationErrors", } @@ -104,8 +106,9 @@ def __init__( bank_account_number=None, particulars=None, details=None, - has_account=None, - has_validation_errors=None, + has_account=False, + has_validation_errors=False, + status_attribute_string=None, validation_errors=None, ): # noqa: E501 """Payment - a model defined in OpenAPI""" # noqa: E501 @@ -132,6 +135,7 @@ def __init__( self._details = None self._has_account = None self._has_validation_errors = None + self._status_attribute_string = None self._validation_errors = None self.discriminator = None @@ -179,6 +183,8 @@ def __init__( self.has_account = has_account if has_validation_errors is not None: self.has_validation_errors = has_validation_errors + if status_attribute_string is not None: + self.status_attribute_string = status_attribute_string if validation_errors is not None: self.validation_errors = validation_errors @@ -701,6 +707,29 @@ def has_validation_errors(self, has_validation_errors): self._has_validation_errors = has_validation_errors + @property + def status_attribute_string(self): + """Gets the status_attribute_string of this Payment. # noqa: E501 + + A string to indicate if a invoice status # noqa: E501 + + :return: The status_attribute_string of this Payment. # noqa: E501 + :rtype: str + """ + return self._status_attribute_string + + @status_attribute_string.setter + def status_attribute_string(self, status_attribute_string): + """Sets the status_attribute_string of this Payment. + + A string to indicate if a invoice status # noqa: E501 + + :param status_attribute_string: The status_attribute_string of this Payment. # noqa: E501 + :type: str + """ + + self._status_attribute_string = status_attribute_string + @property def validation_errors(self): """Gets the validation_errors of this Payment. # noqa: E501 diff --git a/xero_python/accounting/models/payment_delete.py b/xero_python/accounting/models/payment_delete.py index 1b9f4c08..431d151e 100644 --- a/xero_python/accounting/models/payment_delete.py +++ b/xero_python/accounting/models/payment_delete.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 b5f1d98d..d80c3bdd 100644 --- a/xero_python/accounting/models/payment_service.py +++ b/xero_python/accounting/models/payment_service.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 ed92d0ac..f95e89bc 100644 --- a/xero_python/accounting/models/payment_services.py +++ b/xero_python/accounting/models/payment_services.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 38335ee6..3299b7c5 100644 --- a/xero_python/accounting/models/payment_term.py +++ b/xero_python/accounting/models/payment_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 e53288a3..bd9a432f 100644 --- a/xero_python/accounting/models/payment_term_type.py +++ b/xero_python/accounting/models/payment_term_type.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 0f8cb00e..fa1cb630 100644 --- a/xero_python/accounting/models/payments.py +++ b/xero_python/accounting/models/payments.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 cddad9ae..b4d1cefe 100644 --- a/xero_python/accounting/models/phone.py +++ b/xero_python/accounting/models/phone.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/prepayment.py b/xero_python/accounting/models/prepayment.py index 80b48e01..43a0a7fa 100644 --- a/xero_python/accounting/models/prepayment.py +++ b/xero_python/accounting/models/prepayment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/prepayments.py b/xero_python/accounting/models/prepayments.py index 6c700341..bc772992 100644 --- a/xero_python/accounting/models/prepayments.py +++ b/xero_python/accounting/models/prepayments.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 f234eff8..0720070d 100644 --- a/xero_python/accounting/models/purchase.py +++ b/xero_python/accounting/models/purchase.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 cfe19397..024e70cb 100644 --- a/xero_python/accounting/models/purchase_order.py +++ b/xero_python/accounting/models/purchase_order.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/purchase_orders.py b/xero_python/accounting/models/purchase_orders.py index 122fb032..41a2a62e 100644 --- a/xero_python/accounting/models/purchase_orders.py +++ b/xero_python/accounting/models/purchase_orders.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 1ae9112a..a733ff8f 100644 --- a/xero_python/accounting/models/quote.py +++ b/xero_python/accounting/models/quote.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 818364ae..cc34d3d5 100644 --- a/xero_python/accounting/models/quote_line_amount_types.py +++ b/xero_python/accounting/models/quote_line_amount_types.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 b88175fa..1e055e3f 100644 --- a/xero_python/accounting/models/quote_status_codes.py +++ b/xero_python/accounting/models/quote_status_codes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 d83600f5..bfa882e2 100644 --- a/xero_python/accounting/models/quotes.py +++ b/xero_python/accounting/models/quotes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 b429df97..6e8a524b 100644 --- a/xero_python/accounting/models/receipt.py +++ b/xero_python/accounting/models/receipt.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/receipts.py b/xero_python/accounting/models/receipts.py index d4575311..81042685 100644 --- a/xero_python/accounting/models/receipts.py +++ b/xero_python/accounting/models/receipts.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 ef695303..f71a8bd2 100644 --- a/xero_python/accounting/models/repeating_invoice.py +++ b/xero_python/accounting/models/repeating_invoice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/repeating_invoices.py b/xero_python/accounting/models/repeating_invoices.py index 25afb409..0e4a3ad1 100644 --- a/xero_python/accounting/models/repeating_invoices.py +++ b/xero_python/accounting/models/repeating_invoices.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 10f9265e..97652e68 100644 --- a/xero_python/accounting/models/report.py +++ b/xero_python/accounting/models/report.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/report_attribute.py b/xero_python/accounting/models/report_attribute.py index a89ac66b..9ec866d9 100644 --- a/xero_python/accounting/models/report_attribute.py +++ b/xero_python/accounting/models/report_attribute.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 936aaf9f..b8b92c75 100644 --- a/xero_python/accounting/models/report_cell.py +++ b/xero_python/accounting/models/report_cell.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 d3202444..b0733ff0 100644 --- a/xero_python/accounting/models/report_fields.py +++ b/xero_python/accounting/models/report_fields.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 578b9287..312c632f 100644 --- a/xero_python/accounting/models/report_row.py +++ b/xero_python/accounting/models/report_row.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 6590bcc7..4a0813b4 100644 --- a/xero_python/accounting/models/report_rows.py +++ b/xero_python/accounting/models/report_rows.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 d864f625..fdf22dfe 100644 --- a/xero_python/accounting/models/report_with_row.py +++ b/xero_python/accounting/models/report_with_row.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 07769a88..d8e46471 100644 --- a/xero_python/accounting/models/report_with_rows.py +++ b/xero_python/accounting/models/report_with_rows.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 7defa279..664ec061 100644 --- a/xero_python/accounting/models/reports.py +++ b/xero_python/accounting/models/reports.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 ed9d9baf..c8bae73d 100644 --- a/xero_python/accounting/models/request_empty.py +++ b/xero_python/accounting/models/request_empty.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 c0390ea2..84550774 100644 --- a/xero_python/accounting/models/row_type.py +++ b/xero_python/accounting/models/row_type.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 2b78d7bc..09a58ff7 100644 --- a/xero_python/accounting/models/sales_tracking_category.py +++ b/xero_python/accounting/models/sales_tracking_category.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 64079ecc..58f6051e 100644 --- a/xero_python/accounting/models/schedule.py +++ b/xero_python/accounting/models/schedule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 434ee601..ccb70678 100644 --- a/xero_python/accounting/models/tax_component.py +++ b/xero_python/accounting/models/tax_component.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 1086fd8f..4dc84885 100644 --- a/xero_python/accounting/models/tax_rate.py +++ b/xero_python/accounting/models/tax_rate.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/tax_rates.py b/xero_python/accounting/models/tax_rates.py index 2e449a1f..8a332a53 100644 --- a/xero_python/accounting/models/tax_rates.py +++ b/xero_python/accounting/models/tax_rates.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 7e505f5b..8b3b8e73 100644 --- a/xero_python/accounting/models/tax_type.py +++ b/xero_python/accounting/models/tax_type.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/ten_nintey_nine_contact.py b/xero_python/accounting/models/ten_nintey_nine_contact.py index a9697add..137ca5a8 100644 --- a/xero_python/accounting/models/ten_nintey_nine_contact.py +++ b/xero_python/accounting/models/ten_nintey_nine_contact.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 45461259..d99a5c3b 100644 --- a/xero_python/accounting/models/time_zone.py +++ b/xero_python/accounting/models/time_zone.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 7ad39dc8..1edc2203 100644 --- a/xero_python/accounting/models/tracking_categories.py +++ b/xero_python/accounting/models/tracking_categories.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 461dbdc7..734d6d94 100644 --- a/xero_python/accounting/models/tracking_category.py +++ b/xero_python/accounting/models/tracking_category.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/tracking_option.py b/xero_python/accounting/models/tracking_option.py index 0759d6ec..8f15ca4a 100644 --- a/xero_python/accounting/models/tracking_option.py +++ b/xero_python/accounting/models/tracking_option.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/tracking_options.py b/xero_python/accounting/models/tracking_options.py index 152a5907..397462f9 100644 --- a/xero_python/accounting/models/tracking_options.py +++ b/xero_python/accounting/models/tracking_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 bd6ae31e..8856b3ff 100644 --- a/xero_python/accounting/models/user.py +++ b/xero_python/accounting/models/user.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/accounting/models/users.py b/xero_python/accounting/models/users.py index 75c8dd69..7508a0d2 100644 --- a/xero_python/accounting/models/users.py +++ b/xero_python/accounting/models/users.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 b7bc1eae..c6a08fec 100644 --- a/xero_python/accounting/models/validation_error.py +++ b/xero_python/accounting/models/validation_error.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 db0b9678..60a17eba 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.1.2 -- Package version: 0.2.1 +- API version: 2.1.6 +- Package version: 0.2.2 - 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 121556e5..15e043d3 100644 --- a/xero_python/identity/__init__.py +++ b/xero_python/identity/__init__.py @@ -7,7 +7,7 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 a74fa4b4..7939393f 100644 --- a/xero_python/identity/api/identity_api.py +++ b/xero_python/identity/api/identity_api.py @@ -5,7 +5,7 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -79,7 +79,9 @@ def delete_connection( ) collection_formats = {} - path_params = {"id": id} + path_params = { + "id": id, + } query_params = [] @@ -115,11 +117,16 @@ def delete_connection( raise translate_status_exception(error, self, "delete_connection") def get_connections( - self, _return_http_data_only=True, _preload_content=True, _request_timeout=None + self, + auth_event_id=empty, + _return_http_data_only=True, + _preload_content=True, + _request_timeout=None, ): """Allows you to retrieve the connections for this user # noqa: E501 OAuth2 scope: N/A Override the base server url that include version # noqa: E501 + :param str auth_event_id: Filter by authEventId :param bool _return_http_data_only: return received data only :param bool _preload_content: load received data in models :param bool _request_timeout: maximum wait time for response @@ -131,6 +138,9 @@ def get_connections( query_params = [] + if auth_event_id is not empty: + query_params.append(("authEventId", auth_event_id)) + header_params = {} local_var_files = {} diff --git a/xero_python/identity/docs/Connection.md b/xero_python/identity/docs/Connection.md index 218cfe25..1913a4e4 100644 --- a/xero_python/identity/docs/Connection.md +++ b/xero_python/identity/docs/Connection.md @@ -5,10 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | Xero identifier | [optional] **tenant_id** | **str** | Xero identifier of organisation | [optional] +**auth_event_id** | **str** | Identifier shared across connections authorised at the same time | [optional] **tenant_type** | **str** | Xero tenant type (i.e. ORGANISATION, PRACTICE) | [optional] **tenant_name** | **str** | Xero tenant name | [optional] -**created_date_utc** | **str** | The date when the user connected this tenant to your app | [optional] -**updated_date_utc** | **str** | The date when the user most recently connected this tenant to your app. May differ to the created date if the user has disconnected and subsequently reconnected this tenant to your app. | [optional] +**created_date_utc** | **datetime** | The date when the user connected this tenant to your app | [optional] +**updated_date_utc** | **datetime** | The date when the user most recently connected this tenant to your app. May differ to the created date if the user has disconnected and subsequently reconnected this tenant to your app. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/xero_python/identity/docs/IdentityApi.md b/xero_python/identity/docs/IdentityApi.md index e5cb6d04..619feb93 100644 --- a/xero_python/identity/docs/IdentityApi.md +++ b/xero_python/identity/docs/IdentityApi.md @@ -71,7 +71,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_connections** -> list[Connection] get_connections() +> list[Connection] get_connections(auth_event_id=auth_event_id) Allows you to retrieve the connections for this user @@ -103,16 +103,20 @@ api_client = ApiClient( # create an instance of the API class api_instance = IdentityApi(api_client) +auth_event_id = '00000000-0000-0000-000-000000000000' # str | Filter by authEventId (optional) try: # Allows you to retrieve the connections for this user - api_response = api_instance.get_connections() + api_response = api_instance.get_connections(auth_event_id=auth_event_id) pprint(api_response) except ApiException as e: print("Exception when calling IdentityApi->get_connections: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_event_id** | [**str**](.md)| Filter by authEventId | [optional] ### Return type diff --git a/xero_python/identity/models/__init__.py b/xero_python/identity/models/__init__.py index a157b3f4..f9fdb6fd 100644 --- a/xero_python/identity/models/__init__.py +++ b/xero_python/identity/models/__init__.py @@ -6,7 +6,7 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 eac0395a..9b359abb 100644 --- a/xero_python/identity/models/access_token.py +++ b/xero_python/identity/models/access_token.py @@ -5,7 +5,7 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 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 f40a4f21..e55f90a4 100644 --- a/xero_python/identity/models/connection.py +++ b/xero_python/identity/models/connection.py @@ -5,7 +5,7 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ @@ -33,15 +33,17 @@ class Connection(BaseModel): openapi_types = { "id": "str", "tenant_id": "str", + "auth_event_id": "str", "tenant_type": "str", "tenant_name": "str", - "created_date_utc": "str", - "updated_date_utc": "str", + "created_date_utc": "datetime", + "updated_date_utc": "datetime", } attribute_map = { "id": "id", "tenant_id": "tenantId", + "auth_event_id": "authEventId", "tenant_type": "tenantType", "tenant_name": "tenantName", "created_date_utc": "createdDateUTC", @@ -52,6 +54,7 @@ def __init__( self, id=None, tenant_id=None, + auth_event_id=None, tenant_type=None, tenant_name=None, created_date_utc=None, @@ -61,6 +64,7 @@ def __init__( self._id = None self._tenant_id = None + self._auth_event_id = None self._tenant_type = None self._tenant_name = None self._created_date_utc = None @@ -71,6 +75,8 @@ def __init__( self.id = id if tenant_id is not None: self.tenant_id = tenant_id + if auth_event_id is not None: + self.auth_event_id = auth_event_id if tenant_type is not None: self.tenant_type = tenant_type if tenant_name is not None: @@ -126,6 +132,29 @@ def tenant_id(self, tenant_id): self._tenant_id = tenant_id + @property + def auth_event_id(self): + """Gets the auth_event_id of this Connection. # noqa: E501 + + Identifier shared across connections authorised at the same time # noqa: E501 + + :return: The auth_event_id of this Connection. # noqa: E501 + :rtype: str + """ + return self._auth_event_id + + @auth_event_id.setter + def auth_event_id(self, auth_event_id): + """Sets the auth_event_id of this Connection. + + Identifier shared across connections authorised at the same time # noqa: E501 + + :param auth_event_id: The auth_event_id of this Connection. # noqa: E501 + :type: str + """ + + self._auth_event_id = auth_event_id + @property def tenant_type(self): """Gets the tenant_type of this Connection. # noqa: E501 @@ -179,7 +208,7 @@ def created_date_utc(self): The date when the user connected this tenant to your app # noqa: E501 :return: The created_date_utc of this Connection. # noqa: E501 - :rtype: str + :rtype: datetime """ return self._created_date_utc @@ -190,7 +219,7 @@ def created_date_utc(self, created_date_utc): The date when the user connected this tenant to your app # noqa: E501 :param created_date_utc: The created_date_utc of this Connection. # noqa: E501 - :type: str + :type: datetime """ self._created_date_utc = created_date_utc @@ -202,7 +231,7 @@ def updated_date_utc(self): The date when the user most recently connected this tenant to your app. May differ to the created date if the user has disconnected and subsequently reconnected this tenant to your app. # noqa: E501 :return: The updated_date_utc of this Connection. # noqa: E501 - :rtype: str + :rtype: datetime """ return self._updated_date_utc @@ -213,7 +242,7 @@ def updated_date_utc(self, updated_date_utc): The date when the user most recently connected this tenant to your app. May differ to the created date if the user has disconnected and subsequently reconnected this tenant to your app. # noqa: E501 :param updated_date_utc: The updated_date_utc of this Connection. # noqa: E501 - :type: str + :type: datetime """ self._updated_date_utc = updated_date_utc diff --git a/xero_python/identity/models/refresh_token.py b/xero_python/identity/models/refresh_token.py index 084e788f..fe4c4dd0 100644 --- a/xero_python/identity/models/refresh_token.py +++ b/xero_python/identity/models/refresh_token.py @@ -5,7 +5,7 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ diff --git a/xero_python/rest.py b/xero_python/rest.py index 0207bf7f..7af2b1f0 100644 --- a/xero_python/rest.py +++ b/xero_python/rest.py @@ -5,7 +5,7 @@ This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 - OpenAPI spec version: 2.1.2 + OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """