From fb88166d8b065d92864ac76ac88ec485352626f8 Mon Sep 17 00:00:00 2001 From: Rett Behrens Date: Tue, 1 Mar 2022 10:30:39 -0700 Subject: [PATCH] generates xero-ruby-3.7.0 from OAS 2.19.1 --- docs/accounting/LineItem.md | 2 + docs/accounting/LineItemItem.md | 21 + docs/accounting/index.html | 26 +- docs/app_store/index.html | 2 +- docs/assets/index.html | 2 +- docs/files/index.html | 2 +- .../BankStatementAccountingResponse.md | 23 + docs/finance/BankTransactionResponse.md | 27 + docs/finance/ContactResponse.md | 19 + docs/finance/CreditNoteResponse.md | 23 + docs/finance/FinanceApi.md | 76 +++ docs/finance/InvoiceResponse.md | 23 + docs/finance/LineItemResponse.md | 23 + docs/finance/OverpaymentResponse.md | 23 + docs/finance/PaymentResponse.md | 35 ++ docs/finance/PrepaymentResponse.md | 23 + docs/finance/StatementLineResponse.md | 41 ++ docs/finance/StatementResponse.md | 27 + docs/finance/index.html | 589 +++++++++++++++++- docs/payroll_au/index.html | 2 +- docs/payroll_nz/index.html | 2 +- docs/payroll_uk/Employee.md | 4 +- docs/payroll_uk/PayrollUkApi.md | 8 +- docs/payroll_uk/index.html | 14 +- docs/projects/index.html | 2 +- lib/xero-ruby.rb | 12 + lib/xero-ruby/api/finance_api.rb | 95 +++ lib/xero-ruby/api/payroll_uk_api.rb | 4 +- lib/xero-ruby/models/accounting/line_item.rb | 12 +- .../models/accounting/line_item_item.rb | 272 ++++++++ .../bank_statement_accounting_response.rb | 254 ++++++++ .../finance/bank_transaction_response.rb | 274 ++++++++ .../models/finance/contact_response.rb | 232 +++++++ .../models/finance/credit_note_response.rb | 254 ++++++++ .../models/finance/invoice_response.rb | 254 ++++++++ .../models/finance/line_item_response.rb | 252 ++++++++ .../models/finance/overpayment_response.rb | 254 ++++++++ .../models/finance/payment_response.rb | 312 ++++++++++ .../models/finance/prepayment_response.rb | 254 ++++++++ lib/xero-ruby/models/finance/problem_type.rb | 9 +- .../models/finance/statement_line_response.rb | 346 ++++++++++ .../models/finance/statement_response.rb | 274 ++++++++ lib/xero-ruby/models/payroll_uk/employee.rb | 18 +- lib/xero-ruby/version.rb | 4 +- 44 files changed, 4395 insertions(+), 30 deletions(-) create mode 100644 docs/accounting/LineItemItem.md create mode 100644 docs/finance/BankStatementAccountingResponse.md create mode 100644 docs/finance/BankTransactionResponse.md create mode 100644 docs/finance/ContactResponse.md create mode 100644 docs/finance/CreditNoteResponse.md create mode 100644 docs/finance/InvoiceResponse.md create mode 100644 docs/finance/LineItemResponse.md create mode 100644 docs/finance/OverpaymentResponse.md create mode 100644 docs/finance/PaymentResponse.md create mode 100644 docs/finance/PrepaymentResponse.md create mode 100644 docs/finance/StatementLineResponse.md create mode 100644 docs/finance/StatementResponse.md create mode 100644 lib/xero-ruby/models/accounting/line_item_item.rb create mode 100644 lib/xero-ruby/models/finance/bank_statement_accounting_response.rb create mode 100644 lib/xero-ruby/models/finance/bank_transaction_response.rb create mode 100644 lib/xero-ruby/models/finance/contact_response.rb create mode 100644 lib/xero-ruby/models/finance/credit_note_response.rb create mode 100644 lib/xero-ruby/models/finance/invoice_response.rb create mode 100644 lib/xero-ruby/models/finance/line_item_response.rb create mode 100644 lib/xero-ruby/models/finance/overpayment_response.rb create mode 100644 lib/xero-ruby/models/finance/payment_response.rb create mode 100644 lib/xero-ruby/models/finance/prepayment_response.rb create mode 100644 lib/xero-ruby/models/finance/statement_line_response.rb create mode 100644 lib/xero-ruby/models/finance/statement_response.rb diff --git a/docs/accounting/LineItem.md b/docs/accounting/LineItem.md index 9f8eae0d..38b4e9dc 100644 --- a/docs/accounting/LineItem.md +++ b/docs/accounting/LineItem.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **account_id** | **String** | The associated account ID related to this line item | [optional] **tax_type** | **String** | The tax type from TaxRates | [optional] **tax_amount** | **BigDecimal** | The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated <TaxAmount> is not correct. | [optional] +**item** | [**LineItemItem**](LineItemItem.md) | | [optional] **line_amount** | **BigDecimal** | If you wish to omit either of the <Quantity> or <UnitAmount> 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) | [optional] **tracking** | [**Array<LineItemTracking>**](LineItemTracking.md) | Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 <TrackingCategory> elements. | [optional] **discount_rate** | **BigDecimal** | Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts | [optional] @@ -33,6 +34,7 @@ instance = XeroRuby::Accounting::LineItem.new(line_item_id: 00000000-0000-0000-0 account_id: 00000000-0000-0000-0000-000000000000, tax_type: null, tax_amount: null, + item: null, line_amount: null, tracking: null, discount_rate: null, diff --git a/docs/accounting/LineItemItem.md b/docs/accounting/LineItemItem.md new file mode 100644 index 00000000..17223270 --- /dev/null +++ b/docs/accounting/LineItemItem.md @@ -0,0 +1,21 @@ +# XeroRuby::Accounting::LineItemItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | User defined item code (max length = 30) | [optional] +**name** | **String** | The name of the item (max length = 50) | [optional] +**item_id** | **String** | The Xero identifier for an Item | [optional] + +## Code Sample + +```ruby +require 'XeroRuby::Accounting' + +instance = XeroRuby::Accounting::LineItemItem.new(code: null, + name: null, + item_id: null) +``` + + diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 6e4f8b25..91034571 100644 --- a/docs/accounting/index.html +++ b/docs/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" : "", @@ -5984,7 +6008,7 @@