From 964e7596521d46f435e113a4a373f355dfef1659 Mon Sep 17 00:00:00 2001 From: Rett Behrens Date: Thu, 17 Feb 2022 15:42:14 -0700 Subject: [PATCH 1/2] generates xero-python-1.13.0 from OAS 2.18.0 --- docs/v1/accounting/index.html | 26 +- setup.py | 2 +- xero_python/__init__.py | 2 +- xero_python/accounting/__init__.py | 1 + xero_python/accounting/api/accounting_api.py | 2 +- xero_python/accounting/docs/LineItem.md | 1 + xero_python/accounting/docs/LineItemItem.md | 12 + xero_python/accounting/models/__init__.py | 1 + xero_python/accounting/models/line_item.py | 27 ++ .../accounting/models/line_item_item.py | 126 ++++++ xero_python/appstore/api/app_store_api.py | 2 +- xero_python/assets/api/asset_api.py | 2 +- xero_python/docs/README.md | 4 +- xero_python/file/api/files_api.py | 2 +- xero_python/finance/__init__.py | 13 + xero_python/finance/api/finance_api.py | 104 ++++- .../docs/BankStatementAccountingResponse.md | 13 + .../finance/docs/BankTransactionResponse.md | 15 + xero_python/finance/docs/ContactResponse.md | 11 + .../finance/docs/CreditNoteResponse.md | 13 + xero_python/finance/docs/FinanceApi.md | 72 +++ xero_python/finance/docs/InvoiceResponse.md | 13 + xero_python/finance/docs/LineItemResponse.md | 13 + .../finance/docs/OverpaymentResponse.md | 13 + xero_python/finance/docs/PaymentResponse.md | 19 + .../finance/docs/PrepaymentResponse.md | 13 + .../finance/docs/StatementLineResponse.md | 22 + xero_python/finance/docs/StatementResponse.md | 15 + xero_python/finance/models/__init__.py | 13 + .../bank_statement_accounting_response.py | 160 +++++++ .../models/bank_transaction_response.py | 216 +++++++++ .../finance/models/contact_response.py | 92 ++++ .../finance/models/credit_note_response.py | 154 +++++++ .../finance/models/invoice_response.py | 154 +++++++ .../finance/models/line_item_response.py | 156 +++++++ .../finance/models/overpayment_response.py | 154 +++++++ .../finance/models/payment_response.py | 326 ++++++++++++++ .../finance/models/prepayment_response.py | 154 +++++++ xero_python/finance/models/problem_type.py | 9 +- .../finance/models/statement_line_response.py | 421 ++++++++++++++++++ .../finance/models/statement_response.py | 218 +++++++++ xero_python/identity/api/identity_api.py | 2 +- xero_python/payrollau/api/payroll_au_api.py | 2 +- xero_python/payrollnz/api/payroll_nz_api.py | 2 +- xero_python/payrolluk/api/payroll_uk_api.py | 4 +- xero_python/payrolluk/docs/Employee.md | 1 + xero_python/payrolluk/docs/PayrollUkApi.md | 8 +- xero_python/payrolluk/models/employee.py | 29 ++ xero_python/project/api/project_api.py | 2 +- 49 files changed, 2814 insertions(+), 22 deletions(-) create mode 100644 xero_python/accounting/docs/LineItemItem.md create mode 100644 xero_python/accounting/models/line_item_item.py create mode 100644 xero_python/finance/docs/BankStatementAccountingResponse.md create mode 100644 xero_python/finance/docs/BankTransactionResponse.md create mode 100644 xero_python/finance/docs/ContactResponse.md create mode 100644 xero_python/finance/docs/CreditNoteResponse.md create mode 100644 xero_python/finance/docs/InvoiceResponse.md create mode 100644 xero_python/finance/docs/LineItemResponse.md create mode 100644 xero_python/finance/docs/OverpaymentResponse.md create mode 100644 xero_python/finance/docs/PaymentResponse.md create mode 100644 xero_python/finance/docs/PrepaymentResponse.md create mode 100644 xero_python/finance/docs/StatementLineResponse.md create mode 100644 xero_python/finance/docs/StatementResponse.md create mode 100644 xero_python/finance/models/bank_statement_accounting_response.py create mode 100644 xero_python/finance/models/bank_transaction_response.py create mode 100644 xero_python/finance/models/contact_response.py create mode 100644 xero_python/finance/models/credit_note_response.py create mode 100644 xero_python/finance/models/invoice_response.py create mode 100644 xero_python/finance/models/line_item_response.py create mode 100644 xero_python/finance/models/overpayment_response.py create mode 100644 xero_python/finance/models/payment_response.py create mode 100644 xero_python/finance/models/prepayment_response.py create mode 100644 xero_python/finance/models/statement_line_response.py create mode 100644 xero_python/finance/models/statement_response.py diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index 4e9666dd..7bfbd2ac 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -3535,6 +3535,9 @@ "format" : "double", "x-is-money" : true }, + "Item" : { + "$ref" : "#/components/schemas/LineItemItem" + }, "LineAmount" : { "type" : "number", "description" : "If you wish to omit either of the or you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if a DiscountRate has been used . i.e LineAmount = Quantity * Unit Amount * ((100 – DiscountRate)/100)", @@ -3571,6 +3574,27 @@ "externalDocs" : { "url" : "https://developer.xero.com/documentation/api/invoices#post" } +}; + defs["LineItemItem"] = { + "title" : "", + "properties" : { + "Code" : { + "maxLength" : 30, + "type" : "string", + "description" : "User defined item code (max length = 30)" + }, + "Name" : { + "maxLength" : 50, + "type" : "string", + "description" : "The name of the item (max length = 50)" + }, + "ItemID" : { + "type" : "string", + "description" : "The Xero identifier for an Item", + "format" : "uuid" + } + }, + "description" : "" }; defs["LineItemTracking"] = { "title" : "", @@ -5976,7 +6000,7 @@