diff --git a/Gemfile.lock b/Gemfile.lock index fcb65a2e..8dde2721 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - xero-ruby (17.0.0) + xero-ruby (18.0.0) faraday (>= 2.0, < 3.0) json (~> 2.1, >= 2.1.0) json-jwt (~> 1.16, >= 1.16.3) diff --git a/docs/accounting/AccountingApi.md b/docs/accounting/AccountingApi.md index 255e8e89..3770ac3d 100644 --- a/docs/accounting/AccountingApi.md +++ b/docs/accounting/AccountingApi.md @@ -60,6 +60,8 @@ Method | HTTP request | Description [**create_tracking_category**](AccountingApi.md#create_tracking_category) | **PUT** /TrackingCategories | Create tracking categories [**create_tracking_options**](AccountingApi.md#create_tracking_options) | **PUT** /TrackingCategories/{TrackingCategoryID}/Options | Creates options for a specific tracking category [**delete_account**](AccountingApi.md#delete_account) | **DELETE** /Accounts/{AccountID} | Deletes a chart of accounts +[**delete_bank_transfer**](AccountingApi.md#delete_bank_transfer) | **POST** /BankTransfers/{BankTransferID} | Deletes a specific bank transfer +[**delete_bank_transfers**](AccountingApi.md#delete_bank_transfers) | **POST** /BankTransfers | Deletes one or more bank transfers [**delete_batch_payment**](AccountingApi.md#delete_batch_payment) | **POST** /BatchPayments | Updates a specific batch payment for invoices and credit notes [**delete_batch_payment_by_url_param**](AccountingApi.md#delete_batch_payment_by_url_param) | **POST** /BatchPayments/{BatchPaymentID} | Updates a specific batch payment for invoices and credit notes [**delete_contact_group_contact**](AccountingApi.md#delete_contact_group_contact) | **DELETE** /ContactGroups/{ContactGroupID}/Contacts/{ContactID} | Deletes a specific contact from a contact group using a unique contact Id @@ -633,7 +635,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant -bank_transfers = {"BankTransfers":[{"FromBankAccount":{"Code":"090","Name":"My Savings","AccountID":"00000000-0000-0000-0000-000000000000","Type":"BANK","BankAccountNumber":"123455","Status":"ACTIVE","BankAccountType":"BANK","CurrencyCode":"USD","TaxType":"NONE","EnablePaymentsToAccount":false,"ShowInExpenseClaims":false,"Class":"ASSET","ReportingCode":"ASS","ReportingCodeName":"Assets","HasAttachments":false,"UpdatedDateUTC":"2016-10-17T13:45:33.993-07:00"},"ToBankAccount":{"Code":"088","Name":"Business Wells Fargo","AccountID":"00000000-0000-0000-0000-000000000000","Type":"BANK","BankAccountNumber":"123455","Status":"ACTIVE","BankAccountType":"BANK","CurrencyCode":"USD","TaxType":"NONE","EnablePaymentsToAccount":false,"ShowInExpenseClaims":false,"Class":"ASSET","ReportingCode":"ASS","ReportingCodeName":"Assets","HasAttachments":false,"UpdatedDateUTC":"2016-06-03T08:31:14.517-07:00"},"Amount":"50.00","FromIsReconciled":true,"ToIsReconciled":true,"Reference":"Sub 098801"}]} # BankTransfers | BankTransfers with array of BankTransfer objects in request body +bank_transfers = {"BankTransfers":[{"FromBankAccount":{"Code":"090","Name":"My Savings","AccountID":"00000000-0000-0000-0000-000000000000","Type":"BANK","BankAccountNumber":"123455","Status":"ACTIVE","BankAccountType":"BANK","CurrencyCode":"USD","TaxType":"NONE","EnablePaymentsToAccount":false,"ShowInExpenseClaims":false,"Class":"ASSET","ReportingCode":"ASS","ReportingCodeName":"Assets","HasAttachments":false,"UpdatedDateUTC":"2016-10-17T13:45:33.993-07:00"},"ToBankAccount":{"Code":"088","Name":"Business Wells Fargo","AccountID":"00000000-0000-0000-0000-000000000000","Type":"BANK","BankAccountNumber":"123455","Status":"ACTIVE","BankAccountType":"BANK","CurrencyCode":"USD","TaxType":"NONE","EnablePaymentsToAccount":false,"ShowInExpenseClaims":false,"Class":"ASSET","ReportingCode":"ASS","ReportingCodeName":"Assets","HasAttachments":false,"UpdatedDateUTC":"2016-06-03T08:31:14.517-07:00"},"Amount":"50.00","FromIsReconciled":true,"ToIsReconciled":true,"Reference":"Sub 098801","FromTracking":[{"TrackingCategoryID":"e2f2f732-e92a-4f3a-9c4d-ee4da0182a13","TrackingOptionID":"cd0a4b7e-3c6b-4b3c-8e2a-1f2d3c4b5a69"}],"ToTracking":[{"TrackingCategoryID":"e2f2f732-e92a-4f3a-9c4d-ee4da0182a13","TrackingOptionID":"9f8e7d6c-5b4a-3c2d-1e0f-a9b8c7d6e5f4"}]}]} # BankTransfers | BankTransfers with array of BankTransfer objects in request body opts = { idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. } @@ -4248,6 +4250,149 @@ Name | Type | Description | Notes - **Accept**: application/json +## delete_bank_transfer + +> BankTransfers delete_bank_transfer(xero_tenant_id, bank_transfer_id, bank_transfer_delete_by_url_param, opts) + +Deletes a specific bank transfer + +### Example + +```ruby +# load the gem +require 'xero-ruby' + +creds = { + client_id: ENV['CLIENT_ID'], + client_secret: ENV['CLIENT_SECRET'], + redirect_uri: ENV['REDIRECT_URI'], + scopes: ENV['SCOPES'] +} +xero_client = XeroRuby::ApiClient.new(credentials: creds) + +token_set = fetch_valid_token_set(user) # example + +xero_client.refresh_token_set(token_set) + +# You need to namespace your api method call to one of the following api sets +# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api, :app_store_api] + +api_instance = xero_client. + + + +xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant +bank_transfer_id = '00000000-0000-0000-0000-000000000000' # String | Xero generated unique identifier for a bank transfer +bank_transfer_delete_by_url_param = {"Status":"DELETED"} # BankTransferDeleteByUrlParam | +opts = { + idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. +} + +begin + #Deletes a specific bank transfer + result = api_instance.delete_bank_transfer(xero_tenant_id, bank_transfer_id, bank_transfer_delete_by_url_param, opts) + p result +rescue XeroRuby::Accounting::ApiError => e + puts "Exception when calling AccountingApi->delete_bank_transfer: #{e}" +end +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xero_tenant_id** | **String**| Xero identifier for Tenant | + **bank_transfer_id** | [**String**](.md)| Xero generated unique identifier for a bank transfer | + **bank_transfer_delete_by_url_param** | [**BankTransferDeleteByUrlParam**](BankTransferDeleteByUrlParam.md)| | + **idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional] + +### Return type + +[**BankTransfers**](BankTransfers.md) + +### Authorization + +[OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## delete_bank_transfers + +> BankTransfers delete_bank_transfers(xero_tenant_id, bank_transfers_delete, opts) + +Deletes one or more bank transfers + +### Example + +```ruby +# load the gem +require 'xero-ruby' + +creds = { + client_id: ENV['CLIENT_ID'], + client_secret: ENV['CLIENT_SECRET'], + redirect_uri: ENV['REDIRECT_URI'], + scopes: ENV['SCOPES'] +} +xero_client = XeroRuby::ApiClient.new(credentials: creds) + +token_set = fetch_valid_token_set(user) # example + +xero_client.refresh_token_set(token_set) + +# You need to namespace your api method call to one of the following api sets +# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api, :app_store_api] + +api_instance = xero_client. + + + +xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant +bank_transfers_delete = {"BankTransfers":[{"BankTransferID":"6221458a-ef7a-4d5f-9b1c-1b96ce03833c","Status":"DELETED"},{"BankTransferID":"9f0153d5-617c-4903-887b-3875807aa27a","Status":"DELETED"}]} # BankTransfersDelete | BankTransfers with array of BankTransfer objects in request body +opts = { + summarize_errors: false, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + + idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. +} + +begin + #Deletes one or more bank transfers + result = api_instance.delete_bank_transfers(xero_tenant_id, bank_transfers_delete, opts) + p result +rescue XeroRuby::Accounting::ApiError => e + puts "Exception when calling AccountingApi->delete_bank_transfers: #{e}" +end +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xero_tenant_id** | **String**| Xero identifier for Tenant | + **bank_transfers_delete** | [**BankTransfersDelete**](BankTransfersDelete.md)| BankTransfers with array of BankTransfer objects in request body | + **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false] + **idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional] + +### Return type + +[**BankTransfers**](BankTransfers.md) + +### Authorization + +[OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + ## delete_batch_payment > BatchPayments delete_batch_payment(xero_tenant_id, batch_payment_delete, opts) @@ -6228,7 +6373,9 @@ opts = { where: 'HasAttachments==true', # String | Filter by an any element - order: 'Amount ASC' # String | Order by an any element + order: 'Amount ASC', # String | Order by an any element + + include_deleted: true # Boolean | e.g. includeDeleted=true - Bank transfers with a status of DELETED will be included in the response } begin @@ -6249,6 +6396,7 @@ Name | Type | Description | Notes **if_modified_since** | **DateTime**| Only records created or modified since this timestamp will be returned | [optional] **where** | **String**| Filter by an any element | [optional] **order** | **String**| Order by an any element | [optional] + **include_deleted** | **Boolean**| e.g. includeDeleted=true - Bank transfers with a status of DELETED will be included in the response | [optional] ### Return type diff --git a/docs/accounting/BankTransfer.md b/docs/accounting/BankTransfer.md index c1ab351f..4be476b3 100644 --- a/docs/accounting/BankTransfer.md +++ b/docs/accounting/BankTransfer.md @@ -17,6 +17,9 @@ Name | Type | Description | Notes **reference** | **String** | Reference for the transactions. | [optional] **has_attachments** | **Boolean** | Boolean to indicate if a Bank Transfer has an attachment | [optional] [default to false] **created_date_utc** | **DateTime** | UTC timestamp of creation date of bank transfer | [optional] +**status** | **String** | AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED. | [optional] +**from_tracking** | [**Array<TrackingReference>**](TrackingReference.md) | Optional Tracking Category for the source account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account. | [optional] +**to_tracking** | [**Array<TrackingReference>**](TrackingReference.md) | Optional Tracking Category for the destination account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account. | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] ## Code Sample @@ -37,6 +40,9 @@ instance = XeroRuby::Accounting::BankTransfer.new(from_bank_account: null, reference: null, has_attachments: false, created_date_utc: /Date(1573755038314)/, + status: null, + from_tracking: null, + to_tracking: null, validation_errors: null) ``` diff --git a/docs/accounting/BankTransferDelete.md b/docs/accounting/BankTransferDelete.md new file mode 100644 index 00000000..334fe94a --- /dev/null +++ b/docs/accounting/BankTransferDelete.md @@ -0,0 +1,19 @@ +# XeroRuby::Accounting::BankTransferDelete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bank_transfer_id** | **String** | The Xero identifier for a bank transfer | +**status** | **String** | The status of the bank transfer. | [default to 'DELETED'] + +## Code Sample + +```ruby +require 'XeroRuby::Accounting' + +instance = XeroRuby::Accounting::BankTransferDelete.new(bank_transfer_id: null, + status: null) +``` + + diff --git a/docs/accounting/BankTransferDeleteByUrlParam.md b/docs/accounting/BankTransferDeleteByUrlParam.md new file mode 100644 index 00000000..a716ae88 --- /dev/null +++ b/docs/accounting/BankTransferDeleteByUrlParam.md @@ -0,0 +1,17 @@ +# XeroRuby::Accounting::BankTransferDeleteByUrlParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | The status of the bank transfer. | [default to 'DELETED'] + +## Code Sample + +```ruby +require 'XeroRuby::Accounting' + +instance = XeroRuby::Accounting::BankTransferDeleteByUrlParam.new(status: null) +``` + + diff --git a/docs/accounting/BankTransfersDelete.md b/docs/accounting/BankTransfersDelete.md new file mode 100644 index 00000000..f53fe72c --- /dev/null +++ b/docs/accounting/BankTransfersDelete.md @@ -0,0 +1,17 @@ +# XeroRuby::Accounting::BankTransfersDelete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bank_transfers** | [**Array<BankTransferDelete>**](BankTransferDelete.md) | | [optional] + +## Code Sample + +```ruby +require 'XeroRuby::Accounting' + +instance = XeroRuby::Accounting::BankTransfersDelete.new(bank_transfers: null) +``` + + diff --git a/docs/accounting/CreditNote.md b/docs/accounting/CreditNote.md index 6cd3dffc..575b6cd3 100644 --- a/docs/accounting/CreditNote.md +++ b/docs/accounting/CreditNote.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **cis_deduction** | **BigDecimal** | CIS deduction for UK contractors | [optional] **cis_rate** | **BigDecimal** | CIS Deduction rate for the organisation | [optional] **updated_date_utc** | **DateTime** | UTC timestamp of last update to the credit note | [optional] +**updated_date_utc_string** | **String** | UTC ISO-8601 formatted timestamp of last update to the credit note | [optional] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **fully_paid_on_date** | **Date** | Date when credit note was fully paid(UTC format) | [optional] **credit_note_id** | **String** | Xero generated unique identifier | [optional] @@ -54,6 +55,7 @@ instance = XeroRuby::Accounting::CreditNote.new(type: null, cis_deduction: null, cis_rate: null, updated_date_utc: /Date(1573755038314)/, + updated_date_utc_string: 2019-11-14T18:10:38Z, currency_code: null, fully_paid_on_date: null, credit_note_id: null, diff --git a/docs/accounting/Invoice.md b/docs/accounting/Invoice.md index 5d92ff9e..3cbb469b 100644 --- a/docs/accounting/Invoice.md +++ b/docs/accounting/Invoice.md @@ -37,7 +37,8 @@ Name | Type | Description | Notes **amount_paid** | **BigDecimal** | Sum of payments received for invoice | [optional] **fully_paid_on_date** | **Date** | The date the invoice was fully paid. Only returned on fully paid invoices | [optional] **amount_credited** | **BigDecimal** | Sum of all credit notes, over-payments and pre-payments applied to invoice | [optional] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the invoice | [optional] +**updated_date_utc_string** | **String** | UTC ISO-8601 formatted timestamp of last update to the invoice | [optional] **credit_notes** | [**Array<CreditNote>**](CreditNote.md) | Details of credit notes that have been applied to an invoice | [optional] **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional] **has_errors** | **Boolean** | A boolean to indicate if a invoice has an validation errors | [optional] [default to false] @@ -85,6 +86,7 @@ instance = XeroRuby::Accounting::Invoice.new(type: null, fully_paid_on_date: null, amount_credited: null, updated_date_utc: /Date(1573755038314)/, + updated_date_utc_string: 2019-11-14T18:10:38Z, credit_notes: null, attachments: null, has_errors: false, diff --git a/docs/accounting/Overpayment.md b/docs/accounting/Overpayment.md index a2fd0cb7..9ea34896 100644 --- a/docs/accounting/Overpayment.md +++ b/docs/accounting/Overpayment.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **total_tax** | **BigDecimal** | The total tax on the overpayment | [optional] **total** | **BigDecimal** | The total of the overpayment (subtotal + total tax) | [optional] **updated_date_utc** | **DateTime** | UTC timestamp of last update to the overpayment | [optional] +**updated_date_utc_string** | **String** | UTC ISO-8601 formatted timestamp of last update to the overpayment | [optional] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **overpayment_id** | **String** | Xero generated unique identifier | [optional] **currency_rate** | **BigDecimal** | The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used | [optional] @@ -40,6 +41,7 @@ instance = XeroRuby::Accounting::Overpayment.new(type: null, total_tax: null, total: null, updated_date_utc: /Date(1573755038314)/, + updated_date_utc_string: 2019-11-14T18:10:38Z, currency_code: null, overpayment_id: null, currency_rate: null, diff --git a/docs/accounting/Payment.md b/docs/accounting/Payment.md index c7dddee1..d6af925e 100644 --- a/docs/accounting/Payment.md +++ b/docs/accounting/Payment.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **status** | **String** | The status of the payment. | [optional] **payment_type** | **String** | See Payment Types. | [optional] **updated_date_utc** | **DateTime** | UTC timestamp of last update to the payment | [optional] +**updated_date_utc_string** | **String** | UTC ISO-8601 formatted timestamp of last update to the payment | [optional] **payment_id** | **String** | The Xero identifier for an Payment e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional] **batch_payment_id** | **String** | Present if the payment was created as part of a batch. | [optional] **bank_account_number** | **String** | The suppliers bank account number the payment is being made to | [optional] @@ -56,6 +57,7 @@ instance = XeroRuby::Accounting::Payment.new(invoice: null, status: null, payment_type: null, updated_date_utc: /Date(1573755038314)/, + updated_date_utc_string: 2019-11-14T18:10:38Z, payment_id: 00000000-0000-0000-0000-000000000000, batch_payment_id: 00000000-0000-0000-0000-000000000000, bank_account_number: null, diff --git a/docs/accounting/Prepayment.md b/docs/accounting/Prepayment.md index 24a70142..ea86ef1c 100644 --- a/docs/accounting/Prepayment.md +++ b/docs/accounting/Prepayment.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **reference** | **String** | Returns Invoice number field. Reference field isn't available. | [optional] **invoice_number** | **String** | Returns Invoice number for prepayment receive document only. | [optional] **updated_date_utc** | **DateTime** | UTC timestamp of last update to the prepayment | [optional] +**updated_date_utc_string** | **String** | UTC ISO-8601 formatted timestamp of last update to the prepayment | [optional] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **prepayment_id** | **String** | Xero generated unique identifier | [optional] **branding_theme_id** | **String** | The unique identifier of the branding template applied to a receive prepayment | [optional] @@ -44,6 +45,7 @@ instance = XeroRuby::Accounting::Prepayment.new(type: null, reference: null, invoice_number: null, updated_date_utc: /Date(1573755038314)/, + updated_date_utc_string: 2019-11-14T18:10:38Z, currency_code: null, prepayment_id: null, branding_theme_id: null, diff --git a/docs/accounting/TrackingReference.md b/docs/accounting/TrackingReference.md new file mode 100644 index 00000000..bf427e3c --- /dev/null +++ b/docs/accounting/TrackingReference.md @@ -0,0 +1,23 @@ +# XeroRuby::Accounting::TrackingReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tracking_category_id** | **String** | The Xero identifier for a tracking category | +**tracking_option_id** | **String** | The Xero identifier for a tracking category option | +**name** | **String** | The name of the tracking category | [optional] +**option** | **String** | See Tracking Options | [optional] + +## Code Sample + +```ruby +require 'XeroRuby::Accounting' + +instance = XeroRuby::Accounting::TrackingReference.new(tracking_category_id: null, + tracking_option_id: null, + name: null, + option: null) +``` + + diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 771b09a7..fa051bd4 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -1562,6 +1562,26 @@ "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "Status" : { + "type" : "string", + "description" : "AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED.", + "readOnly" : true, + "enum" : [ "AUTHORISED", "DELETED" ] + }, + "FromTracking" : { + "type" : "array", + "description" : "Optional Tracking Category for the source account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account.", + "items" : { + "$ref" : "#/components/schemas/TrackingReference" + } + }, + "ToTracking" : { + "type" : "array", + "description" : "Optional Tracking Category for the destination account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account.", + "items" : { + "$ref" : "#/components/schemas/TrackingReference" + } + }, "ValidationErrors" : { "type" : "array", "description" : "Displays array of validation error messages from the API", @@ -1574,6 +1594,43 @@ "externalDocs" : { "url" : "http://developer.xero.com/documentation/api/bank-transfers/" } +}; + defs["BankTransferDelete"] = { + "title" : "", + "required" : [ "BankTransferID", "Status" ], + "type" : "object", + "properties" : { + "BankTransferID" : { + "type" : "string", + "description" : "The Xero identifier for a bank transfer", + "format" : "uuid" + }, + "Status" : { + "type" : "string", + "description" : "The status of the bank transfer.", + "default" : "DELETED" + } + }, + "description" : "", + "externalDocs" : { + "url" : "http://developer.xero.com/documentation/api/bank-transfers/" + } +}; + defs["BankTransferDeleteByUrlParam"] = { + "title" : "", + "required" : [ "Status" ], + "type" : "object", + "properties" : { + "Status" : { + "type" : "string", + "description" : "The status of the bank transfer.", + "default" : "DELETED" + } + }, + "description" : "", + "externalDocs" : { + "url" : "http://developer.xero.com/documentation/api/bank-transfers/" + } }; defs["BankTransfers"] = { "title" : "", @@ -1588,6 +1645,20 @@ }, "description" : "", "x-objectArrayKey" : "bank_transfers" +}; + defs["BankTransfersDelete"] = { + "title" : "", + "type" : "object", + "properties" : { + "BankTransfers" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/BankTransferDelete" + } + } + }, + "description" : "", + "x-objectArrayKey" : "bank_transfers" }; defs["BatchPayment"] = { "title" : "", @@ -2476,6 +2547,12 @@ "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "UpdatedDateUTCString" : { + "type" : "string", + "description" : "UTC ISO-8601 formatted timestamp of last update to the credit note", + "readOnly" : true, + "example" : "2019-11-14T18:10:38Z" + }, "CurrencyCode" : { "$ref" : "#/components/schemas/CurrencyCode" }, @@ -3228,11 +3305,17 @@ }, "UpdatedDateUTC" : { "type" : "string", - "description" : "Last modified date UTC format", + "description" : "UTC timestamp of last update to the invoice", "readOnly" : true, "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "UpdatedDateUTCString" : { + "type" : "string", + "description" : "UTC ISO-8601 formatted timestamp of last update to the invoice", + "readOnly" : true, + "example" : "2019-11-14T18:10:38Z" + }, "CreditNotes" : { "type" : "array", "description" : "Details of credit notes that have been applied to an invoice", @@ -4310,6 +4393,12 @@ "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "UpdatedDateUTCString" : { + "type" : "string", + "description" : "UTC ISO-8601 formatted timestamp of last update to the overpayment", + "readOnly" : true, + "example" : "2019-11-14T18:10:38Z" + }, "CurrencyCode" : { "$ref" : "#/components/schemas/CurrencyCode" }, @@ -4501,6 +4590,12 @@ "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "UpdatedDateUTCString" : { + "type" : "string", + "description" : "UTC ISO-8601 formatted timestamp of last update to the payment", + "readOnly" : true, + "example" : "2019-11-14T18:10:38Z" + }, "PaymentID" : { "type" : "string", "description" : "The Xero identifier for an Payment e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9", @@ -4770,6 +4865,12 @@ "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "UpdatedDateUTCString" : { + "type" : "string", + "description" : "UTC ISO-8601 formatted timestamp of last update to the prepayment", + "readOnly" : true, + "example" : "2019-11-14T18:10:38Z" + }, "CurrencyCode" : { "$ref" : "#/components/schemas/CurrencyCode" }, @@ -6205,6 +6306,38 @@ }, "description" : "", "x-objectArrayKey" : "options" +}; + defs["TrackingReference"] = { + "title" : "", + "required" : [ "TrackingCategoryID", "TrackingOptionID" ], + "type" : "object", + "properties" : { + "TrackingCategoryID" : { + "type" : "string", + "description" : "The Xero identifier for a tracking category", + "format" : "uuid" + }, + "TrackingOptionID" : { + "type" : "string", + "description" : "The Xero identifier for a tracking category option", + "format" : "uuid" + }, + "Name" : { + "maxLength" : 100, + "type" : "string", + "description" : "The name of the tracking category", + "readOnly" : true + }, + "Option" : { + "type" : "string", + "description" : "See Tracking Options", + "readOnly" : true + } + }, + "description" : "", + "externalDocs" : { + "url" : "http://developer.xero.com/documentation/api/tracking-categories/" + } }; defs["User"] = { "title" : "", @@ -6361,7 +6494,7 @@