diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index bae82c09..29ab224f 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -2859,6 +2859,267 @@ "externalDocs" : { "url" : "http://developer.xero.com/documentation/api/organisation/" } +}; + defs["GetBankTransactionsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "BankTransactions" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/BankTransaction" + } + } + }, + "description" : "" +}; + defs["GetContactsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Contacts" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Contact" + } + } + }, + "description" : "" +}; + defs["GetCreditNotesResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "CreditNotes" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CreditNote" + } + } + }, + "description" : "" +}; + defs["GetInvoicesResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Invoices" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Invoice" + } + } + }, + "description" : "" +}; + defs["GetManualJournalsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "ManualJournals" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ManualJournal" + } + } + }, + "description" : "" +}; + defs["GetOverpaymentsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Overpayments" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Overpayment" + } + } + }, + "description" : "" +}; + defs["GetPaymentsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Payments" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Payment" + } + } + }, + "description" : "" +}; + defs["GetPrepaymentsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Prepayments" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Prepayment" + } + } + }, + "description" : "" +}; + defs["GetPurchaseOrdersResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "PurchaseOrders" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PurchaseOrder" + } + } + }, + "description" : "" }; defs["HistoryRecord"] = { "title" : "", @@ -4247,6 +4508,25 @@ }, "description" : "", "x-isObjectArray" : true +}; + defs["PageInfo"] = { + "title" : "", + "type" : "object", + "properties" : { + "Page" : { + "type" : "integer" + }, + "PageSize" : { + "type" : "integer" + }, + "TotalPages" : { + "type" : "integer" + }, + "TotalRows" : { + "type" : "integer" + } + }, + "description" : "Pagination information" }; defs["Payment"] = { "title" : "", @@ -6100,7 +6380,7 @@ SDK: - VSN: 4.0.0 + VSN: 5.0.0 Methods createAccount @@ -21163,7 +21443,7 @@ Usage and SDK Samples order = 'Type ASC' try: - api_response = api_instance.get_bank_transactions(xero_tenant_id, if_modified_since, where, order, page, unitdp) + api_response = api_instance.get_bank_transactions(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize) print(api_response) except AccountingBadRequestException as e: print("Exception when calling AccountingApi->getBankTransactions: %s\n" % e) @@ -21321,6 +21601,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -24810,7 +25110,7 @@ Usage and SDK Samples search_term = 'Joe Bloggs' try: - api_response = api_instance.get_contacts(xero_tenant_id, if_modified_since, where, order, ids, page, include_archived, summary_only, search_term) + api_response = api_instance.get_contacts(xero_tenant_id, if_modified_since, where, order, ids, page, include_archived, summary_only, search_term, pageSize) print(api_response) except AccountingBadRequestException as e: print("Exception when calling AccountingApi->getContacts: %s\n" % e) @@ -25031,6 +25331,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -25981,7 +26301,7 @@ Usage and SDK Samples order = 'CreditNoteNumber ASC' try: - api_response = api_instance.get_credit_notes(xero_tenant_id, if_modified_since, where, order, page, unitdp) + api_response = api_instance.get_credit_notes(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize) print(api_response) except AccountingBadRequestException as e: print("Exception when calling AccountingApi->getCreditNotes: %s\n" % e) @@ -26139,6 +26459,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -28058,7 +28398,7 @@ Usage and SDK Samples summary_only = 'True' try: - api_response = api_instance.get_invoices(xero_tenant_id, if_modified_since, where, order, ids, invoice_numbers, contact_ids, statuses, page, include_archived, created_by_my_app, unitdp, summary_only) + api_response = api_instance.get_invoices(xero_tenant_id, if_modified_since, where, order, ids, invoice_numbers, contact_ids, statuses, page, include_archived, created_by_my_app, unitdp, summary_only, pageSize) print(api_response) except AccountingBadRequestException as e: print("Exception when calling AccountingApi->getInvoices: %s\n" % e) @@ -28362,6 +28702,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -30274,7 +30634,7 @@ Usage and SDK Samples order = 'Date ASC' try: - api_response = api_instance.get_manual_journals(xero_tenant_id, if_modified_since, where, order, page) + api_response = api_instance.get_manual_journals(xero_tenant_id, if_modified_since, where, order, page, pageSize) print(api_response) except AccountingBadRequestException as e: print("Exception when calling AccountingApi->getManualJournals: %s\n" % e) @@ -30412,6 +30772,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -31853,7 +32233,7 @@ Usage and SDK Samples order = 'Amount ASC' try: - api_response = api_instance.get_payments(xero_tenant_id, if_modified_since, where, order, page) + api_response = api_instance.get_payments(xero_tenant_id, if_modified_since, where, order, page, pageSize) print(api_response) except AccountingBadRequestException as e: print("Exception when calling AccountingApi->getPayments: %s\n" % e) @@ -31991,6 +32371,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -33508,7 +33908,7 @@ Usage and SDK Samples order = 'PurchaseOrderNumber ASC' try: - api_response = api_instance.get_purchase_orders(xero_tenant_id, if_modified_since, status, date_from, date_to, order, page) + api_response = api_instance.get_purchase_orders(xero_tenant_id, if_modified_since, status, date_from, date_to, order, page, pageSize) print(api_response) except AccountingBadRequestException as e: print("Exception when calling AccountingApi->getPurchaseOrders: %s\n" % e) @@ -33686,6 +34086,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + diff --git a/docs/v1/appstore/index.html b/docs/v1/appstore/index.html index 403bb960..c56f5531 100644 --- a/docs/v1/appstore/index.html +++ b/docs/v1/appstore/index.html @@ -1241,7 +1241,7 @@ SDK: - VSN: 4.0.0 + VSN: 5.0.0 Methods getSubscription diff --git a/docs/v1/assets/index.html b/docs/v1/assets/index.html index 6b661cdf..cd648d64 100644 --- a/docs/v1/assets/index.html +++ b/docs/v1/assets/index.html @@ -1392,7 +1392,7 @@ SDK: - VSN: 4.0.0 + VSN: 5.0.0 Methods createAsset diff --git a/docs/v1/files/index.html b/docs/v1/files/index.html index f0874f3c..bebe6f93 100644 --- a/docs/v1/files/index.html +++ b/docs/v1/files/index.html @@ -1170,7 +1170,7 @@ SDK: - VSN: 4.0.0 + VSN: 5.0.0 Methods createFileAssociation diff --git a/docs/v1/finance/index.html b/docs/v1/finance/index.html index ffa9f53c..ca4b71c9 100644 --- a/docs/v1/finance/index.html +++ b/docs/v1/finance/index.html @@ -1529,91 +1529,94 @@ "properties" : { "directBankFeed" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true }, "indirectBankFeed" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data.", + "description" : "No longer in use.", "format" : "double", + "deprecated" : true, "x-is-money" : true }, "fileUpload" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true }, "manual" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true }, "directBankFeedPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "indirectBankFeedPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "No longer in use.", "format" : "double", + "deprecated" : true, "x-is-money" : true }, "fileUploadPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "manualPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "directBankFeedNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "indirectBankFeedNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "No longer in use.", "format" : "double", + "deprecated" : true, "x-is-money" : true }, "fileUploadNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "manualNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "otherPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "otherNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "other" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true } @@ -2734,7 +2737,7 @@ SDK: - VSN: 4.0.0 + VSN: 5.0.0 Methods getAccountingActivityAccountUsage diff --git a/docs/v1/payroll-au/index.html b/docs/v1/payroll-au/index.html index 4466a743..aeb99473 100644 --- a/docs/v1/payroll-au/index.html +++ b/docs/v1/payroll-au/index.html @@ -3412,7 +3412,7 @@ SDK: - VSN: 4.0.0 + VSN: 5.0.0 Methods approveLeaveApplication diff --git a/docs/v1/payroll-nz/index.html b/docs/v1/payroll-nz/index.html index 68def9c3..61b39c15 100644 --- a/docs/v1/payroll-nz/index.html +++ b/docs/v1/payroll-nz/index.html @@ -3843,7 +3843,7 @@ SDK: - VSN: 4.0.0 + VSN: 5.0.0 Methods approveTimesheet diff --git a/docs/v1/payroll-uk/index.html b/docs/v1/payroll-uk/index.html index 7d4bb16c..9ad370f0 100644 --- a/docs/v1/payroll-uk/index.html +++ b/docs/v1/payroll-uk/index.html @@ -3510,7 +3510,7 @@ SDK: - VSN: 4.0.0 + VSN: 5.0.0 Methods approveTimesheet diff --git a/docs/v1/projects/index.html b/docs/v1/projects/index.html index 2ec3fe0d..03bd9c89 100644 --- a/docs/v1/projects/index.html +++ b/docs/v1/projects/index.html @@ -1462,7 +1462,7 @@ SDK: - VSN: 4.0.0 + VSN: 5.0.0 Methods createProject diff --git a/setup.py b/setup.py index 7f408a79..59e939c7 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="4.0.0", + version="5.0.0", ) diff --git a/tests/accounting/api/test_accounting_api.py b/tests/accounting/api/test_accounting_api.py index 77a86362..898d3f80 100644 --- a/tests/accounting/api/test_accounting_api.py +++ b/tests/accounting/api/test_accounting_api.py @@ -29,6 +29,7 @@ LineItem, Attachments, Attachment, + GetInvoicesResponse ) from xero_python.api_client import ApiClient from xero_python.rest import RESTClientObject @@ -94,11 +95,11 @@ def test_invoice_attachment_upload_and_download( """ # 1. get first page of invoices - invoices = accounting_api.get_invoices(xero_tenant_id, page=1) - assert isinstance(invoices, Invoices) - assert len(invoices.invoices) + invoiceResponse = accounting_api.get_invoices(xero_tenant_id, page=1) + assert isinstance(invoiceResponse, GetInvoicesResponse) + assert len(invoiceResponse.invoices) # 2. choose first invoice - invoice = invoices.invoices[0] + invoice = invoiceResponse.invoices[0] assert isinstance(invoice, Invoice) # 3. upload test pdf file as invoice attachment include_online = True @@ -341,7 +342,7 @@ def test_get_invoices(sandbox_accounting_api: AccountingApi, xero_tenant_id): # When getting all invoices result = sandbox_accounting_api.get_invoices(xero_tenant_id) # Then expect correct invoices received - expected = Invoices( + expected = GetInvoicesResponse( invoices=[ Invoice( amount_credited=Decimal("0.00"), @@ -473,7 +474,11 @@ def test_get_invoices(sandbox_accounting_api: AccountingApi, xero_tenant_id): 2018, 11, 2, 16, 37, 28, 927000, tzinfo=tz.UTC ), ), - ] + ], + provider_name = 'Provider Name Example', + status = 'OK', + date_time_utc = '/Date(1552326816230)/', + id = '900c500b-e83c-4ce2-902a-b8ba04751748' ) assert result == expected diff --git a/xero_python/__init__.py b/xero_python/__init__.py index 4e3cf907..597bfa3c 100644 --- a/xero_python/__init__.py +++ b/xero_python/__init__.py @@ -2,4 +2,4 @@ __author__ = """Xero Developer API""" __email__ = "api@xero.com" -__version__ = "4.0.0" +__version__ = "5.0.0" diff --git a/xero_python/accounting/__init__.py b/xero_python/accounting/__init__.py index c5f7c873..c1e7e1ce 100644 --- a/xero_python/accounting/__init__.py +++ b/xero_python/accounting/__init__.py @@ -76,6 +76,27 @@ from xero_python.accounting.models.expense_claim import ExpenseClaim from xero_python.accounting.models.expense_claims import ExpenseClaims from xero_python.accounting.models.external_link import ExternalLink +from xero_python.accounting.models.get_bank_transactions_response import ( + GetBankTransactionsResponse, +) +from xero_python.accounting.models.get_contacts_response import GetContactsResponse +from xero_python.accounting.models.get_credit_notes_response import ( + GetCreditNotesResponse, +) +from xero_python.accounting.models.get_invoices_response import GetInvoicesResponse +from xero_python.accounting.models.get_manual_journals_response import ( + GetManualJournalsResponse, +) +from xero_python.accounting.models.get_overpayments_response import ( + GetOverpaymentsResponse, +) +from xero_python.accounting.models.get_payments_response import GetPaymentsResponse +from xero_python.accounting.models.get_prepayments_response import ( + GetPrepaymentsResponse, +) +from xero_python.accounting.models.get_purchase_orders_response import ( + GetPurchaseOrdersResponse, +) from xero_python.accounting.models.history_record import HistoryRecord from xero_python.accounting.models.history_records import HistoryRecords from xero_python.accounting.models.import_summary import ImportSummary @@ -108,6 +129,7 @@ from xero_python.accounting.models.organisations import Organisations from xero_python.accounting.models.overpayment import Overpayment from xero_python.accounting.models.overpayments import Overpayments +from xero_python.accounting.models.page_info import PageInfo from xero_python.accounting.models.payment import Payment from xero_python.accounting.models.payment_delete import PaymentDelete from xero_python.accounting.models.payment_service import PaymentService diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py index 05189b0d..0f749e13 100644 --- a/xero_python/accounting/api/accounting_api.py +++ b/xero_python/accounting/api/accounting_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 4.0.0 + OpenAPI spec version: 5.0.0 """ import importlib @@ -7331,6 +7331,7 @@ def get_bank_transactions( order=empty, page=empty, unitdp=empty, + page_size=empty, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -7343,10 +7344,11 @@ def get_bank_transactions( :param str order: Order by an any element :param int page: Up to 100 bank transactions will be returned in a single API call with line items details :param int unitdp: e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts + :param int page_size: Number of records to retrieve per page :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: BankTransactions + :return: GetBankTransactionsResponse """ # verify the required parameter 'xero_tenant_id' is set @@ -7373,6 +7375,9 @@ def get_bank_transactions( if unitdp is not empty: query_params.append(("unitdp", unitdp)) + if page_size is not empty: + query_params.append(("pageSize", page_size)) + header_params = { "xero-tenant-id": xero_tenant_id, } @@ -7403,7 +7408,7 @@ def get_bank_transactions( body=body_params, post_params=form_params, files=local_var_files, - response_type="BankTransactions", + response_type="GetBankTransactionsResponse", response_model_finder=self.get_model_finder(), auth_settings=auth_settings, _return_http_data_only=_return_http_data_only, @@ -9358,6 +9363,7 @@ def get_contacts( include_archived=empty, summary_only=empty, search_term=empty, + page_size=empty, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -9373,10 +9379,11 @@ def get_contacts( :param bool include_archived: e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response :param bool summary_only: Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. :param str search_term: Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. + :param int page_size: Number of records to retrieve per page :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: Contacts + :return: GetContactsResponse """ # verify the required parameter 'xero_tenant_id' is set @@ -9414,6 +9421,9 @@ def get_contacts( if search_term is not empty: query_params.append(("searchTerm", search_term)) + if page_size is not empty: + query_params.append(("pageSize", page_size)) + header_params = { "xero-tenant-id": xero_tenant_id, } @@ -9444,7 +9454,7 @@ def get_contacts( body=body_params, post_params=form_params, files=local_var_files, - response_type="Contacts", + response_type="GetContactsResponse", response_model_finder=self.get_model_finder(), auth_settings=auth_settings, _return_http_data_only=_return_http_data_only, @@ -9968,6 +9978,7 @@ def get_credit_notes( order=empty, page=empty, unitdp=empty, + page_size=empty, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -9980,10 +9991,11 @@ def get_credit_notes( :param str order: Order by an any element :param int page: e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note :param int unitdp: e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts + :param int page_size: Number of records to retrieve per page :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: CreditNotes + :return: GetCreditNotesResponse """ # verify the required parameter 'xero_tenant_id' is set @@ -10010,6 +10022,9 @@ def get_credit_notes( if unitdp is not empty: query_params.append(("unitdp", unitdp)) + if page_size is not empty: + query_params.append(("pageSize", page_size)) + header_params = { "xero-tenant-id": xero_tenant_id, } @@ -10040,7 +10055,7 @@ def get_credit_notes( body=body_params, post_params=form_params, files=local_var_files, - response_type="CreditNotes", + response_type="GetCreditNotesResponse", response_model_finder=self.get_model_finder(), auth_settings=auth_settings, _return_http_data_only=_return_http_data_only, @@ -11099,6 +11114,7 @@ def get_invoices( created_by_my_app=empty, unitdp=empty, summary_only=empty, + page_size=empty, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -11118,10 +11134,11 @@ def get_invoices( :param bool created_by_my_app: When set to true you'll only retrieve Invoices created by your app :param int unitdp: e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts :param bool summary_only: Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. + :param int page_size: Number of records to retrieve per page :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: Invoices + :return: GetInvoicesResponse """ # verify the required parameter 'xero_tenant_id' is set @@ -11174,6 +11191,9 @@ def get_invoices( if summary_only is not empty: query_params.append(("summaryOnly", summary_only)) + if page_size is not empty: + query_params.append(("pageSize", page_size)) + header_params = { "xero-tenant-id": xero_tenant_id, } @@ -11204,7 +11224,7 @@ def get_invoices( body=body_params, post_params=form_params, files=local_var_files, - response_type="Invoices", + response_type="GetInvoicesResponse", response_model_finder=self.get_model_finder(), auth_settings=auth_settings, _return_http_data_only=_return_http_data_only, @@ -12219,6 +12239,7 @@ def get_manual_journals( where=empty, order=empty, page=empty, + page_size=empty, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -12230,10 +12251,11 @@ def get_manual_journals( :param str where: Filter by an any element :param str order: Order by an any element :param int page: e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment + :param int page_size: Number of records to retrieve per page :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: ManualJournals + :return: GetManualJournalsResponse """ # verify the required parameter 'xero_tenant_id' is set @@ -12257,6 +12279,9 @@ def get_manual_journals( if page is not empty: query_params.append(("page", page)) + if page_size is not empty: + query_params.append(("pageSize", page_size)) + header_params = { "xero-tenant-id": xero_tenant_id, } @@ -12287,7 +12312,7 @@ def get_manual_journals( body=body_params, post_params=form_params, files=local_var_files, - response_type="ManualJournals", + response_type="GetManualJournalsResponse", response_model_finder=self.get_model_finder(), auth_settings=auth_settings, _return_http_data_only=_return_http_data_only, @@ -12835,7 +12860,7 @@ def get_overpayments( :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: Overpayments + :return: GetOverpaymentsResponse """ # verify the required parameter 'xero_tenant_id' is set @@ -12892,7 +12917,7 @@ def get_overpayments( body=body_params, post_params=form_params, files=local_var_files, - response_type="Overpayments", + response_type="GetOverpaymentsResponse", response_model_finder=self.get_model_finder(), auth_settings=auth_settings, _return_http_data_only=_return_http_data_only, @@ -13128,6 +13153,7 @@ def get_payments( where=empty, order=empty, page=empty, + page_size=empty, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -13139,10 +13165,11 @@ def get_payments( :param str where: Filter by an any element :param str order: Order by an any element :param int page: Up to 100 payments will be returned in a single API call + :param int page_size: Number of records to retrieve per page :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: Payments + :return: GetPaymentsResponse """ # verify the required parameter 'xero_tenant_id' is set @@ -13166,6 +13193,9 @@ def get_payments( if page is not empty: query_params.append(("page", page)) + if page_size is not empty: + query_params.append(("pageSize", page_size)) + header_params = { "xero-tenant-id": xero_tenant_id, } @@ -13196,7 +13226,7 @@ def get_payments( body=body_params, post_params=form_params, files=local_var_files, - response_type="Payments", + response_type="GetPaymentsResponse", response_model_finder=self.get_model_finder(), auth_settings=auth_settings, _return_http_data_only=_return_http_data_only, @@ -13382,7 +13412,7 @@ def get_prepayments( :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: Prepayments + :return: GetPrepaymentsResponse """ # verify the required parameter 'xero_tenant_id' is set @@ -13439,7 +13469,7 @@ def get_prepayments( body=body_params, post_params=form_params, files=local_var_files, - response_type="Prepayments", + response_type="GetPrepaymentsResponse", response_model_finder=self.get_model_finder(), auth_settings=auth_settings, _return_http_data_only=_return_http_data_only, @@ -14039,6 +14069,7 @@ def get_purchase_orders( date_to=empty, order=empty, page=empty, + page_size=empty, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -14052,10 +14083,11 @@ def get_purchase_orders( :param str date_to: Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 :param str order: Order by an any element :param int page: To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned. + :param int page_size: Number of records to retrieve per page :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: PurchaseOrders + :return: GetPurchaseOrdersResponse """ # verify the required parameter 'xero_tenant_id' is set @@ -14085,6 +14117,9 @@ def get_purchase_orders( if page is not empty: query_params.append(("page", page)) + if page_size is not empty: + query_params.append(("pageSize", page_size)) + header_params = { "xero-tenant-id": xero_tenant_id, } @@ -14115,7 +14150,7 @@ def get_purchase_orders( body=body_params, post_params=form_params, files=local_var_files, - response_type="PurchaseOrders", + response_type="GetPurchaseOrdersResponse", response_model_finder=self.get_model_finder(), auth_settings=auth_settings, _return_http_data_only=_return_http_data_only, diff --git a/xero_python/accounting/docs/AccountingApi.md b/xero_python/accounting/docs/AccountingApi.md index 5825dda5..cc78846a 100644 --- a/xero_python/accounting/docs/AccountingApi.md +++ b/xero_python/accounting/docs/AccountingApi.md @@ -5504,7 +5504,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_bank_transactions** -> BankTransactions get_bank_transactions(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp) +> GetBankTransactionsResponse get_bank_transactions(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size) Retrieves any spent or received money transactions @@ -5540,9 +5540,10 @@ where = 'Status==\"AUTHORISED\"' # str | Filter by an any element (optional) order = 'Type ASC' # str | Order by an any element (optional) page = 1 # int | Up to 100 bank transactions will be returned in a single API call with line items details (optional) unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) +page_size = 100 # int | Number of records to retrieve per page (optional) try: # Retrieves any spent or received money transactions - api_response = api_instance.get_bank_transactions(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp) + api_response = api_instance.get_bank_transactions(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size) pprint(api_response) except ApiException as e: print("Exception when calling AccountingApi->get_bank_transactions: %s\n" % e) @@ -5558,10 +5559,11 @@ Name | Type | Description | Notes **order** | **str**| Order by an any element | [optional] **page** | **int**| Up to 100 bank transactions will be returned in a single API call with line items details | [optional] **unitdp** | **int**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] + **page_size** | **int**| Number of records to retrieve per page | [optional] ### Return type -[**BankTransactions**](BankTransactions.md) +[**GetBankTransactionsResponse**](GetBankTransactionsResponse.md) ### Authorization @@ -7119,7 +7121,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_contacts** -> Contacts get_contacts(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, i_ds=i_ds, page=page, include_archived=include_archived, summary_only=summary_only, search_term=search_term) +> GetContactsResponse get_contacts(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, i_ds=i_ds, page=page, include_archived=include_archived, summary_only=summary_only, search_term=search_term, page_size=page_size) Retrieves all contacts in a Xero organisation @@ -7158,9 +7160,10 @@ page = 1 # int | e.g. page=1 - Up to 100 contacts will be returned in a single A include_archived = true # bool | e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional) summary_only = False # bool | Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional) (default to False) search_term = 'Joe Bloggs' # str | Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional) +page_size = 100 # int | Number of records to retrieve per page (optional) try: # Retrieves all contacts in a Xero organisation - api_response = api_instance.get_contacts(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, i_ds=i_ds, page=page, include_archived=include_archived, summary_only=summary_only, search_term=search_term) + api_response = api_instance.get_contacts(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, i_ds=i_ds, page=page, include_archived=include_archived, summary_only=summary_only, search_term=search_term, page_size=page_size) pprint(api_response) except ApiException as e: print("Exception when calling AccountingApi->get_contacts: %s\n" % e) @@ -7179,10 +7182,11 @@ Name | Type | Description | Notes **include_archived** | **bool**| e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response | [optional] **summary_only** | **bool**| Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. | [optional] [default to False] **search_term** | **str**| Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. | [optional] + **page_size** | **int**| Number of records to retrieve per page | [optional] ### Return type -[**Contacts**](Contacts.md) +[**GetContactsResponse**](GetContactsResponse.md) ### Authorization @@ -7584,7 +7588,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_credit_notes** -> CreditNotes get_credit_notes(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp) +> GetCreditNotesResponse get_credit_notes(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size) Retrieves any credit notes @@ -7620,9 +7624,10 @@ where = 'Status==\"DRAFT\"' # str | Filter by an any element (optional) order = 'CreditNoteNumber ASC' # str | Order by an any element (optional) page = 1 # int | e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note (optional) unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) +page_size = 100 # int | Number of records to retrieve per page (optional) try: # Retrieves any credit notes - api_response = api_instance.get_credit_notes(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp) + api_response = api_instance.get_credit_notes(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size) pprint(api_response) except ApiException as e: print("Exception when calling AccountingApi->get_credit_notes: %s\n" % e) @@ -7638,10 +7643,11 @@ Name | Type | Description | Notes **order** | **str**| Order by an any element | [optional] **page** | **int**| e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note | [optional] **unitdp** | **int**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] + **page_size** | **int**| Number of records to retrieve per page | [optional] ### Return type -[**CreditNotes**](CreditNotes.md) +[**GetCreditNotesResponse**](GetCreditNotesResponse.md) ### Authorization @@ -8492,7 +8498,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_invoices** -> Invoices get_invoices(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, i_ds=i_ds, invoice_numbers=invoice_numbers, contact_i_ds=contact_i_ds, statuses=statuses, page=page, include_archived=include_archived, created_by_my_app=created_by_my_app, unitdp=unitdp, summary_only=summary_only) +> GetInvoicesResponse get_invoices(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, i_ds=i_ds, invoice_numbers=invoice_numbers, contact_i_ds=contact_i_ds, statuses=statuses, page=page, include_archived=include_archived, created_by_my_app=created_by_my_app, unitdp=unitdp, summary_only=summary_only, page_size=page_size) Retrieves sales invoices or purchase bills @@ -8535,9 +8541,10 @@ include_archived = true # bool | e.g. includeArchived=true - Invoices with a sta created_by_my_app = false # bool | When set to true you'll only retrieve Invoices created by your app (optional) unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) summary_only = False # bool | Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional) (default to False) +page_size = 100 # int | Number of records to retrieve per page (optional) try: # Retrieves sales invoices or purchase bills - api_response = api_instance.get_invoices(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, i_ds=i_ds, invoice_numbers=invoice_numbers, contact_i_ds=contact_i_ds, statuses=statuses, page=page, include_archived=include_archived, created_by_my_app=created_by_my_app, unitdp=unitdp, summary_only=summary_only) + api_response = api_instance.get_invoices(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, i_ds=i_ds, invoice_numbers=invoice_numbers, contact_i_ds=contact_i_ds, statuses=statuses, page=page, include_archived=include_archived, created_by_my_app=created_by_my_app, unitdp=unitdp, summary_only=summary_only, page_size=page_size) pprint(api_response) except ApiException as e: print("Exception when calling AccountingApi->get_invoices: %s\n" % e) @@ -8560,10 +8567,11 @@ Name | Type | Description | Notes **created_by_my_app** | **bool**| When set to true you'll only retrieve Invoices created by your app | [optional] **unitdp** | **int**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] **summary_only** | **bool**| Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. | [optional] [default to False] + **page_size** | **int**| Number of records to retrieve per page | [optional] ### Return type -[**Invoices**](Invoices.md) +[**GetInvoicesResponse**](GetInvoicesResponse.md) ### Authorization @@ -9363,7 +9371,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_manual_journals** -> ManualJournals get_manual_journals(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page) +> GetManualJournalsResponse get_manual_journals(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, page_size=page_size) Retrieves manual journals @@ -9398,9 +9406,10 @@ if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records cr where = 'Status==\"DRAFT\"' # str | Filter by an any element (optional) order = 'Date ASC' # str | Order by an any element (optional) page = 1 # int | e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment (optional) +page_size = 100 # int | Number of records to retrieve per page (optional) try: # Retrieves manual journals - api_response = api_instance.get_manual_journals(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page) + api_response = api_instance.get_manual_journals(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, page_size=page_size) pprint(api_response) except ApiException as e: print("Exception when calling AccountingApi->get_manual_journals: %s\n" % e) @@ -9415,10 +9424,11 @@ Name | Type | Description | Notes **where** | **str**| Filter by an any element | [optional] **order** | **str**| Order by an any element | [optional] **page** | **int**| e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment | [optional] + **page_size** | **int**| Number of records to retrieve per page | [optional] ### Return type -[**ManualJournals**](ManualJournals.md) +[**GetManualJournalsResponse**](GetManualJournalsResponse.md) ### Authorization @@ -9869,7 +9879,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_overpayments** -> Overpayments get_overpayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp) +> GetOverpaymentsResponse get_overpayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp) Retrieves overpayments @@ -9926,7 +9936,7 @@ Name | Type | Description | Notes ### Return type -[**Overpayments**](Overpayments.md) +[**GetOverpaymentsResponse**](GetOverpaymentsResponse.md) ### Authorization @@ -10127,7 +10137,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_payments** -> Payments get_payments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page) +> GetPaymentsResponse get_payments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, page_size=page_size) Retrieves payments for invoices and credit notes @@ -10162,9 +10172,10 @@ if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records cr where = 'Status==\"AUTHORISED\"' # str | Filter by an any element (optional) order = 'Amount ASC' # str | Order by an any element (optional) page = 1 # int | Up to 100 payments will be returned in a single API call (optional) +page_size = 100 # int | Number of records to retrieve per page (optional) try: # Retrieves payments for invoices and credit notes - api_response = api_instance.get_payments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page) + api_response = api_instance.get_payments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, page_size=page_size) pprint(api_response) except ApiException as e: print("Exception when calling AccountingApi->get_payments: %s\n" % e) @@ -10179,10 +10190,11 @@ Name | Type | Description | Notes **where** | **str**| Filter by an any element | [optional] **order** | **str**| Order by an any element | [optional] **page** | **int**| Up to 100 payments will be returned in a single API call | [optional] + **page_size** | **int**| Number of records to retrieve per page | [optional] ### Return type -[**Payments**](Payments.md) +[**GetPaymentsResponse**](GetPaymentsResponse.md) ### Authorization @@ -10322,7 +10334,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_prepayments** -> Prepayments get_prepayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp) +> GetPrepaymentsResponse get_prepayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp) Retrieves prepayments @@ -10379,7 +10391,7 @@ Name | Type | Description | Notes ### Return type -[**Prepayments**](Prepayments.md) +[**GetPrepaymentsResponse**](GetPrepaymentsResponse.md) ### Authorization @@ -10842,7 +10854,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_purchase_orders** -> PurchaseOrders get_purchase_orders(xero_tenant_id, if_modified_since=if_modified_since, status=status, date_from=date_from, date_to=date_to, order=order, page=page) +> GetPurchaseOrdersResponse get_purchase_orders(xero_tenant_id, if_modified_since=if_modified_since, status=status, date_from=date_from, date_to=date_to, order=order, page=page, page_size=page_size) Retrieves purchase orders @@ -10879,9 +10891,10 @@ date_from = '2019-12-01' # str | Filter by purchase order date (e.g. GET https:/ date_to = '2019-12-31' # str | Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 (optional) order = 'PurchaseOrderNumber ASC' # str | Order by an any element (optional) page = 1 # int | To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned. (optional) +page_size = 100 # int | Number of records to retrieve per page (optional) try: # Retrieves purchase orders - api_response = api_instance.get_purchase_orders(xero_tenant_id, if_modified_since=if_modified_since, status=status, date_from=date_from, date_to=date_to, order=order, page=page) + api_response = api_instance.get_purchase_orders(xero_tenant_id, if_modified_since=if_modified_since, status=status, date_from=date_from, date_to=date_to, order=order, page=page, page_size=page_size) pprint(api_response) except ApiException as e: print("Exception when calling AccountingApi->get_purchase_orders: %s\n" % e) @@ -10898,10 +10911,11 @@ Name | Type | Description | Notes **date_to** | **str**| Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 | [optional] **order** | **str**| Order by an any element | [optional] **page** | **int**| To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned. | [optional] + **page_size** | **int**| Number of records to retrieve per page | [optional] ### Return type -[**PurchaseOrders**](PurchaseOrders.md) +[**GetPurchaseOrdersResponse**](GetPurchaseOrdersResponse.md) ### Authorization diff --git a/xero_python/accounting/docs/GetBankTransactionsResponse.md b/xero_python/accounting/docs/GetBankTransactionsResponse.md new file mode 100644 index 00000000..42a29d99 --- /dev/null +++ b/xero_python/accounting/docs/GetBankTransactionsResponse.md @@ -0,0 +1,15 @@ +# GetBankTransactionsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**status** | **str** | | [optional] +**provider_name** | **str** | | [optional] +**date_time_utc** | **str** | | [optional] +**page_info** | [**PageInfo**](PageInfo.md) | | [optional] +**bank_transactions** | [**list[BankTransaction]**](BankTransaction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/xero_python/accounting/docs/GetContactsResponse.md b/xero_python/accounting/docs/GetContactsResponse.md new file mode 100644 index 00000000..0af1064e --- /dev/null +++ b/xero_python/accounting/docs/GetContactsResponse.md @@ -0,0 +1,15 @@ +# GetContactsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**status** | **str** | | [optional] +**provider_name** | **str** | | [optional] +**date_time_utc** | **str** | | [optional] +**page_info** | [**PageInfo**](PageInfo.md) | | [optional] +**contacts** | [**list[Contact]**](Contact.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/xero_python/accounting/docs/GetCreditNotesResponse.md b/xero_python/accounting/docs/GetCreditNotesResponse.md new file mode 100644 index 00000000..0448a411 --- /dev/null +++ b/xero_python/accounting/docs/GetCreditNotesResponse.md @@ -0,0 +1,15 @@ +# GetCreditNotesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**status** | **str** | | [optional] +**provider_name** | **str** | | [optional] +**date_time_utc** | **str** | | [optional] +**page_info** | [**PageInfo**](PageInfo.md) | | [optional] +**credit_notes** | [**list[CreditNote]**](CreditNote.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/xero_python/accounting/docs/GetInvoicesResponse.md b/xero_python/accounting/docs/GetInvoicesResponse.md new file mode 100644 index 00000000..0cf80c40 --- /dev/null +++ b/xero_python/accounting/docs/GetInvoicesResponse.md @@ -0,0 +1,15 @@ +# GetInvoicesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**status** | **str** | | [optional] +**provider_name** | **str** | | [optional] +**date_time_utc** | **str** | | [optional] +**page_info** | [**PageInfo**](PageInfo.md) | | [optional] +**invoices** | [**list[Invoice]**](Invoice.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/xero_python/accounting/docs/GetManualJournalsResponse.md b/xero_python/accounting/docs/GetManualJournalsResponse.md new file mode 100644 index 00000000..8e19aec3 --- /dev/null +++ b/xero_python/accounting/docs/GetManualJournalsResponse.md @@ -0,0 +1,15 @@ +# GetManualJournalsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**status** | **str** | | [optional] +**provider_name** | **str** | | [optional] +**date_time_utc** | **str** | | [optional] +**page_info** | [**PageInfo**](PageInfo.md) | | [optional] +**manual_journals** | [**list[ManualJournal]**](ManualJournal.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/xero_python/accounting/docs/GetOverpaymentsResponse.md b/xero_python/accounting/docs/GetOverpaymentsResponse.md new file mode 100644 index 00000000..9d3943f8 --- /dev/null +++ b/xero_python/accounting/docs/GetOverpaymentsResponse.md @@ -0,0 +1,15 @@ +# GetOverpaymentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**status** | **str** | | [optional] +**provider_name** | **str** | | [optional] +**date_time_utc** | **str** | | [optional] +**page_info** | [**PageInfo**](PageInfo.md) | | [optional] +**overpayments** | [**list[Overpayment]**](Overpayment.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/xero_python/accounting/docs/GetPaymentsResponse.md b/xero_python/accounting/docs/GetPaymentsResponse.md new file mode 100644 index 00000000..7e95b0bd --- /dev/null +++ b/xero_python/accounting/docs/GetPaymentsResponse.md @@ -0,0 +1,15 @@ +# GetPaymentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**status** | **str** | | [optional] +**provider_name** | **str** | | [optional] +**date_time_utc** | **str** | | [optional] +**page_info** | [**PageInfo**](PageInfo.md) | | [optional] +**payments** | [**list[Payment]**](Payment.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/xero_python/accounting/docs/GetPrepaymentsResponse.md b/xero_python/accounting/docs/GetPrepaymentsResponse.md new file mode 100644 index 00000000..962dc54d --- /dev/null +++ b/xero_python/accounting/docs/GetPrepaymentsResponse.md @@ -0,0 +1,15 @@ +# GetPrepaymentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**status** | **str** | | [optional] +**provider_name** | **str** | | [optional] +**date_time_utc** | **str** | | [optional] +**page_info** | [**PageInfo**](PageInfo.md) | | [optional] +**prepayments** | [**list[Prepayment]**](Prepayment.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/xero_python/accounting/docs/GetPurchaseOrdersResponse.md b/xero_python/accounting/docs/GetPurchaseOrdersResponse.md new file mode 100644 index 00000000..1d50ee85 --- /dev/null +++ b/xero_python/accounting/docs/GetPurchaseOrdersResponse.md @@ -0,0 +1,15 @@ +# GetPurchaseOrdersResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**status** | **str** | | [optional] +**provider_name** | **str** | | [optional] +**date_time_utc** | **str** | | [optional] +**page_info** | [**PageInfo**](PageInfo.md) | | [optional] +**purchase_orders** | [**list[PurchaseOrder]**](PurchaseOrder.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/xero_python/accounting/docs/PageInfo.md b/xero_python/accounting/docs/PageInfo.md new file mode 100644 index 00000000..32fec0fd --- /dev/null +++ b/xero_python/accounting/docs/PageInfo.md @@ -0,0 +1,13 @@ +# PageInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**page** | **int** | | [optional] +**page_size** | **int** | | [optional] +**total_pages** | **int** | | [optional] +**total_rows** | **int** | | [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 d98997c3..ced1b6c5 100644 --- a/xero_python/accounting/models/__init__.py +++ b/xero_python/accounting/models/__init__.py @@ -71,6 +71,27 @@ from xero_python.accounting.models.expense_claim import ExpenseClaim from xero_python.accounting.models.expense_claims import ExpenseClaims from xero_python.accounting.models.external_link import ExternalLink +from xero_python.accounting.models.get_bank_transactions_response import ( + GetBankTransactionsResponse, +) +from xero_python.accounting.models.get_contacts_response import GetContactsResponse +from xero_python.accounting.models.get_credit_notes_response import ( + GetCreditNotesResponse, +) +from xero_python.accounting.models.get_invoices_response import GetInvoicesResponse +from xero_python.accounting.models.get_manual_journals_response import ( + GetManualJournalsResponse, +) +from xero_python.accounting.models.get_overpayments_response import ( + GetOverpaymentsResponse, +) +from xero_python.accounting.models.get_payments_response import GetPaymentsResponse +from xero_python.accounting.models.get_prepayments_response import ( + GetPrepaymentsResponse, +) +from xero_python.accounting.models.get_purchase_orders_response import ( + GetPurchaseOrdersResponse, +) from xero_python.accounting.models.history_record import HistoryRecord from xero_python.accounting.models.history_records import HistoryRecords from xero_python.accounting.models.import_summary import ImportSummary @@ -103,6 +124,7 @@ from xero_python.accounting.models.organisations import Organisations from xero_python.accounting.models.overpayment import Overpayment from xero_python.accounting.models.overpayments import Overpayments +from xero_python.accounting.models.page_info import PageInfo from xero_python.accounting.models.payment import Payment from xero_python.accounting.models.payment_delete import PaymentDelete from xero_python.accounting.models.payment_service import PaymentService diff --git a/xero_python/accounting/models/get_bank_transactions_response.py b/xero_python/accounting/models/get_bank_transactions_response.py new file mode 100644 index 00000000..ed8dba6b --- /dev/null +++ b/xero_python/accounting/models/get_bank_transactions_response.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Xero Accounting API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from xero_python.models import BaseModel + + +class GetBankTransactionsResponse(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "id": "str", + "status": "str", + "provider_name": "str", + "date_time_utc": "str", + "page_info": "PageInfo", + "bank_transactions": "list[BankTransaction]", + } + + attribute_map = { + "id": "Id", + "status": "Status", + "provider_name": "ProviderName", + "date_time_utc": "DateTimeUTC", + "page_info": "PageInfo", + "bank_transactions": "BankTransactions", + } + + def __init__( + self, + id=None, + status=None, + provider_name=None, + date_time_utc=None, + page_info=None, + bank_transactions=None, + ): # noqa: E501 + """GetBankTransactionsResponse - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._status = None + self._provider_name = None + self._date_time_utc = None + self._page_info = None + self._bank_transactions = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if provider_name is not None: + self.provider_name = provider_name + if date_time_utc is not None: + self.date_time_utc = date_time_utc + if page_info is not None: + self.page_info = page_info + if bank_transactions is not None: + self.bank_transactions = bank_transactions + + @property + def id(self): + """Gets the id of this GetBankTransactionsResponse. # noqa: E501 + + + :return: The id of this GetBankTransactionsResponse. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetBankTransactionsResponse. + + + :param id: The id of this GetBankTransactionsResponse. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def status(self): + """Gets the status of this GetBankTransactionsResponse. # noqa: E501 + + + :return: The status of this GetBankTransactionsResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetBankTransactionsResponse. + + + :param status: The status of this GetBankTransactionsResponse. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def provider_name(self): + """Gets the provider_name of this GetBankTransactionsResponse. # noqa: E501 + + + :return: The provider_name of this GetBankTransactionsResponse. # noqa: E501 + :rtype: str + """ + return self._provider_name + + @provider_name.setter + def provider_name(self, provider_name): + """Sets the provider_name of this GetBankTransactionsResponse. + + + :param provider_name: The provider_name of this GetBankTransactionsResponse. # noqa: E501 + :type: str + """ + + self._provider_name = provider_name + + @property + def date_time_utc(self): + """Gets the date_time_utc of this GetBankTransactionsResponse. # noqa: E501 + + + :return: The date_time_utc of this GetBankTransactionsResponse. # noqa: E501 + :rtype: str + """ + return self._date_time_utc + + @date_time_utc.setter + def date_time_utc(self, date_time_utc): + """Sets the date_time_utc of this GetBankTransactionsResponse. + + + :param date_time_utc: The date_time_utc of this GetBankTransactionsResponse. # noqa: E501 + :type: str + """ + + self._date_time_utc = date_time_utc + + @property + def page_info(self): + """Gets the page_info of this GetBankTransactionsResponse. # noqa: E501 + + + :return: The page_info of this GetBankTransactionsResponse. # noqa: E501 + :rtype: PageInfo + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this GetBankTransactionsResponse. + + + :param page_info: The page_info of this GetBankTransactionsResponse. # noqa: E501 + :type: PageInfo + """ + + self._page_info = page_info + + @property + def bank_transactions(self): + """Gets the bank_transactions of this GetBankTransactionsResponse. # noqa: E501 + + + :return: The bank_transactions of this GetBankTransactionsResponse. # noqa: E501 + :rtype: list[BankTransaction] + """ + return self._bank_transactions + + @bank_transactions.setter + def bank_transactions(self, bank_transactions): + """Sets the bank_transactions of this GetBankTransactionsResponse. + + + :param bank_transactions: The bank_transactions of this GetBankTransactionsResponse. # noqa: E501 + :type: list[BankTransaction] + """ + + self._bank_transactions = bank_transactions diff --git a/xero_python/accounting/models/get_contacts_response.py b/xero_python/accounting/models/get_contacts_response.py new file mode 100644 index 00000000..4997af2b --- /dev/null +++ b/xero_python/accounting/models/get_contacts_response.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Xero Accounting API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from xero_python.models import BaseModel + + +class GetContactsResponse(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "id": "str", + "status": "str", + "provider_name": "str", + "date_time_utc": "str", + "page_info": "PageInfo", + "contacts": "list[Contact]", + } + + attribute_map = { + "id": "Id", + "status": "Status", + "provider_name": "ProviderName", + "date_time_utc": "DateTimeUTC", + "page_info": "PageInfo", + "contacts": "Contacts", + } + + def __init__( + self, + id=None, + status=None, + provider_name=None, + date_time_utc=None, + page_info=None, + contacts=None, + ): # noqa: E501 + """GetContactsResponse - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._status = None + self._provider_name = None + self._date_time_utc = None + self._page_info = None + self._contacts = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if provider_name is not None: + self.provider_name = provider_name + if date_time_utc is not None: + self.date_time_utc = date_time_utc + if page_info is not None: + self.page_info = page_info + if contacts is not None: + self.contacts = contacts + + @property + def id(self): + """Gets the id of this GetContactsResponse. # noqa: E501 + + + :return: The id of this GetContactsResponse. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetContactsResponse. + + + :param id: The id of this GetContactsResponse. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def status(self): + """Gets the status of this GetContactsResponse. # noqa: E501 + + + :return: The status of this GetContactsResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetContactsResponse. + + + :param status: The status of this GetContactsResponse. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def provider_name(self): + """Gets the provider_name of this GetContactsResponse. # noqa: E501 + + + :return: The provider_name of this GetContactsResponse. # noqa: E501 + :rtype: str + """ + return self._provider_name + + @provider_name.setter + def provider_name(self, provider_name): + """Sets the provider_name of this GetContactsResponse. + + + :param provider_name: The provider_name of this GetContactsResponse. # noqa: E501 + :type: str + """ + + self._provider_name = provider_name + + @property + def date_time_utc(self): + """Gets the date_time_utc of this GetContactsResponse. # noqa: E501 + + + :return: The date_time_utc of this GetContactsResponse. # noqa: E501 + :rtype: str + """ + return self._date_time_utc + + @date_time_utc.setter + def date_time_utc(self, date_time_utc): + """Sets the date_time_utc of this GetContactsResponse. + + + :param date_time_utc: The date_time_utc of this GetContactsResponse. # noqa: E501 + :type: str + """ + + self._date_time_utc = date_time_utc + + @property + def page_info(self): + """Gets the page_info of this GetContactsResponse. # noqa: E501 + + + :return: The page_info of this GetContactsResponse. # noqa: E501 + :rtype: PageInfo + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this GetContactsResponse. + + + :param page_info: The page_info of this GetContactsResponse. # noqa: E501 + :type: PageInfo + """ + + self._page_info = page_info + + @property + def contacts(self): + """Gets the contacts of this GetContactsResponse. # noqa: E501 + + + :return: The contacts of this GetContactsResponse. # noqa: E501 + :rtype: list[Contact] + """ + return self._contacts + + @contacts.setter + def contacts(self, contacts): + """Sets the contacts of this GetContactsResponse. + + + :param contacts: The contacts of this GetContactsResponse. # noqa: E501 + :type: list[Contact] + """ + + self._contacts = contacts diff --git a/xero_python/accounting/models/get_credit_notes_response.py b/xero_python/accounting/models/get_credit_notes_response.py new file mode 100644 index 00000000..945d363c --- /dev/null +++ b/xero_python/accounting/models/get_credit_notes_response.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Xero Accounting API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from xero_python.models import BaseModel + + +class GetCreditNotesResponse(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "id": "str", + "status": "str", + "provider_name": "str", + "date_time_utc": "str", + "page_info": "PageInfo", + "credit_notes": "list[CreditNote]", + } + + attribute_map = { + "id": "Id", + "status": "Status", + "provider_name": "ProviderName", + "date_time_utc": "DateTimeUTC", + "page_info": "PageInfo", + "credit_notes": "CreditNotes", + } + + def __init__( + self, + id=None, + status=None, + provider_name=None, + date_time_utc=None, + page_info=None, + credit_notes=None, + ): # noqa: E501 + """GetCreditNotesResponse - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._status = None + self._provider_name = None + self._date_time_utc = None + self._page_info = None + self._credit_notes = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if provider_name is not None: + self.provider_name = provider_name + if date_time_utc is not None: + self.date_time_utc = date_time_utc + if page_info is not None: + self.page_info = page_info + if credit_notes is not None: + self.credit_notes = credit_notes + + @property + def id(self): + """Gets the id of this GetCreditNotesResponse. # noqa: E501 + + + :return: The id of this GetCreditNotesResponse. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetCreditNotesResponse. + + + :param id: The id of this GetCreditNotesResponse. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def status(self): + """Gets the status of this GetCreditNotesResponse. # noqa: E501 + + + :return: The status of this GetCreditNotesResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetCreditNotesResponse. + + + :param status: The status of this GetCreditNotesResponse. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def provider_name(self): + """Gets the provider_name of this GetCreditNotesResponse. # noqa: E501 + + + :return: The provider_name of this GetCreditNotesResponse. # noqa: E501 + :rtype: str + """ + return self._provider_name + + @provider_name.setter + def provider_name(self, provider_name): + """Sets the provider_name of this GetCreditNotesResponse. + + + :param provider_name: The provider_name of this GetCreditNotesResponse. # noqa: E501 + :type: str + """ + + self._provider_name = provider_name + + @property + def date_time_utc(self): + """Gets the date_time_utc of this GetCreditNotesResponse. # noqa: E501 + + + :return: The date_time_utc of this GetCreditNotesResponse. # noqa: E501 + :rtype: str + """ + return self._date_time_utc + + @date_time_utc.setter + def date_time_utc(self, date_time_utc): + """Sets the date_time_utc of this GetCreditNotesResponse. + + + :param date_time_utc: The date_time_utc of this GetCreditNotesResponse. # noqa: E501 + :type: str + """ + + self._date_time_utc = date_time_utc + + @property + def page_info(self): + """Gets the page_info of this GetCreditNotesResponse. # noqa: E501 + + + :return: The page_info of this GetCreditNotesResponse. # noqa: E501 + :rtype: PageInfo + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this GetCreditNotesResponse. + + + :param page_info: The page_info of this GetCreditNotesResponse. # noqa: E501 + :type: PageInfo + """ + + self._page_info = page_info + + @property + def credit_notes(self): + """Gets the credit_notes of this GetCreditNotesResponse. # noqa: E501 + + + :return: The credit_notes of this GetCreditNotesResponse. # noqa: E501 + :rtype: list[CreditNote] + """ + return self._credit_notes + + @credit_notes.setter + def credit_notes(self, credit_notes): + """Sets the credit_notes of this GetCreditNotesResponse. + + + :param credit_notes: The credit_notes of this GetCreditNotesResponse. # noqa: E501 + :type: list[CreditNote] + """ + + self._credit_notes = credit_notes diff --git a/xero_python/accounting/models/get_invoices_response.py b/xero_python/accounting/models/get_invoices_response.py new file mode 100644 index 00000000..9cf16804 --- /dev/null +++ b/xero_python/accounting/models/get_invoices_response.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Xero Accounting API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from xero_python.models import BaseModel + + +class GetInvoicesResponse(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "id": "str", + "status": "str", + "provider_name": "str", + "date_time_utc": "str", + "page_info": "PageInfo", + "invoices": "list[Invoice]", + } + + attribute_map = { + "id": "Id", + "status": "Status", + "provider_name": "ProviderName", + "date_time_utc": "DateTimeUTC", + "page_info": "PageInfo", + "invoices": "Invoices", + } + + def __init__( + self, + id=None, + status=None, + provider_name=None, + date_time_utc=None, + page_info=None, + invoices=None, + ): # noqa: E501 + """GetInvoicesResponse - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._status = None + self._provider_name = None + self._date_time_utc = None + self._page_info = None + self._invoices = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if provider_name is not None: + self.provider_name = provider_name + if date_time_utc is not None: + self.date_time_utc = date_time_utc + if page_info is not None: + self.page_info = page_info + if invoices is not None: + self.invoices = invoices + + @property + def id(self): + """Gets the id of this GetInvoicesResponse. # noqa: E501 + + + :return: The id of this GetInvoicesResponse. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetInvoicesResponse. + + + :param id: The id of this GetInvoicesResponse. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def status(self): + """Gets the status of this GetInvoicesResponse. # noqa: E501 + + + :return: The status of this GetInvoicesResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetInvoicesResponse. + + + :param status: The status of this GetInvoicesResponse. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def provider_name(self): + """Gets the provider_name of this GetInvoicesResponse. # noqa: E501 + + + :return: The provider_name of this GetInvoicesResponse. # noqa: E501 + :rtype: str + """ + return self._provider_name + + @provider_name.setter + def provider_name(self, provider_name): + """Sets the provider_name of this GetInvoicesResponse. + + + :param provider_name: The provider_name of this GetInvoicesResponse. # noqa: E501 + :type: str + """ + + self._provider_name = provider_name + + @property + def date_time_utc(self): + """Gets the date_time_utc of this GetInvoicesResponse. # noqa: E501 + + + :return: The date_time_utc of this GetInvoicesResponse. # noqa: E501 + :rtype: str + """ + return self._date_time_utc + + @date_time_utc.setter + def date_time_utc(self, date_time_utc): + """Sets the date_time_utc of this GetInvoicesResponse. + + + :param date_time_utc: The date_time_utc of this GetInvoicesResponse. # noqa: E501 + :type: str + """ + + self._date_time_utc = date_time_utc + + @property + def page_info(self): + """Gets the page_info of this GetInvoicesResponse. # noqa: E501 + + + :return: The page_info of this GetInvoicesResponse. # noqa: E501 + :rtype: PageInfo + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this GetInvoicesResponse. + + + :param page_info: The page_info of this GetInvoicesResponse. # noqa: E501 + :type: PageInfo + """ + + self._page_info = page_info + + @property + def invoices(self): + """Gets the invoices of this GetInvoicesResponse. # noqa: E501 + + + :return: The invoices of this GetInvoicesResponse. # noqa: E501 + :rtype: list[Invoice] + """ + return self._invoices + + @invoices.setter + def invoices(self, invoices): + """Sets the invoices of this GetInvoicesResponse. + + + :param invoices: The invoices of this GetInvoicesResponse. # noqa: E501 + :type: list[Invoice] + """ + + self._invoices = invoices diff --git a/xero_python/accounting/models/get_manual_journals_response.py b/xero_python/accounting/models/get_manual_journals_response.py new file mode 100644 index 00000000..807d679a --- /dev/null +++ b/xero_python/accounting/models/get_manual_journals_response.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Xero Accounting API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from xero_python.models import BaseModel + + +class GetManualJournalsResponse(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "id": "str", + "status": "str", + "provider_name": "str", + "date_time_utc": "str", + "page_info": "PageInfo", + "manual_journals": "list[ManualJournal]", + } + + attribute_map = { + "id": "Id", + "status": "Status", + "provider_name": "ProviderName", + "date_time_utc": "DateTimeUTC", + "page_info": "PageInfo", + "manual_journals": "ManualJournals", + } + + def __init__( + self, + id=None, + status=None, + provider_name=None, + date_time_utc=None, + page_info=None, + manual_journals=None, + ): # noqa: E501 + """GetManualJournalsResponse - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._status = None + self._provider_name = None + self._date_time_utc = None + self._page_info = None + self._manual_journals = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if provider_name is not None: + self.provider_name = provider_name + if date_time_utc is not None: + self.date_time_utc = date_time_utc + if page_info is not None: + self.page_info = page_info + if manual_journals is not None: + self.manual_journals = manual_journals + + @property + def id(self): + """Gets the id of this GetManualJournalsResponse. # noqa: E501 + + + :return: The id of this GetManualJournalsResponse. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetManualJournalsResponse. + + + :param id: The id of this GetManualJournalsResponse. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def status(self): + """Gets the status of this GetManualJournalsResponse. # noqa: E501 + + + :return: The status of this GetManualJournalsResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetManualJournalsResponse. + + + :param status: The status of this GetManualJournalsResponse. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def provider_name(self): + """Gets the provider_name of this GetManualJournalsResponse. # noqa: E501 + + + :return: The provider_name of this GetManualJournalsResponse. # noqa: E501 + :rtype: str + """ + return self._provider_name + + @provider_name.setter + def provider_name(self, provider_name): + """Sets the provider_name of this GetManualJournalsResponse. + + + :param provider_name: The provider_name of this GetManualJournalsResponse. # noqa: E501 + :type: str + """ + + self._provider_name = provider_name + + @property + def date_time_utc(self): + """Gets the date_time_utc of this GetManualJournalsResponse. # noqa: E501 + + + :return: The date_time_utc of this GetManualJournalsResponse. # noqa: E501 + :rtype: str + """ + return self._date_time_utc + + @date_time_utc.setter + def date_time_utc(self, date_time_utc): + """Sets the date_time_utc of this GetManualJournalsResponse. + + + :param date_time_utc: The date_time_utc of this GetManualJournalsResponse. # noqa: E501 + :type: str + """ + + self._date_time_utc = date_time_utc + + @property + def page_info(self): + """Gets the page_info of this GetManualJournalsResponse. # noqa: E501 + + + :return: The page_info of this GetManualJournalsResponse. # noqa: E501 + :rtype: PageInfo + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this GetManualJournalsResponse. + + + :param page_info: The page_info of this GetManualJournalsResponse. # noqa: E501 + :type: PageInfo + """ + + self._page_info = page_info + + @property + def manual_journals(self): + """Gets the manual_journals of this GetManualJournalsResponse. # noqa: E501 + + + :return: The manual_journals of this GetManualJournalsResponse. # noqa: E501 + :rtype: list[ManualJournal] + """ + return self._manual_journals + + @manual_journals.setter + def manual_journals(self, manual_journals): + """Sets the manual_journals of this GetManualJournalsResponse. + + + :param manual_journals: The manual_journals of this GetManualJournalsResponse. # noqa: E501 + :type: list[ManualJournal] + """ + + self._manual_journals = manual_journals diff --git a/xero_python/accounting/models/get_overpayments_response.py b/xero_python/accounting/models/get_overpayments_response.py new file mode 100644 index 00000000..2a51fe95 --- /dev/null +++ b/xero_python/accounting/models/get_overpayments_response.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Xero Accounting API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from xero_python.models import BaseModel + + +class GetOverpaymentsResponse(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "id": "str", + "status": "str", + "provider_name": "str", + "date_time_utc": "str", + "page_info": "PageInfo", + "overpayments": "list[Overpayment]", + } + + attribute_map = { + "id": "Id", + "status": "Status", + "provider_name": "ProviderName", + "date_time_utc": "DateTimeUTC", + "page_info": "PageInfo", + "overpayments": "Overpayments", + } + + def __init__( + self, + id=None, + status=None, + provider_name=None, + date_time_utc=None, + page_info=None, + overpayments=None, + ): # noqa: E501 + """GetOverpaymentsResponse - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._status = None + self._provider_name = None + self._date_time_utc = None + self._page_info = None + self._overpayments = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if provider_name is not None: + self.provider_name = provider_name + if date_time_utc is not None: + self.date_time_utc = date_time_utc + if page_info is not None: + self.page_info = page_info + if overpayments is not None: + self.overpayments = overpayments + + @property + def id(self): + """Gets the id of this GetOverpaymentsResponse. # noqa: E501 + + + :return: The id of this GetOverpaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetOverpaymentsResponse. + + + :param id: The id of this GetOverpaymentsResponse. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def status(self): + """Gets the status of this GetOverpaymentsResponse. # noqa: E501 + + + :return: The status of this GetOverpaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetOverpaymentsResponse. + + + :param status: The status of this GetOverpaymentsResponse. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def provider_name(self): + """Gets the provider_name of this GetOverpaymentsResponse. # noqa: E501 + + + :return: The provider_name of this GetOverpaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._provider_name + + @provider_name.setter + def provider_name(self, provider_name): + """Sets the provider_name of this GetOverpaymentsResponse. + + + :param provider_name: The provider_name of this GetOverpaymentsResponse. # noqa: E501 + :type: str + """ + + self._provider_name = provider_name + + @property + def date_time_utc(self): + """Gets the date_time_utc of this GetOverpaymentsResponse. # noqa: E501 + + + :return: The date_time_utc of this GetOverpaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._date_time_utc + + @date_time_utc.setter + def date_time_utc(self, date_time_utc): + """Sets the date_time_utc of this GetOverpaymentsResponse. + + + :param date_time_utc: The date_time_utc of this GetOverpaymentsResponse. # noqa: E501 + :type: str + """ + + self._date_time_utc = date_time_utc + + @property + def page_info(self): + """Gets the page_info of this GetOverpaymentsResponse. # noqa: E501 + + + :return: The page_info of this GetOverpaymentsResponse. # noqa: E501 + :rtype: PageInfo + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this GetOverpaymentsResponse. + + + :param page_info: The page_info of this GetOverpaymentsResponse. # noqa: E501 + :type: PageInfo + """ + + self._page_info = page_info + + @property + def overpayments(self): + """Gets the overpayments of this GetOverpaymentsResponse. # noqa: E501 + + + :return: The overpayments of this GetOverpaymentsResponse. # noqa: E501 + :rtype: list[Overpayment] + """ + return self._overpayments + + @overpayments.setter + def overpayments(self, overpayments): + """Sets the overpayments of this GetOverpaymentsResponse. + + + :param overpayments: The overpayments of this GetOverpaymentsResponse. # noqa: E501 + :type: list[Overpayment] + """ + + self._overpayments = overpayments diff --git a/xero_python/accounting/models/get_payments_response.py b/xero_python/accounting/models/get_payments_response.py new file mode 100644 index 00000000..b3bf5451 --- /dev/null +++ b/xero_python/accounting/models/get_payments_response.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Xero Accounting API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from xero_python.models import BaseModel + + +class GetPaymentsResponse(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "id": "str", + "status": "str", + "provider_name": "str", + "date_time_utc": "str", + "page_info": "PageInfo", + "payments": "list[Payment]", + } + + attribute_map = { + "id": "Id", + "status": "Status", + "provider_name": "ProviderName", + "date_time_utc": "DateTimeUTC", + "page_info": "PageInfo", + "payments": "Payments", + } + + def __init__( + self, + id=None, + status=None, + provider_name=None, + date_time_utc=None, + page_info=None, + payments=None, + ): # noqa: E501 + """GetPaymentsResponse - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._status = None + self._provider_name = None + self._date_time_utc = None + self._page_info = None + self._payments = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if provider_name is not None: + self.provider_name = provider_name + if date_time_utc is not None: + self.date_time_utc = date_time_utc + if page_info is not None: + self.page_info = page_info + if payments is not None: + self.payments = payments + + @property + def id(self): + """Gets the id of this GetPaymentsResponse. # noqa: E501 + + + :return: The id of this GetPaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetPaymentsResponse. + + + :param id: The id of this GetPaymentsResponse. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def status(self): + """Gets the status of this GetPaymentsResponse. # noqa: E501 + + + :return: The status of this GetPaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetPaymentsResponse. + + + :param status: The status of this GetPaymentsResponse. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def provider_name(self): + """Gets the provider_name of this GetPaymentsResponse. # noqa: E501 + + + :return: The provider_name of this GetPaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._provider_name + + @provider_name.setter + def provider_name(self, provider_name): + """Sets the provider_name of this GetPaymentsResponse. + + + :param provider_name: The provider_name of this GetPaymentsResponse. # noqa: E501 + :type: str + """ + + self._provider_name = provider_name + + @property + def date_time_utc(self): + """Gets the date_time_utc of this GetPaymentsResponse. # noqa: E501 + + + :return: The date_time_utc of this GetPaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._date_time_utc + + @date_time_utc.setter + def date_time_utc(self, date_time_utc): + """Sets the date_time_utc of this GetPaymentsResponse. + + + :param date_time_utc: The date_time_utc of this GetPaymentsResponse. # noqa: E501 + :type: str + """ + + self._date_time_utc = date_time_utc + + @property + def page_info(self): + """Gets the page_info of this GetPaymentsResponse. # noqa: E501 + + + :return: The page_info of this GetPaymentsResponse. # noqa: E501 + :rtype: PageInfo + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this GetPaymentsResponse. + + + :param page_info: The page_info of this GetPaymentsResponse. # noqa: E501 + :type: PageInfo + """ + + self._page_info = page_info + + @property + def payments(self): + """Gets the payments of this GetPaymentsResponse. # noqa: E501 + + + :return: The payments of this GetPaymentsResponse. # noqa: E501 + :rtype: list[Payment] + """ + return self._payments + + @payments.setter + def payments(self, payments): + """Sets the payments of this GetPaymentsResponse. + + + :param payments: The payments of this GetPaymentsResponse. # noqa: E501 + :type: list[Payment] + """ + + self._payments = payments diff --git a/xero_python/accounting/models/get_prepayments_response.py b/xero_python/accounting/models/get_prepayments_response.py new file mode 100644 index 00000000..468762f5 --- /dev/null +++ b/xero_python/accounting/models/get_prepayments_response.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Xero Accounting API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from xero_python.models import BaseModel + + +class GetPrepaymentsResponse(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "id": "str", + "status": "str", + "provider_name": "str", + "date_time_utc": "str", + "page_info": "PageInfo", + "prepayments": "list[Prepayment]", + } + + attribute_map = { + "id": "Id", + "status": "Status", + "provider_name": "ProviderName", + "date_time_utc": "DateTimeUTC", + "page_info": "PageInfo", + "prepayments": "Prepayments", + } + + def __init__( + self, + id=None, + status=None, + provider_name=None, + date_time_utc=None, + page_info=None, + prepayments=None, + ): # noqa: E501 + """GetPrepaymentsResponse - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._status = None + self._provider_name = None + self._date_time_utc = None + self._page_info = None + self._prepayments = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if provider_name is not None: + self.provider_name = provider_name + if date_time_utc is not None: + self.date_time_utc = date_time_utc + if page_info is not None: + self.page_info = page_info + if prepayments is not None: + self.prepayments = prepayments + + @property + def id(self): + """Gets the id of this GetPrepaymentsResponse. # noqa: E501 + + + :return: The id of this GetPrepaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetPrepaymentsResponse. + + + :param id: The id of this GetPrepaymentsResponse. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def status(self): + """Gets the status of this GetPrepaymentsResponse. # noqa: E501 + + + :return: The status of this GetPrepaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetPrepaymentsResponse. + + + :param status: The status of this GetPrepaymentsResponse. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def provider_name(self): + """Gets the provider_name of this GetPrepaymentsResponse. # noqa: E501 + + + :return: The provider_name of this GetPrepaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._provider_name + + @provider_name.setter + def provider_name(self, provider_name): + """Sets the provider_name of this GetPrepaymentsResponse. + + + :param provider_name: The provider_name of this GetPrepaymentsResponse. # noqa: E501 + :type: str + """ + + self._provider_name = provider_name + + @property + def date_time_utc(self): + """Gets the date_time_utc of this GetPrepaymentsResponse. # noqa: E501 + + + :return: The date_time_utc of this GetPrepaymentsResponse. # noqa: E501 + :rtype: str + """ + return self._date_time_utc + + @date_time_utc.setter + def date_time_utc(self, date_time_utc): + """Sets the date_time_utc of this GetPrepaymentsResponse. + + + :param date_time_utc: The date_time_utc of this GetPrepaymentsResponse. # noqa: E501 + :type: str + """ + + self._date_time_utc = date_time_utc + + @property + def page_info(self): + """Gets the page_info of this GetPrepaymentsResponse. # noqa: E501 + + + :return: The page_info of this GetPrepaymentsResponse. # noqa: E501 + :rtype: PageInfo + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this GetPrepaymentsResponse. + + + :param page_info: The page_info of this GetPrepaymentsResponse. # noqa: E501 + :type: PageInfo + """ + + self._page_info = page_info + + @property + def prepayments(self): + """Gets the prepayments of this GetPrepaymentsResponse. # noqa: E501 + + + :return: The prepayments of this GetPrepaymentsResponse. # noqa: E501 + :rtype: list[Prepayment] + """ + return self._prepayments + + @prepayments.setter + def prepayments(self, prepayments): + """Sets the prepayments of this GetPrepaymentsResponse. + + + :param prepayments: The prepayments of this GetPrepaymentsResponse. # noqa: E501 + :type: list[Prepayment] + """ + + self._prepayments = prepayments diff --git a/xero_python/accounting/models/get_purchase_orders_response.py b/xero_python/accounting/models/get_purchase_orders_response.py new file mode 100644 index 00000000..7fb6427d --- /dev/null +++ b/xero_python/accounting/models/get_purchase_orders_response.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Xero Accounting API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from xero_python.models import BaseModel + + +class GetPurchaseOrdersResponse(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "id": "str", + "status": "str", + "provider_name": "str", + "date_time_utc": "str", + "page_info": "PageInfo", + "purchase_orders": "list[PurchaseOrder]", + } + + attribute_map = { + "id": "Id", + "status": "Status", + "provider_name": "ProviderName", + "date_time_utc": "DateTimeUTC", + "page_info": "PageInfo", + "purchase_orders": "PurchaseOrders", + } + + def __init__( + self, + id=None, + status=None, + provider_name=None, + date_time_utc=None, + page_info=None, + purchase_orders=None, + ): # noqa: E501 + """GetPurchaseOrdersResponse - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._status = None + self._provider_name = None + self._date_time_utc = None + self._page_info = None + self._purchase_orders = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if provider_name is not None: + self.provider_name = provider_name + if date_time_utc is not None: + self.date_time_utc = date_time_utc + if page_info is not None: + self.page_info = page_info + if purchase_orders is not None: + self.purchase_orders = purchase_orders + + @property + def id(self): + """Gets the id of this GetPurchaseOrdersResponse. # noqa: E501 + + + :return: The id of this GetPurchaseOrdersResponse. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetPurchaseOrdersResponse. + + + :param id: The id of this GetPurchaseOrdersResponse. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def status(self): + """Gets the status of this GetPurchaseOrdersResponse. # noqa: E501 + + + :return: The status of this GetPurchaseOrdersResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetPurchaseOrdersResponse. + + + :param status: The status of this GetPurchaseOrdersResponse. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def provider_name(self): + """Gets the provider_name of this GetPurchaseOrdersResponse. # noqa: E501 + + + :return: The provider_name of this GetPurchaseOrdersResponse. # noqa: E501 + :rtype: str + """ + return self._provider_name + + @provider_name.setter + def provider_name(self, provider_name): + """Sets the provider_name of this GetPurchaseOrdersResponse. + + + :param provider_name: The provider_name of this GetPurchaseOrdersResponse. # noqa: E501 + :type: str + """ + + self._provider_name = provider_name + + @property + def date_time_utc(self): + """Gets the date_time_utc of this GetPurchaseOrdersResponse. # noqa: E501 + + + :return: The date_time_utc of this GetPurchaseOrdersResponse. # noqa: E501 + :rtype: str + """ + return self._date_time_utc + + @date_time_utc.setter + def date_time_utc(self, date_time_utc): + """Sets the date_time_utc of this GetPurchaseOrdersResponse. + + + :param date_time_utc: The date_time_utc of this GetPurchaseOrdersResponse. # noqa: E501 + :type: str + """ + + self._date_time_utc = date_time_utc + + @property + def page_info(self): + """Gets the page_info of this GetPurchaseOrdersResponse. # noqa: E501 + + + :return: The page_info of this GetPurchaseOrdersResponse. # noqa: E501 + :rtype: PageInfo + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this GetPurchaseOrdersResponse. + + + :param page_info: The page_info of this GetPurchaseOrdersResponse. # noqa: E501 + :type: PageInfo + """ + + self._page_info = page_info + + @property + def purchase_orders(self): + """Gets the purchase_orders of this GetPurchaseOrdersResponse. # noqa: E501 + + + :return: The purchase_orders of this GetPurchaseOrdersResponse. # noqa: E501 + :rtype: list[PurchaseOrder] + """ + return self._purchase_orders + + @purchase_orders.setter + def purchase_orders(self, purchase_orders): + """Sets the purchase_orders of this GetPurchaseOrdersResponse. + + + :param purchase_orders: The purchase_orders of this GetPurchaseOrdersResponse. # noqa: E501 + :type: list[PurchaseOrder] + """ + + self._purchase_orders = purchase_orders diff --git a/xero_python/accounting/models/page_info.py b/xero_python/accounting/models/page_info.py new file mode 100644 index 00000000..00179639 --- /dev/null +++ b/xero_python/accounting/models/page_info.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Xero Accounting API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from xero_python.models import BaseModel + + +class PageInfo(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "page": "int", + "page_size": "int", + "total_pages": "int", + "total_rows": "int", + } + + attribute_map = { + "page": "Page", + "page_size": "PageSize", + "total_pages": "TotalPages", + "total_rows": "TotalRows", + } + + def __init__( + self, page=None, page_size=None, total_pages=None, total_rows=None + ): # noqa: E501 + """PageInfo - a model defined in OpenAPI""" # noqa: E501 + + self._page = None + self._page_size = None + self._total_pages = None + self._total_rows = None + self.discriminator = None + + if page is not None: + self.page = page + if page_size is not None: + self.page_size = page_size + if total_pages is not None: + self.total_pages = total_pages + if total_rows is not None: + self.total_rows = total_rows + + @property + def page(self): + """Gets the page of this PageInfo. # noqa: E501 + + + :return: The page of this PageInfo. # noqa: E501 + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this PageInfo. + + + :param page: The page of this PageInfo. # noqa: E501 + :type: int + """ + + self._page = page + + @property + def page_size(self): + """Gets the page_size of this PageInfo. # noqa: E501 + + + :return: The page_size of this PageInfo. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this PageInfo. + + + :param page_size: The page_size of this PageInfo. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def total_pages(self): + """Gets the total_pages of this PageInfo. # noqa: E501 + + + :return: The total_pages of this PageInfo. # noqa: E501 + :rtype: int + """ + return self._total_pages + + @total_pages.setter + def total_pages(self, total_pages): + """Sets the total_pages of this PageInfo. + + + :param total_pages: The total_pages of this PageInfo. # noqa: E501 + :type: int + """ + + self._total_pages = total_pages + + @property + def total_rows(self): + """Gets the total_rows of this PageInfo. # noqa: E501 + + + :return: The total_rows of this PageInfo. # noqa: E501 + :rtype: int + """ + return self._total_rows + + @total_rows.setter + def total_rows(self, total_rows): + """Sets the total_rows of this PageInfo. + + + :param total_rows: The total_rows of this PageInfo. # noqa: E501 + :type: int + """ + + self._total_rows = total_rows diff --git a/xero_python/appstore/api/app_store_api.py b/xero_python/appstore/api/app_store_api.py index aa8e61bb..49c48642 100644 --- a/xero_python/appstore/api/app_store_api.py +++ b/xero_python/appstore/api/app_store_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 4.0.0 + OpenAPI spec version: 5.0.0 """ import importlib diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py index d66de553..eb17e0d5 100644 --- a/xero_python/assets/api/asset_api.py +++ b/xero_python/assets/api/asset_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 4.0.0 + OpenAPI spec version: 5.0.0 """ import importlib diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md index 36f4ac13..d135791e 100644 --- a/xero_python/docs/README.md +++ b/xero_python/docs/README.md @@ -3,8 +3,8 @@ These endpoints are related to managing authentication tokens and identity for X The `xero_python` package is automatically generated by the [XeroAPI SDK 2.0 Codegen](https://github.com/xero-github/xeroapi-sdk-codegen) project: -- API version: 4.0.0 -- Package version: 4.0.0 +- API version: 5.0.0 +- Package version: 5.0.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://developer.xero.com](https://developer.xero.com) diff --git a/xero_python/file/api/files_api.py b/xero_python/file/api/files_api.py index 1fb9315c..11641c35 100644 --- a/xero_python/file/api/files_api.py +++ b/xero_python/file/api/files_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 4.0.0 + OpenAPI spec version: 5.0.0 """ import importlib diff --git a/xero_python/finance/api/finance_api.py b/xero_python/finance/api/finance_api.py index bf2e35a4..b94d1650 100644 --- a/xero_python/finance/api/finance_api.py +++ b/xero_python/finance/api/finance_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 4.0.0 + OpenAPI spec version: 5.0.0 """ import importlib diff --git a/xero_python/finance/docs/DataSourceResponse.md b/xero_python/finance/docs/DataSourceResponse.md index 6e8ceffd..cf0841f5 100644 --- a/xero_python/finance/docs/DataSourceResponse.md +++ b/xero_python/finance/docs/DataSourceResponse.md @@ -3,21 +3,21 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**direct_bank_feed** | **float** | Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. | [optional] -**indirect_bank_feed** | **float** | Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. | [optional] -**file_upload** | **float** | Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. | [optional] -**manual** | **float** | Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. | [optional] -**direct_bank_feed_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] -**indirect_bank_feed_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] -**file_upload_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] -**manual_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] -**direct_bank_feed_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] -**indirect_bank_feed_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] -**file_upload_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] -**manual_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] -**other_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] -**other_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] -**other** | **float** | Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. | [optional] +**direct_bank_feed** | **float** | Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. | [optional] +**indirect_bank_feed** | **float** | No longer in use. | [optional] +**file_upload** | **float** | Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. | [optional] +**manual** | **float** | Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. | [optional] +**direct_bank_feed_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] +**indirect_bank_feed_pos** | **float** | No longer in use. | [optional] +**file_upload_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] +**manual_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] +**direct_bank_feed_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] +**indirect_bank_feed_neg** | **float** | No longer in use. | [optional] +**file_upload_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] +**manual_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] +**other_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] +**other_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] +**other** | **float** | Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. | [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/finance/models/data_source_response.py b/xero_python/finance/models/data_source_response.py index a3b33ba6..44cf283f 100644 --- a/xero_python/finance/models/data_source_response.py +++ b/xero_python/finance/models/data_source_response.py @@ -137,7 +137,7 @@ def __init__( def direct_bank_feed(self): """Gets the direct_bank_feed of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. # noqa: E501 :return: The direct_bank_feed of this DataSourceResponse. # noqa: E501 :rtype: float @@ -148,7 +148,7 @@ def direct_bank_feed(self): def direct_bank_feed(self, direct_bank_feed): """Sets the direct_bank_feed of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. # noqa: E501 :param direct_bank_feed: The direct_bank_feed of this DataSourceResponse. # noqa: E501 :type: float @@ -160,7 +160,7 @@ def direct_bank_feed(self, direct_bank_feed): def indirect_bank_feed(self): """Gets the indirect_bank_feed of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. # noqa: E501 + No longer in use. # noqa: E501 :return: The indirect_bank_feed of this DataSourceResponse. # noqa: E501 :rtype: float @@ -171,7 +171,7 @@ def indirect_bank_feed(self): def indirect_bank_feed(self, indirect_bank_feed): """Sets the indirect_bank_feed of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. # noqa: E501 + No longer in use. # noqa: E501 :param indirect_bank_feed: The indirect_bank_feed of this DataSourceResponse. # noqa: E501 :type: float @@ -183,7 +183,7 @@ def indirect_bank_feed(self, indirect_bank_feed): def file_upload(self): """Gets the file_upload of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. # noqa: E501 :return: The file_upload of this DataSourceResponse. # noqa: E501 :rtype: float @@ -194,7 +194,7 @@ def file_upload(self): def file_upload(self, file_upload): """Sets the file_upload of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. # noqa: E501 :param file_upload: The file_upload of this DataSourceResponse. # noqa: E501 :type: float @@ -206,7 +206,7 @@ def file_upload(self, file_upload): def manual(self): """Gets the manual of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. # noqa: E501 :return: The manual of this DataSourceResponse. # noqa: E501 :rtype: float @@ -217,7 +217,7 @@ def manual(self): def manual(self, manual): """Sets the manual of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. # noqa: E501 :param manual: The manual of this DataSourceResponse. # noqa: E501 :type: float @@ -229,7 +229,7 @@ def manual(self, manual): def direct_bank_feed_pos(self): """Gets the direct_bank_feed_pos of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 :return: The direct_bank_feed_pos of this DataSourceResponse. # noqa: E501 :rtype: float @@ -240,7 +240,7 @@ def direct_bank_feed_pos(self): def direct_bank_feed_pos(self, direct_bank_feed_pos): """Sets the direct_bank_feed_pos of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 :param direct_bank_feed_pos: The direct_bank_feed_pos of this DataSourceResponse. # noqa: E501 :type: float @@ -252,7 +252,7 @@ def direct_bank_feed_pos(self, direct_bank_feed_pos): def indirect_bank_feed_pos(self): """Gets the indirect_bank_feed_pos of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 + No longer in use. # noqa: E501 :return: The indirect_bank_feed_pos of this DataSourceResponse. # noqa: E501 :rtype: float @@ -263,7 +263,7 @@ def indirect_bank_feed_pos(self): def indirect_bank_feed_pos(self, indirect_bank_feed_pos): """Sets the indirect_bank_feed_pos of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 + No longer in use. # noqa: E501 :param indirect_bank_feed_pos: The indirect_bank_feed_pos of this DataSourceResponse. # noqa: E501 :type: float @@ -275,7 +275,7 @@ def indirect_bank_feed_pos(self, indirect_bank_feed_pos): def file_upload_pos(self): """Gets the file_upload_pos of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 :return: The file_upload_pos of this DataSourceResponse. # noqa: E501 :rtype: float @@ -286,7 +286,7 @@ def file_upload_pos(self): def file_upload_pos(self, file_upload_pos): """Sets the file_upload_pos of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 :param file_upload_pos: The file_upload_pos of this DataSourceResponse. # noqa: E501 :type: float @@ -298,7 +298,7 @@ def file_upload_pos(self, file_upload_pos): def manual_pos(self): """Gets the manual_pos of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 :return: The manual_pos of this DataSourceResponse. # noqa: E501 :rtype: float @@ -309,7 +309,7 @@ def manual_pos(self): def manual_pos(self, manual_pos): """Sets the manual_pos of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 :param manual_pos: The manual_pos of this DataSourceResponse. # noqa: E501 :type: float @@ -321,7 +321,7 @@ def manual_pos(self, manual_pos): def direct_bank_feed_neg(self): """Gets the direct_bank_feed_neg of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 :return: The direct_bank_feed_neg of this DataSourceResponse. # noqa: E501 :rtype: float @@ -332,7 +332,7 @@ def direct_bank_feed_neg(self): def direct_bank_feed_neg(self, direct_bank_feed_neg): """Sets the direct_bank_feed_neg of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 :param direct_bank_feed_neg: The direct_bank_feed_neg of this DataSourceResponse. # noqa: E501 :type: float @@ -344,7 +344,7 @@ def direct_bank_feed_neg(self, direct_bank_feed_neg): def indirect_bank_feed_neg(self): """Gets the indirect_bank_feed_neg of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 + No longer in use. # noqa: E501 :return: The indirect_bank_feed_neg of this DataSourceResponse. # noqa: E501 :rtype: float @@ -355,7 +355,7 @@ def indirect_bank_feed_neg(self): def indirect_bank_feed_neg(self, indirect_bank_feed_neg): """Sets the indirect_bank_feed_neg of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 + No longer in use. # noqa: E501 :param indirect_bank_feed_neg: The indirect_bank_feed_neg of this DataSourceResponse. # noqa: E501 :type: float @@ -367,7 +367,7 @@ def indirect_bank_feed_neg(self, indirect_bank_feed_neg): def file_upload_neg(self): """Gets the file_upload_neg of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 :return: The file_upload_neg of this DataSourceResponse. # noqa: E501 :rtype: float @@ -378,7 +378,7 @@ def file_upload_neg(self): def file_upload_neg(self, file_upload_neg): """Sets the file_upload_neg of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 :param file_upload_neg: The file_upload_neg of this DataSourceResponse. # noqa: E501 :type: float @@ -390,7 +390,7 @@ def file_upload_neg(self, file_upload_neg): def manual_neg(self): """Gets the manual_neg of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 :return: The manual_neg of this DataSourceResponse. # noqa: E501 :rtype: float @@ -401,7 +401,7 @@ def manual_neg(self): def manual_neg(self, manual_neg): """Sets the manual_neg of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 :param manual_neg: The manual_neg of this DataSourceResponse. # noqa: E501 :type: float @@ -413,7 +413,7 @@ def manual_neg(self, manual_neg): def other_pos(self): """Gets the other_pos of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 :return: The other_pos of this DataSourceResponse. # noqa: E501 :rtype: float @@ -424,7 +424,7 @@ def other_pos(self): def other_pos(self, other_pos): """Sets the other_pos of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. # noqa: E501 :param other_pos: The other_pos of this DataSourceResponse. # noqa: E501 :type: float @@ -436,7 +436,7 @@ def other_pos(self, other_pos): def other_neg(self): """Gets the other_neg of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 :return: The other_neg of this DataSourceResponse. # noqa: E501 :rtype: float @@ -447,7 +447,7 @@ def other_neg(self): def other_neg(self, other_neg): """Sets the other_neg of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. # noqa: E501 :param other_neg: The other_neg of this DataSourceResponse. # noqa: E501 :type: float @@ -459,7 +459,7 @@ def other_neg(self, other_neg): def other(self): """Gets the other of this DataSourceResponse. # noqa: E501 - Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. # noqa: E501 :return: The other of this DataSourceResponse. # noqa: E501 :rtype: float @@ -470,7 +470,7 @@ def other(self): def other(self, other): """Sets the other of this DataSourceResponse. - Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. # noqa: E501 + Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. # noqa: E501 :param other: The other of this DataSourceResponse. # noqa: E501 :type: float diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py index 0b5593f5..a801f141 100644 --- a/xero_python/identity/api/identity_api.py +++ b/xero_python/identity/api/identity_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 4.0.0 + OpenAPI spec version: 5.0.0 """ import importlib diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py index 4b36b0f1..a050c796 100644 --- a/xero_python/payrollau/api/payroll_au_api.py +++ b/xero_python/payrollau/api/payroll_au_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 4.0.0 + OpenAPI spec version: 5.0.0 """ import importlib diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py index 0c510855..e81cb80d 100644 --- a/xero_python/payrollnz/api/payroll_nz_api.py +++ b/xero_python/payrollnz/api/payroll_nz_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 4.0.0 + OpenAPI spec version: 5.0.0 """ import importlib diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py index b66db55c..a7e6b521 100644 --- a/xero_python/payrolluk/api/payroll_uk_api.py +++ b/xero_python/payrolluk/api/payroll_uk_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 4.0.0 + OpenAPI spec version: 5.0.0 """ import importlib diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py index 8ff30279..b94a295b 100644 --- a/xero_python/project/api/project_api.py +++ b/xero_python/project/api/project_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 4.0.0 + OpenAPI spec version: 5.0.0 """ import importlib